This support forum board is for support questions relating to
Nagios XI , our flagship commercial network monitoring solution.
ssax
Dreams In Code
Posts: 7682 Joined: Wed Feb 11, 2015 12:54 pm
Post
by ssax » Mon Jul 20, 2015 11:55 am
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.
tthomas
Posts: 39 Joined: Mon Jun 01, 2015 6:54 am
Post
by tthomas » Tue Jul 21, 2015 2:49 am
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
tgriep
Madmin
Posts: 9177 Joined: Thu Oct 30, 2014 9:02 am
Post
by tgriep » Tue Jul 21, 2015 10:37 am
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
Be sure to check out our
Knowledgebase for helpful articles and solutions!
tthomas
Posts: 39 Joined: Mon Jun 01, 2015 6:54 am
Post
by tthomas » Wed Jul 22, 2015 1:18 am
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
tgriep
Madmin
Posts: 9177 Joined: Thu Oct 30, 2014 9:02 am
Post
by tgriep » Wed Jul 22, 2015 9:50 am
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.
Be sure to check out our
Knowledgebase for helpful articles and solutions!