Cisco ASA 5550 VPN tunnels
-
benningtonr
- Posts: 524
- Joined: Tue May 22, 2012 2:16 pm
Re: Cisco ASA 5550 VPN tunnels
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 /]#
[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 /]#
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Cisco ASA 5550 VPN tunnels
This can happen if you edited the file on a windows machine and now have windows line endings
Run
Run
Code: Select all
yum install dos2unix -y
dos2unix /usr/local/nagios/libexec/check_bgp.pl-
benningtonr
- Posts: 524
- Joined: Tue May 22, 2012 2:16 pm
Re: Cisco ASA 5550 VPN tunnels
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.
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.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Cisco ASA 5550 VPN tunnels
When you copy one, you will keed to rename it to remove the () and you will also need to check the "active" box.
-
benningtonr
- Posts: 524
- Joined: Tue May 22, 2012 2:16 pm
Re: Cisco ASA 5550 VPN tunnels
I did rename it and the active box is checked.
-
benningtonr
- Posts: 524
- Joined: Tue May 22, 2012 2:16 pm
Re: Cisco ASA 5550 VPN tunnels
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.
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.
-
benningtonr
- Posts: 524
- Joined: Tue May 22, 2012 2:16 pm
Re: Cisco ASA 5550 VPN tunnels
the command to view the bgp summary for vrf is:
show ip bgp vrf (vrf instance name) summary
show ip bgp vrf (vrf instance name) summary
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Cisco ASA 5550 VPN tunnels
Do these routers within routers have their own IP and SNMP setup?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?
You may be able to use the same plugin changing the host (IP) and community string
-
benningtonr
- Posts: 524
- Joined: Tue May 22, 2012 2:16 pm
Re: Cisco ASA 5550 VPN tunnels
They use the same community name and ip address,
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Cisco ASA 5550 VPN tunnels
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.
You may need to try walking the snmp tree to see if you can find the data you need to monitor.