check_mrtg always returns unknown (#3)?

Scott Baker bakers at web-ster.com
Tue Apr 25 18:11:11 CEST 2006


I'm trying to make sure that my MRTG program is running, and
updating data. I think I want to use the check_mrtg function to do
that. I'm *only* interested in whether the MRTG is running. Here's
the syntax I'm using.

./check_mrtg -F /path/cpu.log -a MAX -v 1 -w 100 -c 200 -e 10 -l
"CPU Usage" -u %

Output: Max. CPU Usage = 42 %|'CPU Usage'=42%;100;200;

I'm monitoring CPU usage on our router. If it goes above 100% page
me. Again, I don't care about the CPU usage, I only want to know
about that -e 10 (if the MRTG data is more than 10 minutes old).
When I run the above command it always exits with a 3 which is
Unknown in Nagios.

It reads the data from MRTG just fine, it's just that no matter WHAT
I do, or what syntax I try it always exits 3 unknown. Is my syntax
wrong on that check?

Scott



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list