Added zabbix playbook
This commit is contained in:
parent
499b6397b2
commit
38b43ac575
20 changed files with 315 additions and 0 deletions
|
@ -0,0 +1,11 @@
|
|||
#!/bin/bash
|
||||
# called by Zabbix to see if iptables is running
|
||||
PATH=$PATH:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
|
||||
|
||||
if [ $( iptables -n -L INPUT|wc -l ) -gt 6 ] ; then
|
||||
iptablesstatus="0"
|
||||
else
|
||||
iptablesstatus="1"
|
||||
fi
|
||||
|
||||
zabbix_sender -c /etc/zabbix/zabbix_agentd.conf -k net.iptables.status -o $iptablesstatus >/dev/null
|
Loading…
Add table
Add a link
Reference in a new issue