Hey all -
I work for a small cable provider and am seeking direction for something I’d like to be able to do with Nagios but don’t know which way to go with it. Here is what has been going on. As of late, we have been having some intermittent problems with our DHCP server communicating with our CMTS. When this happens, several hundred modems will drop off the uBR. Basically, the CMTS shows these cable modems as being unregistered. This ofcourse takes the customer offline as their DHCP request isn’t completed and they don’t get an IP. Anyway, from the CMTS, I run the following command:
CMTS]# sh cable modem sum total
I get an output like what you see below:
Total Registered Unregistered Offline
Total: 10000 9000 500 500
What I would like to do with nagios is to mointor this, perhaps by logging into the CMTS, running that command and then set a threshold to alert me when the Unregistered or Offline modems reach 300 or something like that. Is this something that can be done with Nagios? If so, where would I start?
I’m guessing that I would have to first write a script that logs me into the CMTS and runs that command. Then, given the output, search for the unregistered number and report if it’s past a certain threshold. Then just add that script to be checked every 5 or 10 minutes in Nagios?
Anyway, is that how you guys would do it or is there an easier way somehow?
Any help is greatly appreciated.