Monitoring processes on Cisco routers

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
snapon_admin
Posts: 952
Joined: Mon Jun 10, 2013 10:39 am
Location: Kenosha, WI
Contact:

Monitoring processes on Cisco routers

Post by snapon_admin »

Does anyone know of any checks that can monitor if a process is running on a Cisco router? I'm trying to figure out the best way to monitor the below in Nagios:

Code: Select all

KENO-GEST-DHCP#sh processes cpu | i DHCP
 336      587612     5819792        100  0.00%  0.00%  0.00%   0 DHCPD Receive    
 
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Monitoring processes on Cisco routers

Post by tmcdonald »

Way back before fire was invented and I worked at Nagios, I managed a Nagios system at another company and had to do exactly this.

The solution back then was to write an expect script that logged in, ran some commands, and returned. Then wrap that in a bash script to run grep/awk/sed/whatever on the output to determine the status code. Not exactly pretty, but I didn't find a plugin written that did what I wanted.

These days I would look into SNMP for the device. There appear to be some OIDs you can use:

All processes: https://iphostmonitor.com/mib/oids/CISC ... Table.html
Specific process: https://iphostmonitor.com/mib/oids/CISC ... Entry.html

A list of more can be found here: https://iphostmonitor.com/mib/CISCO-PROCESS-MIB.html

Some relevant accompanying info: https://www.cisco.com/c/en/us/support/d ... -snmp.html
Former Nagios employee
Locked