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
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg

Reply via email to