Page 3 of 4
Re: Cisco ASA 5550 VPN tunnels
Posted: Mon Aug 13, 2012 11:55 am
by benningtonr
Also getting this at the CLI:
[root@nagios /]# su nagios -c "/usr/local/nagios/libexec/check_bgp.pl -H 192.168.98.6 -C community -p 38.104.236.9"
bash: /usr/local/nagios/libexec/check_bgp.pl: /usr/bin/perl^M: bad interpreter: No such file or directory
[root@nagios /]#
Re: Cisco ASA 5550 VPN tunnels
Posted: Mon Aug 13, 2012 4:30 pm
by scottwilkerson
This can happen if you edited the file on a windows machine and now have windows line endings
Run
Code: Select all
yum install dos2unix -y
dos2unix /usr/local/nagios/libexec/check_bgp.pl
Re: Cisco ASA 5550 VPN tunnels
Posted: Mon Aug 13, 2012 7:14 pm
by benningtonr
ok that was it, all is well on the BGP front, except.......
I had another that i wanted to monitor, so i copied the first, made the name and ip address changes.
It is going on the same router, but when i apply config, then look at the list, the new one says sync missed
Any ideas?
Thanks again, great help.
Re: Cisco ASA 5550 VPN tunnels
Posted: Tue Aug 14, 2012 7:56 am
by scottwilkerson
When you copy one, you will keed to rename it to remove the () and you will also need to check the "active" box.
Re: Cisco ASA 5550 VPN tunnels
Posted: Tue Aug 14, 2012 8:00 am
by benningtonr
I did rename it and the active box is checked.
Re: Cisco ASA 5550 VPN tunnels
Posted: Tue Aug 14, 2012 8:09 am
by benningtonr
ok, i went back and looked at everything, I did miss the active box.
Sorry.
All is well, sort of
I have some bgp peers on vrf, they are like routers within routers, any ideas on how i would go about monitoring them?
Thanks again for all the help. it is really appreciated.
Re: Cisco ASA 5550 VPN tunnels
Posted: Tue Aug 14, 2012 8:34 am
by benningtonr
the command to view the bgp summary for vrf is:
show ip bgp vrf (vrf instance name) summary
Re: Cisco ASA 5550 VPN tunnels
Posted: Tue Aug 14, 2012 9:29 am
by scottwilkerson
benningtonr wrote:All is well, sort of
I have some bgp peers on vrf, they are like routers within routers, any ideas on how i would go about monitoring them?
Do these routers within routers have their own IP and SNMP setup?
You may be able to use the same plugin changing the host (IP) and community string
Re: Cisco ASA 5550 VPN tunnels
Posted: Tue Aug 14, 2012 9:34 am
by benningtonr
They use the same community name and ip address,
Re: Cisco ASA 5550 VPN tunnels
Posted: Tue Aug 14, 2012 9:58 am
by scottwilkerson
If it is the same SNMP server, then you likely just need to change the peer namr ($ARG2$ I believe) although I am not familiar with the hardware you are using.
You may need to try walking the snmp tree to see if you can find the data you need to monitor.