ADDING SNMP MONITORS

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
matt.lilek
Posts: 137
Joined: Wed Aug 07, 2013 11:53 am

ADDING SNMP MONITORS

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: ADDING SNMP MONITORS

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
matt.lilek
Posts: 137
Joined: Wed Aug 07, 2013 11:53 am

Re: ADDING SNMP MONITORS

Post 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]
Last edited by matt.lilek on Thu Nov 07, 2013 9:50 am, edited 1 time in total.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: ADDING SNMP MONITORS

Post 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?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
matt.lilek
Posts: 137
Joined: Wed Aug 07, 2013 11:53 am

Re: ADDING SNMP MONITORS

Post by matt.lilek »

have not tried to change anything as this was done by the wizard
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: ADDING SNMP MONITORS

Post 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.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: ADDING SNMP MONITORS

Post 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?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
matt.lilek
Posts: 137
Joined: Wed Aug 07, 2013 11:53 am

Re: ADDING SNMP MONITORS

Post by matt.lilek »

no error code tried from the CCM and from the command line. Even dropped the ^
matt.lilek
Posts: 137
Joined: Wed Aug 07, 2013 11:53 am

Re: ADDING SNMP MONITORS

Post by matt.lilek »

BTW its a 2003 SP2
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: ADDING SNMP MONITORS

Post 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?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked