MONITORING BGP WITH NAGIOS
Make perl script given below. Go to command.cfg. define command{ command_name check-bgp17 command_line $USER1$/check_bgp1.pl -H $HOSTADDRESS$ -C <SNMP STRING> -p $ARG1$ } Use the command in services.cfg Used the same with Version 3.2.3 Use the following Perl Script #!/usr/bin/perl use strict; use warnings; use lib "/usr/local/nagios/libexec" ; use utils qw($TIMEOUT %ERRORS &print_revision &support); use vars qw($PROGNAME); # Just in case of problems, let's not hang Nagios $SIG{'ALRM'} = sub { print ("ERROR: Plugin took too long to complete (alarm)\n"); exit $ERRORS{"UNKNOWN"}; }; alarm($TIMEOUT); my $PROGNAME = "check_bgp.pl"; sub print_help (); sub print_usage (); use POSIX qw(floor); sub seconds_to_string($); my ($opt_h,$opt_V); my $community = "p...