Page 2 of 4
Re: Cisco ASA 5550 VPN tunnels
Posted: Mon Aug 13, 2012 7:47 am
by benningtonr
yes, same ip i used here
Re: Cisco ASA 5550 VPN tunnels
Posted: Mon Aug 13, 2012 7:50 am
by benningtonr
Here is a look at host
Re: Cisco ASA 5550 VPN tunnels
Posted: Mon Aug 13, 2012 9:02 am
by scottwilkerson
Do you have $ARG1$ and $ARG2$ filled in with the same values too?
Re: Cisco ASA 5550 VPN tunnels
Posted: Mon Aug 13, 2012 9:03 am
by scottwilkerson
Also, can I have you run the following and report the output
Code: Select all
su nagios -c "/usr/local/nagios/libexec/check_bgp.pl -H 192.168.98.6 -C community -p 38.104.236.9"
Re: Cisco ASA 5550 VPN tunnels
Posted: Mon Aug 13, 2012 9:05 am
by benningtonr
[root@nagios libexec]# su nagios -c "/usr/local/nagios/libexec/check_bgp.pl -H 192.168.98.6 -C community -p 38.104.236.9"
OK - 38.104.236.9 (AS174) state is established(6). Established for 10d13h35m39s. Last error "Hold Timer Expired".
[root@nagios libexec]#
Re: Cisco ASA 5550 VPN tunnels
Posted: Mon Aug 13, 2012 9:07 am
by benningtonr
scottwilkerson wrote:Do you have $ARG1$ and $ARG2$ filled in with the same values too?
No they are not the same, $ARG1$ is the community name, and 2 is the IP address to the peer.
Re: Cisco ASA 5550 VPN tunnels
Posted: Mon Aug 13, 2012 9:18 am
by benningtonr
if I don't run this command, su nagios -c "/usr/local/nagios/libexec/check_bgp.pl -H 192.168.98.6 -C community -p 38.104.236.9"
from the libexec directory i get the following.
not sure if this helps or not.
[root@nagios /]# su nagios -c "/usr/local/nagios/libexec/check_bgp.pl -H 192.168.98.6 -C community -p 38.104.236.9"
Can't locate utils.pm in @INC (@INC contains: /opt/nagios/libexec /usr/local/lib/perl5 /usr/local/share/perl5 /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5 /usr/share/perl5 .) at /usr/local/nagios/libexec/check_bgp.pl line 30.
BEGIN failed--compilation aborted at /usr/local/nagios/libexec/check_bgp.pl line 30.
Re: Cisco ASA 5550 VPN tunnels
Posted: Mon Aug 13, 2012 11:12 am
by scottwilkerson
This is a big help.
You need to edit the file, toward the top you will see a line like
Code: Select all
use lib "/usr/lib/nagios/plugins" ;
change it to
Code: Select all
use lib "/usr/local/nagios/libexec" ;
Re: Cisco ASA 5550 VPN tunnels
Posted: Mon Aug 13, 2012 11:18 am
by benningtonr
lobexec or libexec?
Re: Cisco ASA 5550 VPN tunnels
Posted: Mon Aug 13, 2012 11:26 am
by benningtonr
i changed it now i am getting:
(Return code of 126 is out of bounds - plugin may not be executable)
I did use libexec, not lobexec, that might be the reason