[mrtg] Re: script question
Mike Koch
Mike.Koch at etsi.fr
Thu Jul 12 16:09:21 MEST 2001
You need to feed MRTG with FOUR variables separated by a carried return, for
example :
273
57
String
String2
Their signification is in mrtg/doc/reference.html (middle page under
Target-> External Monitoring Script).
If you have only one integer to graph just be sure that your script outputs
something like :
273
0
0
0
Hope this helps !
-----Original Message-----
From: Jerl [mailto:jerl.simpson at joplin.com]
Sent: jeudi 12 juillet 2001 14:47
To: Mrtg
Subject: [mrtg] script question
I was wondering if someone could help me with a problem using an
external script.
I have put together a bash script that uses snmpwalk to gather some info
on a USRTotal Control System. And a perl script that actually uses the
bash file. The perl outputs an integer that I want to keep track of in
an MRTG graph.
I have set up the mrtg.cfg file to look like this:
Target[mdm-use]: '/pathto/mrtgconfigs/usage.pl'
Title[mdm-use]: Modems in Use
MaxBytes[mdm-use]: 529
PageTop[mdm-use]: <H1> Modem Usage
</H1>
<TABLE>
<TR><TD>System:</TD><TD>USR Rack</TD></TR>
<TR><TD>Maintainer:</TD><TD></TD></TR>
<TR><TD>Interface:</TD><TD>All modems</TD></TR>
<TR><TD>Max Users:</TD>
<TD>529</TD></TR>
</TABLE>
When I run usage.pl it gives the output I want (which is a single
integer ie. 273), but the log files never change when I run it in MRTG.
Any help is greatly appreciated.
Jerl
--
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
--
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