Cisco ASA 5550 VPN tunnels

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
benningtonr
Posts: 524
Joined: Tue May 22, 2012 2:16 pm

Re: Cisco ASA 5550 VPN tunnels

Post by benningtonr »

yes, same ip i used here
benningtonr
Posts: 524
Joined: Tue May 22, 2012 2:16 pm

Re: Cisco ASA 5550 VPN tunnels

Post by benningtonr »

Here is a look at host
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Cisco ASA 5550 VPN tunnels

Post by scottwilkerson »

Do you have $ARG1$ and $ARG2$ filled in with the same values too?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Cisco ASA 5550 VPN tunnels

Post 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"
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
benningtonr
Posts: 524
Joined: Tue May 22, 2012 2:16 pm

Re: Cisco ASA 5550 VPN tunnels

Post 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]#
benningtonr
Posts: 524
Joined: Tue May 22, 2012 2:16 pm

Re: Cisco ASA 5550 VPN tunnels

Post 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.
benningtonr
Posts: 524
Joined: Tue May 22, 2012 2:16 pm

Re: Cisco ASA 5550 VPN tunnels

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Cisco ASA 5550 VPN tunnels

Post 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"  ;
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
benningtonr
Posts: 524
Joined: Tue May 22, 2012 2:16 pm

Re: Cisco ASA 5550 VPN tunnels

Post by benningtonr »

lobexec or libexec?
benningtonr
Posts: 524
Joined: Tue May 22, 2012 2:16 pm

Re: Cisco ASA 5550 VPN tunnels

Post 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
Locked