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{
use generic-service
host_name switch1
service_description 5 min CPU Average
check_command check_snmp!-C public -o .1.3.6.1.4.1.9.9.109.1.1.1.1.5
}
i cant see anything on web interface.
Could you help me with this configuration?!
Do you mean you can't see the service showing up at all, or do you mean that the service shows up but there is no data returning from the service check?
If the former, have you reloaded the Nagios config?
jdalrymple wrote:
Do you mean you can't see the service showing up at all, or do you mean that the service shows up but there is no data returning from the service check?
i mean it shows up but there is no data returning from the service check.
jdalrymple wrote:
If the former, have you reloaded the Nagios config?
I guess to troubleshoot it further we should make sure it runs properly when executed from the command line using the check_snmp plugin instead of snmpwalk:
/usr/lib64/nagios/plugins/check_snmp -H 172.16.110.1 -C public -P 2c -o .1.3.6.1.4.1.9.9.109.1.1.1.1.5
For reference it looks like you have a yum package of Nagios so I adjusted the plugins path using best guess, check_snmp may actually be located somewhere besides where I specified.
jdalrymple wrote:
I guess to troubleshoot it further we should make sure it runs properly when executed from the command line using the check_snmp plugin instead of snmpwalk:
OOoops, sorry I didn't tranaslate the walk output to a proper get. Change your service definition to the following - note the additional ".1" at the end of check_command. I bet that fixes it.
define service{
use generic-service
host_name switch1
service_description 5 min CPU Average
check_command check_snmp!-C public -o .1.3.6.1.4.1.9.9.109.1.1.1.1.5.1
}