[mrtg] Re: expecting integer?

Dan Swartzendruber dswartz at druber.com
Mon Mar 27 06:57:49 MEST 2000


At 08:30 PM 3/26/00 -0800, 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.

I presume one of the values is 47.105, which is a float, not an integer?


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