Cisco ASA 5550 VPN tunnels
-
- Posts: 524
- Joined: Tue May 22, 2012 2:16 pm
Re: Cisco ASA 5550 VPN tunnels
yes, same ip i used here
-
- Posts: 524
- Joined: Tue May 22, 2012 2:16 pm
Re: Cisco ASA 5550 VPN tunnels
Here is a look at host
You do not have the required permissions to view the files attached to this post.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Cisco ASA 5550 VPN tunnels
Do you have $ARG1$ and $ARG2$ filled in with the same values too?
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Cisco ASA 5550 VPN tunnels
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"
-
- Posts: 524
- Joined: Tue May 22, 2012 2:16 pm
Re: Cisco ASA 5550 VPN tunnels
[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]#
OK - 38.104.236.9 (AS174) state is established(6). Established for 10d13h35m39s. Last error "Hold Timer Expired".
[root@nagios libexec]#
-
- Posts: 524
- Joined: Tue May 22, 2012 2:16 pm
Re: Cisco ASA 5550 VPN tunnels
No they are not the same, $ARG1$ is the community name, and 2 is the IP address to the peer.scottwilkerson wrote:Do you have $ARG1$ and $ARG2$ filled in with the same values too?
-
- Posts: 524
- Joined: Tue May 22, 2012 2:16 pm
Re: Cisco ASA 5550 VPN tunnels
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.
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.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Cisco ASA 5550 VPN tunnels
This is a big help.
You need to edit the file, toward the top you will see a line like
change it to
You need to edit the file, toward the top you will see a line like
Code: Select all
use lib "/usr/lib/nagios/plugins" ;
Code: Select all
use lib "/usr/local/nagios/libexec" ;
-
- Posts: 524
- Joined: Tue May 22, 2012 2:16 pm
Re: Cisco ASA 5550 VPN tunnels
lobexec or libexec?
-
- Posts: 524
- Joined: Tue May 22, 2012 2:16 pm
Re: Cisco ASA 5550 VPN tunnels
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
(Return code of 126 is out of bounds - plugin may not be executable)
I did use libexec, not lobexec, that might be the reason