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
ADDING SNMP MONITORS
Re: ADDING SNMP MONITORS
Could you post the full command and check (ARGs as well) for the snmp check?
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.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.
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.
"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
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]
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
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?
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
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
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
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
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
BTW its a 2003 SP2
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: ADDING SNMP MONITORS
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.