Here is how to configure Nagios to use my plugin:
copy check_bgp_snmp.pl into nagios/libexec directory. Then, add the following to Nagios config
define command{ command_name check_bgp_snmp command_line $USER1$/check_bgp_snmp.pl -r $HOSTADDRESS$ -c $ARG1$ } define service{ host_name router1service_description BGP CHECK check_command check_bgp_snmp!public max_check_attempts 2 normal_check_interval 5 retry_check_interval 2 check_period 24x7 notification_interval 10 notification_period 24x7 notification_options w,u,c,r notifications_enabled 0 contact_groups admins }
Download check_bgp_snmp.pl
Great Tool. I just thought about writing it myself :-).
ReplyDeleteWhat showed up is that the error in Line 201 isn't completely correct... it's not that the neighbour doesn't send prefixes, it's that it doesn't send updates.
Funnily there doesn't seem to be a oid that states how many prefixes one received from a peer... puzzling, I'd have expected that.
Anyway: Great work!
There is problem with nagios plugin for bgp: Page not found
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteSorry, fixed the link
ReplyDeleteThx :)
ReplyDeleteIt does not work for me. It shows following error message:
ReplyDeleteERROR: 1.3.6.1.2.1.15.3.1.7 No results Net::SNMP=HASH(0xe229c8)->error