Page 1 of 3

ADDING SNMP MONITORS

Posted: Fri Aug 23, 2013 9:42 am
by matt.lilek
I just tried to add SNMP monitors to a few servers and they are coming up as unknown the community is set correctly i have restarted snmp service on the server and i dont know what else to do can you please help. One other thing is i was wondering is there any way of doing all these in bulk (once it is working) using Nagiosxi i have a few thousand to do.

Thank you

Re: ADDING SNMP MONITORS

Posted: Fri Aug 23, 2013 9:49 am
by abrist
Could you post the full command and check (ARGs as well) for the snmp check?
matt.lilek wrote:One other thing is i was wondering is there any way of doing all these in bulk (once it is working) using Nagiosxi i have a few thousand to do.
If you are checking the same oids/mibs on multiple hosts, you could always configure a few generic service checks and apply them to hostgroups containing the servers that you wish to inherit the check.

Re: ADDING SNMP MONITORS

Posted: Fri Aug 23, 2013 2:17 pm
by matt.lilek
check_xi_service_snmp_win_storage! -C Password! --v2c -m ^C: -w 80 -c 95 -f

Usage: check_snmp_storage [-v] -H <host> -C <snmp_community> [-2]

Re: ADDING SNMP MONITORS

Posted: Fri Aug 23, 2013 2:38 pm
by sreinhardt
Have you tried removing the ^ from ^C:?

Such as:

check_xi_service_snmp_win_storage! -C passwd --v2c -m ^C: -w 80 -c 95 -f

Also was this added manually or via the wizard?

Re: ADDING SNMP MONITORS

Posted: Mon Aug 26, 2013 8:48 am
by matt.lilek
have not tried to change anything as this was done by the wizard

Re: ADDING SNMP MONITORS

Posted: Mon Aug 26, 2013 10:50 am
by slansing
Hmm, can you make this change via the CCM, save, apply configuration, and see what results you get? Or, you could run it by hand from the command line, just mirror what the command definition from the service uses.

Re: ADDING SNMP MONITORS

Posted: Mon Aug 26, 2013 10:55 am
by sreinhardt
I was able to confirm that this should be working with the default commands. What version of windows is this, and what is the exact error code that you are getting?

Re: ADDING SNMP MONITORS

Posted: Mon Aug 26, 2013 12:48 pm
by matt.lilek
no error code tried from the CCM and from the command line. Even dropped the ^

Re: ADDING SNMP MONITORS

Posted: Mon Aug 26, 2013 12:53 pm
by matt.lilek
BTW its a 2003 SP2

Re: ADDING SNMP MONITORS

Posted: Mon Aug 26, 2013 1:15 pm
by sreinhardt
You should not need to remove the ^, I wasn't aware at first that it is normally included. As for the unknown, what is it saying in regard to output? Something similar to "Could not find drive\oid" or host unresponsive?