Skip to content

Instantly share code, notes, and snippets.

View ericoc's full-sized avatar
💭
living @ 🌎

Eric O'Callaghan ericoc

💭
living @ 🌎
View GitHub Profile
root@ericoc:~/# cat /etc/debian_version
8.8
root@ericoc:~/# cat /etc/apt/sources.list.d/zabbix.list
deb https://repo.zabbix.com/zabbix/3.2/debian jessie main
deb-src https://repo.zabbix.com/zabbix/3.2/debian jessie main
root@ericoc:~/# cat /lib/systemd/system/zabbix-server.service
[Unit]
Description=Zabbix Server
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//ShopReply Inc//CalReply 1.0//EN
METHOD:REFRESH
X-WR-CALDESC:This is the Official Calendar for NBA on ESPN. \n\nClick the "
Add to Calendar" button to add your team's schedule to your calendar so you n
ever miss a game!
X-WR-CALNAME:NBA - Philadelphia 76ers
X-WR-RELCALID:2495c478-4160-e511-a14c-063521276427
X-PUBLISH-TTL:P1D
- name: Template Zabbix agent user parameter configurations
template: src="userparameter.conf.j2" dest="{{ zabbix_config_include_dir }}/userparameter_{{ item }}.conf" owner="root" group="root" mode=0644
when: zabbix_config_userparameters is defined and zabbix_config_userparameters != '' and zabbix_config_include_dir is defined and zabbix_config_include_dir != ''
with_items: "{{ zabbix_config_userparameters.keys() }}"
tags: [ 'zabbixitems' ]
notify:
- restart zabbix
Hi Eric,
You're all set for classes starting on Jan 8th from 10 am to 1 pm. Please bring an audio taping device and notebook to all classes.
If you already have material, bring it to class and I will help you take it to the next level. If not, please do the following writing exercise.
Write about things that piss you off, celebrities that piss you off and or anything from your life experience.
I look forward to working with you!
VerifyHostKeyDNS
Specifies whether to verify the remote key using DNS and SSHFP resource records. If this option is set to “yes”, the client will implicitly trust keys that
match a secure fingerprint from DNS. Insecure fingerprints will be handled as if this option was set to “ask”. If this option is set to “ask”, information
on fingerprint match will be displayed, but the user will still need to confirm new host keys according to the StrictHostKeyChecking option. The argument
must be “yes”, “no”, or “ask”. The default is “no”. Note that this option applies to protocol version 2 only.
64 bytes from 8.8.8.8: icmp_seq=65532 ttl=42 time=14.662 ms
64 bytes from 8.8.8.8: icmp_seq=65533 ttl=42 time=14.803 ms
64 bytes from 8.8.8.8: icmp_seq=65534 ttl=42 time=14.693 ms
64 bytes from 8.8.8.8: icmp_seq=65535 ttl=42 time=14.831 ms
64 bytes from 8.8.8.8: icmp_seq=0 ttl=42 time=14.660 ms
64 bytes from 8.8.8.8: icmp_seq=1 ttl=42 time=14.784 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=42 time=14.610 ms
$ strings /mnt/splunk/bin/splunk| grep 'Splunk>'
Splunk> The IT Search Engine.
Splunk> CSI: Logfiles.
Splunk> Australian for grep.
Splunk> 4TW
Splunk> Like an F-18, bro.
Splunk> Now with more code!
Splunk> Map. Reduce. Recycle.
Splunk> Be an IT superhero. Go home early.
Splunk> Needle. Haystack. Found.
root@ericoc:/etc/zabbix/alert.d# grep username= slack.sh
username='EricOC"zabbix'
root@ericoc:/etc/zabbix/alert.d# bash slack.sh '@ericoc' PROBLEM 'Oh no! Something is wrong!'
PAYLOAD=payload={"channel": "@ericoc", "username": "EricOC"zabbix", "text": "PROBLEM: Oh no! Something is wrong!", "icon_emoji": ":frowning:"}
Payload was not valid JSON
root@ericoc:/etc/zabbix/alert.d# grep username= slack.sh
root@ericoc:/etc/zabbix/alert.d# grep username= slack.sh
username='EricOC"zabbix'
root@ericoc:/etc/zabbix/alert.d# bash slack.sh '@ericoc' PROBLEM 'Oh no! Something is wrong!'
PAYLOAD=payload={"channel": "@ericoc", "username": "EricOC"zabbix", "text": "PROBLEM: Oh no! Something is wrong!", "icon_emoji": ":frowning:"}
Payload was not valid JSON
root@ericoc:/etc/zabbix/alert.d# grep username= slack.sh
username='EricOC"zabbix"'
root@ericoc:/etc/zabbix/alert.d# bash slack.sh '@ericoc' PROBLEM 'Oh no! Something is wrong!'
PAYLOAD=payload={"channel": "@ericoc", "username": "EricOC"zabbix"", "text": "PROBLEM: Oh no! Something is wrong!", "icon_emoji": ":frowning:"}