[mrtg] Re: Monitoring With MRTG + Linux

Jacek Zabicki zabicki at geocities.com
Mon Jun 5 05:06:49 MEST 2000

Yes it is possible. Check docs about running a script from a TARGET line.

-----Original Message-----
From: mrtg-bounce at list.ee.ethz.ch [mailto:mrtg-bounce at list.ee.ethz.ch]On
Behalf Of Jimmy Stewpot
Sent: 04 June, 2000 22:06
To: mrtg at list.ee.ethz.ch
Subject: [mrtg] Monitoring With MRTG + Linux

is it possible with MRTG to monitor a command that is has an output in
numerical characters, eg
counting the number of lines that a specific item occurs?
eg cat logfilename.log | grep -c error
would give say
10, then 25 then 8
and monitor it every hour as the logs purged/rotated hourly.
Does anyone have any ideas if that is possible and what the command / config
file would look like
Jimmy Stewpot

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

More information about the mrtg mailing list