SNMP is not working for few services
SNMP is not working for few services
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
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
Are you using Sun's SNMP implementation or did you install net-snmp?
Re: SNMP is not working for few services
Hi ssax,
I am using Sun's SNMP implementation.
I am using Sun's SNMP implementation.
Re: SNMP is not working for few services
Can you run a snmpwalk or your Solaris server and post the output back here?
Could you also post how you are running the check command that is failing for you?
Code: Select all
snmpwalk <IP Address> -v 2c -c <Community String>Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: SNMP is not working for few services
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
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 memoryBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: SNMP is not working for few services
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
]#
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
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
/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
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.
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!
Re: SNMP is not working for few services
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.
We are getting unknown error for CPU load as well.
Regards
Tino
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 ] 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 : UNKNOWNTino