[mrtg] Re: Monitoring Online cable modems
Brett Marler
brett at asroma.homeip.net
Fri Mar 7 12:43:18 MET 2003
Zeeshan,
> i tried this but got error
> ERROR: Target[cmonline] eval warning: syntax error at (eval 6) line 1, near "}
> grep"
The error being returned to you is fairly self explanatory. The "Target" line
has no idea what grep is, you'll need to put:
--
snmpwalk 192.168.1.1 public .1.3.6.1.4.1.3493.2.4.1.1.12.1.3 | grep -c "= 9"
--
Into a script (a simple shell script would suffice) and then adjust your
Target line to read something like:
--
Target[cmonline]: `/path/to/your/script`
--
MRTG should then be able to understand the output and graph the data passed to
it accordingly. For information on "External Monitoring Scripts", refer to the
user friendly MRTG manual (in the doc/mrtg2/ directory).
Regards.
--
Brett Marler <brett at asroma.homeip.net>
WWW: http://asroma.homeip.net/
-- Binary/unsupported file stripped by Ecartis --
-- Err : No filename to use for decode, file stripped.
-- Type: application/pgp-signature
--
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