[mrtg] Monitoring Online cable modems
Zeeshan Ahmed
zeeshan at worldcall.net.pk
Fri Mar 7 12:29:55 MET 2003
Dear all more problem here.
i am trying to monitor the online cable modem on CMTS (Cable modem Transmition system) i am able to find the OID to get a value that is
" snmpwalk 192.168.1.1 public .1.3.6.1.4.1.3493.2.4.1.1.12.1.3 | grep -c "= 9" "
after executing this i get the online modems value like "1140"
grep -c "= 9" this grep the modems that have 9 and then count total 9
now i want to get this value in graphs.
i tried this but got error
Target[cmonline]:1.3.6.1.4.1.3493.2.4.1.1.12.1&1.3.6.1.4.1.3493.2.4.1.1.12.1:public at 192.168.1.1 grep -c "= 9"
MaxBytes1[cmonline]: 2000
MaxBytes2[cmonline]: 2000
Title[cmonline]: Online Cable modems
Options[cmonline]: gauge, noi
PageTop[cmonline]: <H2>Cable modems online</H2>
<TABLE>
<TR><TD>Device:</TD><TD>Cuda 12000</TD></TR>
<TR><TD><a href="/mrtg/mrtg.html">HOME</a></TD></TR>
</TABLE>
ERROR is :
SNMP Error:
Received SNMP response with error code
error status: noSuchName
index 1 (OID: 1.3.6.1.4.1.3493.2.4.1.1.12.1)
SNMPv1_Session (remote host: "192.168.1.1" [192.168.1.1].161)
community: "public"
request ID: 1140445850
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at /usr/bin/../lib/mrtg2/SNMP_util.pm line 450
SNMPGET Problem for .1.3.6.1.4.1.3493.2.4.1.1.12.1 .1.3.6.1.4.1.3493.2.4.1.1.12.
1 sysUptime sysName on public at 192.168.1.1
at /usr/bin/mrtg line 1491
WARNING: Expected a number but got ''
WARNING: Expected a number but got ''
ERROR: Target[cmonline] eval warning: syntax error at (eval 6) line 1, near "}
grep"
--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive http://www.ee.ethz.ch/~slist/mrtg
FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the mrtg
mailing list