This pages is meant to hold some of my nagios stuff that may help others on some nagios work. Note, this is "Under construction..." already for ages... a bit now and then
Nagios Stuff...
Plugins
check_ftp.pl
FTP file download check with time measurement
Note: requires Time::HiRes
sample output:
OK: Opening BINARY mode data connection for 2MB.file (2097152 bytes). Transfer completed. (duration: 2.390153s)|dl_time=2.390153s
check_pop3.pl
POP3 check with connect to POP server, mail box login (with user account) and mail list, with time measurement
Note: requires Time::HiRes
sample output:
POP3 OK: User stague has no messages. LIST time: 0.337098s.|T_connect=0.131286s; T_login=0.211287s; T_list=0.337098s;
check_snmp_vrrp.pl
This is a modification of the VRRP check plugin form patrick proy (see http://patrick.proy.free.fr/nagios/index_commands.html#vrrp,
with an additionl option for the "-s" switch, which allows to check the FW's VRRP state for all VRRP IPs to be in the same state
e.g. all are in "Master" or all are in "Backup" but we do not care in which (e.g. after FW failover) but as long as all are equal.
sample output:
Vrid OK: 1(master/up/90), 1(master/up/90), 1(master/up/90), 1(master/up/90), 1(master/up/90), 1(master/up/90), 1(master/up/90) : 7 in equal (master) state
check_fw_vrrp
Checkpoint FW-1 VRRP overall status (one master and one backup node) check
sample output:
Overall cluster VRRP state is OK. NodeA (11.22.33.4) = master, NodeB (11.22.33.5) = backup
check_tunnel.pl
Checkpoint FW-1 tunnel check
sample output:
5/5 tunnels active: CNR_OMS, CNR_prov, CNR_WAN, HFW, Office,|Tunnels=5; Termination=normal
check_tcp_conn.ksh
multiple TCP port or HTTP port check
allows to either check multiple TCP ports (-T) or multiple HTTP (-W) ports in one go.
can be run in a check (e.g. from crontab) and a print mode (e.g. nrpe call).
sample output:
TCP Connections to 172.10.11.12 on port(s) OK: 21, 22, 80, 443, 4045, 32771, 32772,