[mrtg] Re: expecting integer?
Jay Hennigan
jay at west.net
Mon Mar 27 11:53:22 MEST 2000
On Sun, 26 Mar 2000, Jon Rust wrote:
> I've written a little perl script that uses echoping to get the time
> (in ms) it takes my web server to serve up a test page. I'm trying to
> use it in MRTG, but get this error:
>
> Expected an INTEGER for 'in' but got '47.105'
>
> I also get it for the out variable, which is identical. My config looks like:
>
> #WWW Response Time
> Target[wwwtime]: `echoping.pl`
> MaxBytes[wwwtime]: 1000
> Title[wwwtime]: Web Server Response Time
> PageTop[wwwtime]: Web Server Response Time
> Options[wwwtime]: gauge
>
> The script returns value\nvalue\n\n\n. I know I've done stuff like
> this before, but I don't see what I'm doing wrong this time.
Multiply it by 1000 in your perl script and display microseconds.
MRTG wants integer values.
--
Jay Hennigan - Network Administration - jay at west.net
NetLojix Communications, Inc. NASDAQ: NETX - http://www.netlojix.com/
WestNet: Connecting you to the planet. 805 884-6323
--
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