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

SNMP is not working for few services

Post by tthomas »

Hello,

I am trying to put a solaris machine under monitoring.

OS version - SunOS 5.10 Generic_144489-06 i86pc i386 i86pc

SNMP is working fine on the server and it is collecting data for few services , but few other services it is not working.

For example it is collecting data for swap memory usage but physical memory usage is giving error

Unknown storage : Physical memory : ERROR

Could you please help me to resolve this issue.

Regards
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 »

Are you using Sun's SNMP implementation or did you install net-snmp?
tthomas
Posts: 39
Joined: Mon Jun 01, 2015 6:54 am

Re: SNMP is not working for few services

Post by tthomas »

Hi ssax,

I am using Sun's SNMP implementation.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: SNMP is not working for few services

Post by tgriep »

Can you run a snmpwalk or your Solaris server and post the output back here?

Code: Select all

snmpwalk <IP Address> -v 2c -c <Community String>
Could you also post how you are running the check command that is failing for you?
Be sure to check out our Knowledgebase for helpful articles and solutions!
vnc786
Posts: 68
Joined: Thu Aug 29, 2013 8:45 am

Re: SNMP is not working for few services

Post by vnc786 »

if you are using check_snmp plugin you can use verbose (-v) and see at what OID it is trying and as suggested by tgriep try snmpwalk and match the OID.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: SNMP is not working for few services

Post by lmiltchev »

You can grep the output of the snmpwalk to limit (filter) the results. An example:

Code: Select all

snmpwalk x.x.x.x -v 2c -c <community> | grep -i memory
HOST-RESOURCES-MIB::hrMemorySize.0 = INTEGER: 4019552 KBytes
HOST-RESOURCES-MIB::hrStorageType.3 = OID: HOST-RESOURCES-TYPES::hrStorageVirtualMemory
HOST-RESOURCES-MIB::hrStorageType.10 = OID: HOST-RESOURCES-TYPES::hrStorageVirtualMemory
HOST-RESOURCES-MIB::hrStorageDescr.1 = STRING: Physical memory
HOST-RESOURCES-MIB::hrStorageDescr.3 = STRING: Virtual memory
HOST-RESOURCES-MIB::hrStorageDescr.6 = STRING: Memory buffers
HOST-RESOURCES-MIB::hrStorageDescr.7 = STRING: Cached memory
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 »

Hi

Please find the output below.

COMMAND: /usr/local/nagios/libexec/check_snmp_storage.pl -H HOSTNAME -C STRING -m 'Physical memory' -w 99 -c 100 -f -o 5000

~]# snmpwalk HOSTNAME -v 2c -c STRING| grep -i memory
HOST-RESOURCES-MIB::hrMemorySize.0 = INTEGER: 150985828 KBytes
HOST-RESOURCES-MIB::hrStorageType.3 = OID: HOST-RESOURCES-TYPES::hrStorageVirtualMemory
HOST-RESOURCES-MIB::hrStorageDescr.2 = STRING: Real Memory
Timeout: No Response from HOSTNAME
]#
tthomas
Posts: 39
Joined: Mon Jun 01, 2015 6:54 am

Re: SNMP is not working for few services

Post by tthomas »

Command output in verbose mode.

/usr/local/nagios/libexec/check_snmp_storage.pl -H HOSTNAME -C STRING -m 'Physical memory' -w 99 -c 100 -f -o 5000 -v

Alarm at 15
SNMP v1 login
actual max octets:: 1472
new max octets:: 5000
Filter : Physical memory
OID : 1.3.6.1.2.1.25.2.3.1.3.14, Desc : /tmp
OID : 1.3.6.1.2.1.25.2.3.1.3.19, Desc : /u01/appl
OID : 1.3.6.1.2.1.25.2.3.1.3.8, Desc : /etc/mnttab
OID : 1.3.6.1.2.1.25.2.3.1.3.16, Desc : /LOCAL
OID : 1.3.6.1.2.1.25.2.3.1.3.9, Desc : /etc/svc/volatile
OID : 1.3.6.1.2.1.25.2.3.1.3.6, Desc : /system/contract
OID : 1.3.6.1.2.1.25.2.3.1.3.20, Desc : /edsbackup
OID : 1.3.6.1.2.1.25.2.3.1.3.15, Desc : /var/run
OID : 1.3.6.1.2.1.25.2.3.1.3.18, Desc : /patch
OID : 1.3.6.1.2.1.25.2.3.1.3.17, Desc : /home
OID : 1.3.6.1.2.1.25.2.3.1.3.4, Desc : /
OID : 1.3.6.1.2.1.25.2.3.1.3.11, Desc : /etc/dfs/sharetab
OID : 1.3.6.1.2.1.25.2.3.1.3.12, Desc : /lib/libc.so.1
OID : 1.3.6.1.2.1.25.2.3.1.3.7, Desc : /proc
OID : 1.3.6.1.2.1.25.2.3.1.3.3, Desc : Swap Space
OID : 1.3.6.1.2.1.25.2.3.1.3.10, Desc : /system/object
OID : 1.3.6.1.2.1.25.2.3.1.3.2, Desc : Real Memory
OID : 1.3.6.1.2.1.25.2.3.1.3.5, Desc : /devices
OID : 1.3.6.1.2.1.25.2.3.1.3.13, Desc : /var
storages selected : 0
Unknown storage : Physical memory : ERROR
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: SNMP is not working for few services

Post by tgriep »

If you are trying to check the amount of memory or storage space?
If you are trying to check the memory of the server you should use the check_snmp_mem.pl plugin.
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 »

Hi

I tried with check_snmp_mem.pl plugin, but It is complaining about the format I used for the command. I am not sure what login credentials it is looking for other than community string.

Code: Select all

COMMAND: /usr/local/nagios/libexec/check_snmp_mem.pl -H HOSTNAME -C STRING -w 99 -c 100 -f
OUTPUT: 2 warnings and critical !
Usage: /usr/local/nagios/libexec/check_snmp_mem.pl [-v] -H  -C  [-2] | (-l login -x passwd [-X pass -L ,])  [-p ] 
We are getting unknown error for CPU load as well.

Code: Select all

COMMAND: /usr/local/nagios/libexec/check_snmp_load.pl -H HOSTNAME -C STRING -w 99 -c 100 -T stand -f
OUTPUT: Can't find CPU usage information : UNKNOWN
Regards
Tino
Locked