[mrtg] MRTG not populating graphs from script that works on all butCentOS

Alex van den Bogaerdt alex at vandenbogaerdt.nl
Fri Feb 12 10:52:05 CET 2010


----- Original Message ----- 
From: "Matt Baer" <matt at baerconsult.com>
To: "mrtg" <mrtg at lists.oetiker.ch>
Sent: Friday, February 12, 2010 1:08 AM
Subject: [mrtg] MRTG not populating graphs from script that works on all 
butCentOS


>I created a script to monitor uptime on a number of machines. It's rough, 
>ugly, inefficient, and I will get laughed at, but it works. Here it is:
>
> #!/bin/bash
> ticks=$(snmpwalk -v 1 -c public 10.0.0.1 hrSystemUptime.0 | awk '{ print 
> $5 }' )
> echo "$ticks"
>
> Now, this script works and populates data for Windows 7, Ubuntu, FreeBSD, 
> etc. However, MRTG WILL NOT populate the data returned from this script 
> from a CentOS machine. I have gone through and verified everything I can 
> possibly think of. When run, the script itself returns the proper data. 
> The config files match perfectly with the other working machine with the 
> exception of the host data of course. To my knowledge, all it needs is a 
> number to graph. The script returns a number, why won't it graph?!
>


--------------------------------------------------------------------------------


> _______________________________________________
> mrtg mailing list
> mrtg at lists.oetiker.ch
> https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
>




More information about the mrtg mailing list