SNMP is not working for few services

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

Re: SNMP is not working for few services

Post 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.
tthomas
Posts: 39
Joined: Mon Jun 01, 2015 6:54 am

Re: SNMP is not working for few services

Post 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
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: SNMP is not working for few services

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
tthomas
Posts: 39
Joined: Mon Jun 01, 2015 6:54 am

Re: SNMP is not working for few services

Post 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
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: SNMP is not working for few services

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked