[mrtg] Re: minus one as a value
Bob Van Cleef
vancleef at microunity.com
Fri Jun 29 18:40:35 MEST 2001
Just a followup: Found this in e-mail from cron:
WARNING: Could not get any data from external command
'/s1/mrtg/tools/dotelnet.sh caddy 1986'
Maybe the external command did not even start. (Illegal seek)
I have found no obvious reasons why the script fails under CRON,
but works manually. All paths are called out fully.
#!/bin/bash
if ! /usr/local/bin/nc -w 2 $1 $2 2>/dev/null ; then echo -e "0\n0\n`if !
/usr/local/bin/nc -w 1 $1 13 ; then echo \"Remote machine down?\" ;
fi`\nAn error occurred getting this statistic." ; fi | /usr/bin/head -n 4
[note: all one line in actual script]
Bob
On Thu, 28 Jun 2001, Bob Van Cleef wrote:
>
>
> I'm trying to track vmstat stuff on a solaris box. When I run mrtg
> manually, I always get the correct values. However, when run out of cron
> (same userid) it often gets "-1" for values. I've found no clues in the
> docs or FAQs as to the meaning of "-1" in the log file.
>
> Here is the top of the log when I run it...
>
> 993773127 4100408 581048
> 993773127 4100408 581048 4100408 581048
> 993772961 1 1 1 1
> 993772800 2200591 311930 4100512 581280
> 993772500 1886242 267368 4100536 581256
> 993772200 1 1 1 1
> 993771900 683679 97179 4102120 583128
> 993771600 1 1 1 1
> 993771300 1 1 1 1
> 993771000 1 1 1 1
> 993770700 1 1 1 1
>
> Here is the top of the log a little bit later.
>
> 993773261 -1 -1
> 993773261 1 1 1 1
> 993773127 4100408 581048 4100408 581048
> 993773100 1899856 269219 4100408 581048
> 993772800 2200591 311930 4100512 581280
> 993772500 1886242 267368 4100536 581256
> 993772200 1 1 1 1
> 993771900 683679 97179 4102120 583128
>
> Config details below. I have tried playing with MaxBytes and
> AbsMax, thinking that might be the issue, but no luck.
>
> Bob
>
--
><> ><> ><> ><> ><> ><> ><> ><> ><> ><> ><> ><> ><>
Bob Van Cleef, Member of Technical Staff (408) 734-8100
MicroUnity Systems Engineering, Inc. FAX (408) 734-8136
376 Martin Ave., Santa Clara, CA 95050 vancleef at microunity.com
--
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