Page 2 of 2
Re: SNMP is not working for few services
Posted: Mon Jul 20, 2015 11:55 am
by ssax
You need 2 warning and 2 criticals defined because it's returning for RAM and SWAP, try this:
Code: Select all
/usr/local/nagios/libexec/check_snmp_mem.pl -H HOSTNAME -C STRING -w 99,99 -c 100,100 -f
I think the second command having issues is a Solaris SNMP specific issue, I'm wondering if you installed net-snmp on there if it would work.
Re: SNMP is not working for few services
Posted: Tue Jul 21, 2015 2:49 am
by tthomas
Hi ssax,
Thanks for the suggestion.
But i am getting the below error while executing the command.
Code: Select all
ERROR: netsnmp : Received noSuchName(2) error-status at error-index 5.
My server and snmp package details are given below.
Code: Select all
Operating system : SunOS 5.10 Generic_147441-15 i86pc i386 i86pc
System Configuration : Sun Microsystems SUN FIRE X4450
STATE STIME FMRI
online 2014 svc:/application/management/sma:default
# ps -ef | grep snmp
root 20199 1 0 Jan 15 ? 157:44 /usr/sfw/sbin/snmpd
Re: SNMP is not working for few services
Posted: Tue Jul 21, 2015 10:37 am
by tgriep
I am assuming that you have your system configured for SNMP version 2. If so, you need to run the command with the -2 option like below.
Code: Select all
/usr/local/nagios/libexec/check_snmp_mem.pl -H HOSTNAME -C STRING -2 -w 99,99 -c 100,100 -f
Re: SNMP is not working for few services
Posted: Wed Jul 22, 2015 1:18 am
by tthomas
Thank you tgriep for the suggestion.
It worked with a warning message.
Code: Select all
Argument "noSuchInstance" isn't numeric in addition (+) at /usr/local/nagios/libexec/check_snmp_mem.pl line 477.
Ram : 90%, Swap : 0% : ; OK | ram_used=120135920;132873559;134215716;0;134215716 swap_used=0;33218884;33554428;0;33554428
How can I modify this command in Nagios XI through GUI?
But for CPU check it is giving back an error when executed using -2 option.
Code: Select all
Can't find CPU usage information : UNKNOWN
Re: SNMP is not working for few services
Posted: Wed Jul 22, 2015 9:50 am
by tgriep
I feel that Sun's SNMP daemon that is running on the server isn't 100% compatible with those plugings.
You can try and see if you can install net-snmp's daemon on the server or the plugins will have to be modified to work with Sun's SNMP daemon.