[mrtg] Re: MRTG Not Seeing values[Scanned]

Richard I. Kirkcaldy richard.kirkcaldy at aukerrhodes.co.uk
Thu Feb 5 15:42:54 MET 2004


Hi,

aukermail:~# PATH="" /root/qpeek.pl
22022
22565
145
aukermail:~# !! | od -tx1
PATH="" /root/qpeek.pl | od -tx1
0000000 32 32 30 32 32 0a 32 32 35 36 35 0a 31 34 35 0a
0000020

Using the shell script doesn't make any difference either.  In fact, the only way I can get a value output to the graph is when mrtg runs the first time with:-
	Target[eximstats]: `echo 25`
And then it gives the wrong value, printing 73 and 74 for the current values.

-- 
Richard Kirkcaldy


-----Original Message-----
From: Alex van den Bogaerdt [mailto:alex at ergens.op.het.net]
Sent: 05 February 2004 12:29
To: mrtg at list.ee.ethz.ch
Subject: [mrtg] Re: MRTG Not Seeing values[Scanned]


On Thu, Feb 05, 2004 at 12:22:20PM -0000, Richard I. Kirkcaldy wrote:
> Target[eximstats]: `/root/qpeek.pl`
> 
> aukermail:~# ./qpeek.pl
> 22001
> 22544
> 144

Please try this:
   PATH="" /root/qpeek.pl
(or any other way of setting PATH to empty).

If that works (as in: it returns numbers) reroute its output to a file
and run it through od -tx1

3rd test:  create another test program as follows:

   #!/bin/bash
   echo 22001
   echo 22544
   echo 144

(adjust path and shell if necessary)
and use that in stead of qpeek.pl

Alex
-- 

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