lausser / check_nwc_health

nwc = network component. This plugin checks lots of aspects of routers, switches, wlan controllers, firewalls,.....
http://labs.consol.de/nagios/check_nwc_health
GNU General Public License v2.0
147 stars 87 forks source link

vPC monitoring #245

Open Rohlik opened 4 years ago

Rohlik commented 4 years ago

Hello, it is possible to minitor vPC status in Cisco Nexus switches? CLI output below.

#show vpc brief 
Legend:
 (*) - local vPC is down, forwarding via vPC peer-link

vPC domain id : 1 
Peer status : peer adjacency formed ok
vPC keep-alive status : peer is alive
Configuration consistency status : success
Per-vlan consistency status : success
Type-2 consistency status : success

Thank you for your time.

ciscoqid commented 4 years ago

On 4/16/20 4:41 AM, Thomas Rohlik wrote:

Hello, it is possible to minitor vPC status in Cisco Nexus switches? CLI output below.

|#show vpc brief Legend: (*) - local vPC is down, forwarding via vPC peer-link vPC domain id : 1 Peer status : peer adjacency formed ok vPC keep-alive status : peer is alive Configuration consistency status : success Per-vlan consistency status : success Type-2 consistency status : success |

There is CISCO-VPC-MIB, available on some of the Nexus platforms (7k and 9k, possibly others).  Where it is not possible, you may be able to use NXAPI, but in my experience NXAPI is not production-ready.  Last time we tried it on a 5672UP, we found it has no way to restrict access to the NXAPI SSL port short of dark magic with the debug shell, and the nginx process that handles NXAPI does not handle logs properly, filling up the disk.  I think a lot of this is fixed in the 9.x train, but Cisco has not released 9.x for the 5672UP.  Sadly, TAC told me that despite the fact that the platform was originally released in 2014 and has no platform EOL posted yet, the latest image Cisco provides is considered EOL.
Mark
Rohlik commented 4 years ago

I finally found script which is working on N9k without problems. I personally would like to see integrated vPC monitoring to check_nwc_health plugin instead of using two different scripts, but for now I am using this https://github.com/citynetwork/network_monitoring/blob/master/cisco_vpc.py for vPC monitoring.