Page 1 of 2
SNMP is not working for few services
Posted: Wed Jun 24, 2015 2:02 am
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
Re: SNMP is not working for few services
Posted: Wed Jun 24, 2015 10:31 am
by ssax
Are you using Sun's SNMP implementation or did you install net-snmp?
Re: SNMP is not working for few services
Posted: Tue Jun 30, 2015 4:29 pm
by tthomas
Hi ssax,
I am using Sun's SNMP implementation.
Re: SNMP is not working for few services
Posted: Wed Jul 01, 2015 11:51 am
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?
Re: SNMP is not working for few services
Posted: Wed Jul 01, 2015 12:20 pm
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.
Re: SNMP is not working for few services
Posted: Wed Jul 01, 2015 2:08 pm
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
Re: SNMP is not working for few services
Posted: Mon Jul 13, 2015 5:00 am
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
]#
Re: SNMP is not working for few services
Posted: Mon Jul 13, 2015 5:19 am
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
Re: SNMP is not working for few services
Posted: Mon Jul 13, 2015 11:41 am
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.
Re: SNMP is not working for few services
Posted: Mon Jul 20, 2015 5:37 am
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