Link zum Download: http://patrick.proy.free.fr/nagios/index_commands.html
Das Plugin verwendet SNMP (V1 und V3) um den VRRP status zu prüfen. VRRP (Virtual Router Redundancy Protocol) ist ein standard Internet Protokoll und dient zur Steigerung der Verfügbarkeit wichtiger Devices/Gateways in lokalen Netzen durch redundante Router oder Firewalls.
Es werden verschiedene Hardware Typen unterstützt; u. a. Nokia VRRP (default), Alteon AD4 Loadbalancers, Radware Linkproof, Nescreen (ScreenOS 5.x NSRP), Nokia IPSO clustering und Foundry VRRP.
Voraussetzung:
Erklärung: Die wichtigsten parameter des Plugins sind:
# check vrrp status
# 1=port, 2=community, 3=Type (nokia|alteon|lp|nsc|ipso), 4=state (master|backup|num,%)
define command{
command_name check_vrrp_status
command_line $USER1$/check_snmp_vrrp.pl -H $HOSTADDRESS$ -P $ARG1$ -C $ARG2$ -T $ARG3$ -s $ARG4$ -g
}
Als Beispiel sei hier eine Firewall geprüft, deren Checkpoint SNMP agent auf port 260 läuft und im Falle dass der Node nciht VRRP Master ist alarmieren soll. (Bitte die standard parameter wie etwa check_period oder notification_options nach eigenen Bedürfnissen anpassen):
define service{
host_name my_FW_node1
service_description VRRP_status
is_volatile 0
check_period 24x7
max_check_attempts 2
normal_check_interval 9
retry_check_interval 2
contact_groups FW-admin
notification_interval 180
notification_period 24x7
notification_options c,r,w
check_command check_vrrp_status!161!c0mmun1ty!nokia!master
}
Beispielhafte Ausgabe des Plugins:
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
Exakte Hilfe gibt es hier:
./check_snmp_vrrp.pl --help
oder unter: http://patrick.proy.free.fr/nagios/index_commands.html#vrrp
Siehe dazu auch das Nagios-Wiki HowTo für Checkpoint Firewall Monitoring
— by StaGue 19. 07. 2009