[mrtg] Re: Nonsnmp data

Alex van den Bogaerdt alex at slot.hollandcasino.nl
Sat Feb 16 01:51:05 MET 2002


Eric Persson wrote:

> I made a small shellscript which collects the data and returns a number
> on a own line. Executed from the prompt it looks like this:
> [root at localhost muf]# ./get_login
> 7

> >From here I'm out of ideas. I thought I might look somewhere to see if
> it collected the number, but i dont know where. Does the data from the
> shellscript need to be formatted in someway?

and

> Is it possible to change the title on the left of the graphs from "Bits
> per second" to something else?

It seems that you "forgot" to RTFM.  Both "problems" are described
in there.

The answers to both questions are "yes".  However, this doesn't help
you so I'll answer the questions you didn't ask:

Q:Do I need to use gauge?  
A:Yes, you do because you are not monitoring a counter and this you
  need to tell to mrtg.

Q:How do I need to format the output of the shell script?
A:This is described in the manual and can be found at
  http://people.ethz.ch/~oetiker/webtools/mrtg/reference.html
  Look for the part called "External monitoring scripts".

Q:How can I change the text on the left of the image?
A:This is described in the manual and can be found at
  http://people.ethz.ch/~oetiker/webtools/mrtg/reference.html
  Look for the part called YLegend.

You almost asked this:

Q:How can I see that MRTG collected the number?
A:The first line of the .log file should contain the input that
  mrtg received.  If that's there and the rest of the .log file
  has nothing but zeros, chances are you should use gauge or you
  should alter your maxbytes setting.

HTH
-- 
   __________________________________________________________________
 / alex at slot.hollandcasino.nl                  alex at ergens.op.het.net \
| work                                                         private |
| My employer is capable of speaking therefore I speak only for myself |
+----------------------------------------------------------------------+
| Technical questions sent directly to me will be nuked. Use the list. | 
+----------------------------------------------------------------------+
| http://faq.mrtg.org/                                                 |
| http://rrdtool.eu.org  --> tutorial                                  |
+----------------------------------------------------------------------+

--
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