Translations of this page:

check_snmp_vrrp.pl

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.

Einbindung des Plugins

Voraussetzung:

  • $USER1$ zeigt auf /usr/local/nagios/libexec
  • Perl in /usr/bin/perl
  • Net::SNMP

checkcommands.cfg

Erklärung: Die wichtigsten parameter des Plugins sind:

  • -C = Community
  • -P = port
  • -T = Type des VRRP gerätes
  • -s = State der VRRP interfaces
# 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
      }

services.cfg

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
}

Ausgabe

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 

Sonstiges

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

nagios/plugins/check_snmp_vrrp.pl.txt · Zuletzt geändert: 2009/07/19 23:16 von stague
CC Attribution-Noncommercial-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0