Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
define service {
host_name sw-00-00
service_description BP Trk1
check_command check_bw!"Trk1"!2000000000
use snmp-port-bw,srv-pnp
}
define service {
host_name sw-00-00
service_description BP Trk2
check_command check_bw!"Trk2"!2000000000
use snmp-port-bw,srv-pnp
}
define service {
host_name sw-00-00
service_description BP Port 24
check_command check_bw!24!1000000000
use snmp-port-bw,srv-pnp
}
Only the service "BP Trk2" works. The others "work in CLI", but on nagios web interface, I get a :
BP Trk1
CRITICAL 01-13-2011 18:17:23 0d 7h 10m 5s 10/10 (Return code of 13 is out of bounds)
I answer myself.
I just read a post that I didn't find before, which gave me the solution : Your check_iftraffic plugin works fine from commandline, but fails if nagios runs the check.
Surely you ran the plugin in commandline before defining a serviceobject. If you do so, a tmp file is created in /tmp/check_ifx_ip with owner root. Of course nagios can’t update this file because of bad ownerships.
Solution: Delete the /tmp/check_ifX_IP file and Nagios will check normally.
Could you please assist me with check_iftraffic.
Everything is ok when it started in console, but from the web it doesnt want to draw graphs. It shows blank graphs.