<div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div>I had some issues with my cable modem lately.  I ended up installing nagios and then writing<br></div>two bash scripts you may find useful<br></div>the first one <a href="http://planetvince.com/tools/check_cableModem.html">http://planetvince.com/tools/check_cableModem.html</a><br></div>checks the uptime in days of the modem<br><br></div>the 2nd one <a href="http://planetvince.com/tools/check_cableModemSignal.html">http://planetvince.com/tools/check_cableModemSignal.html</a><br></div>checks the signal to noise ratio.<br><br></div>you don&#39;t need nagios to use them, just check the return codes<br><br></div>For example <br></div># check_cableModem -c 1<br></div>would set a non zero return code if the modem had less than one day since it last booted<br><br></div>or <br></div># check_cableModemSignal -c 30<br></div>would set a non zero return code if any of eight signal to noise ratios was less than 30.<br><br></div>I am interested in comments on both,  my bash coding is not great<br></div>and it seems like they could be simplified.  Especially the 2nd one.<br><br></div><br></div>Background info,  the cable modem supports SNMP queries and I found an old example.<br></div>However I also found that my ISP ( Time Warner ) blocks SNMP queries.  I tested by disconnecting the modem from the cable then cycling the power.  When the modem came up I was able to get some of the SNMP queries to work.  As soon as I connected the modem to the cable it SNMP  queries all timed out.<br><br>-------------<br></div>Vince<br><br></div>