Page 2 of 2

Re: Unknown Status

Posted: Mon Nov 21, 2016 4:10 pm
by bashar.abed
Hi,
please see the below output when i applied your commands

Code: Select all

snmpwalk -v 2c -c jawwal-snmp x.x.x.x 1.3.6.1.2.1.25.2

HOST-RESOURCES-MIB::hrMemorySize.0 = INTEGER: 3404972 KBytes
HOST-RESOURCES-MIB::hrStorageIndex.1 = INTEGER: 1
HOST-RESOURCES-MIB::hrStorageIndex.2 = INTEGER: 2
HOST-RESOURCES-MIB::hrStorageIndex.3 = INTEGER: 3
HOST-RESOURCES-MIB::hrStorageIndex.4 = INTEGER: 4
HOST-RESOURCES-MIB::hrStorageIndex.5 = INTEGER: 5
HOST-RESOURCES-MIB::hrStorageType.1 = OID: HOST-RESOURCES-TYPES::hrStorageFixedDisk
HOST-RESOURCES-MIB::hrStorageType.2 = OID: HOST-RESOURCES-TYPES::hrStorageFixedDisk
HOST-RESOURCES-MIB::hrStorageType.3 = OID: HOST-RESOURCES-TYPES::hrStorageCompactDisc
HOST-RESOURCES-MIB::hrStorageType.4 = OID: HOST-RESOURCES-TYPES::hrStorageVirtualMemory
HOST-RESOURCES-MIB::hrStorageType.5 = OID: HOST-RESOURCES-TYPES::hrStorageRam
HOST-RESOURCES-MIB::hrStorageDescr.1 = STRING: C:\ Label:  Serial Number 78530cd
HOST-RESOURCES-MIB::hrStorageDescr.2 = STRING: D:\ Label:New Volume  Serial Number aac60ddb
HOST-RESOURCES-MIB::hrStorageDescr.3 = STRING: N:\
HOST-RESOURCES-MIB::hrStorageDescr.4 = STRING: Virtual Memory
HOST-RESOURCES-MIB::hrStorageDescr.5 = STRING: Physical Memory
HOST-RESOURCES-MIB::hrStorageAllocationUnits.1 = INTEGER: 4096 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.2 = INTEGER: 4096 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.3 = INTEGER: 0 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.4 = INTEGER: 65536 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.5 = INTEGER: 65536 Bytes
HOST-RESOURCES-MIB::hrStorageSize.1 = INTEGER: 35834383
HOST-RESOURCES-MIB::hrStorageSize.2 = INTEGER: 35834111
HOST-RESOURCES-MIB::hrStorageSize.3 = INTEGER: 0
HOST-RESOURCES-MIB::hrStorageSize.4 = INTEGER: 109975
HOST-RESOURCES-MIB::hrStorageSize.5 = INTEGER: 53202
HOST-RESOURCES-MIB::hrStorageUsed.1 = INTEGER: 18974923
HOST-RESOURCES-MIB::hrStorageUsed.2 = INTEGER: 10427894
HOST-RESOURCES-MIB::hrStorageUsed.3 = INTEGER: 0
HOST-RESOURCES-MIB::hrStorageUsed.4 = INTEGER: 23971
HOST-RESOURCES-MIB::hrStorageUsed.5 = INTEGER: 19724
HOST-RESOURCES-MIB::hrStorageAllocationFailures.1 = Counter32: 0
HOST-RESOURCES-MIB::hrStorageAllocationFailures.2 = Counter32: 0
Timeout: No Response from X.X.X.X
You have new mail in /var/spool/mail/root

Re: Unknown Status

Posted: Mon Nov 21, 2016 5:03 pm
by avandemore
What does this show?

Code: Select all

# snmpwalk -v 2c -t 120 -c jawwal-snmp x.x.x.x 1.3.6.1.2.1.25.2

Re: Unknown Status

Posted: Tue Nov 22, 2016 1:28 am
by bashar.abed
Hi,

please see the below output after applied your command,and what is mean for this result and what is problem and how can solve it

Code: Select all

[root@ libexec]# snmpwalk -v 2c -t 120 -c jawwal-snmp x.x.x.x 1.3.6.1.2.1.25.2
HOST-RESOURCES-MIB::hrMemorySize.0 = INTEGER: 3404972 KBytes
HOST-RESOURCES-MIB::hrStorageIndex.1 = INTEGER: 1
HOST-RESOURCES-MIB::hrStorageIndex.2 = INTEGER: 2
HOST-RESOURCES-MIB::hrStorageIndex.3 = INTEGER: 3
HOST-RESOURCES-MIB::hrStorageIndex.4 = INTEGER: 4
HOST-RESOURCES-MIB::hrStorageIndex.5 = INTEGER: 5
HOST-RESOURCES-MIB::hrStorageType.1 = OID: HOST-RESOURCES-TYPES::hrStorageFixedDisk
HOST-RESOURCES-MIB::hrStorageType.2 = OID: HOST-RESOURCES-TYPES::hrStorageFixedDisk
HOST-RESOURCES-MIB::hrStorageType.3 = OID: HOST-RESOURCES-TYPES::hrStorageCompactDisc
HOST-RESOURCES-MIB::hrStorageType.4 = OID: HOST-RESOURCES-TYPES::hrStorageVirtualMemory
HOST-RESOURCES-MIB::hrStorageType.5 = OID: HOST-RESOURCES-TYPES::hrStorageRam
HOST-RESOURCES-MIB::hrStorageDescr.1 = STRING: C:\ Label:  Serial Number 78530cd
HOST-RESOURCES-MIB::hrStorageDescr.2 = STRING: D:\ Label:New Volume  Serial Number aac60ddb
HOST-RESOURCES-MIB::hrStorageDescr.3 = STRING: N:\
HOST-RESOURCES-MIB::hrStorageDescr.4 = STRING: Virtual Memory
HOST-RESOURCES-MIB::hrStorageDescr.5 = STRING: Physical Memory
HOST-RESOURCES-MIB::hrStorageAllocationUnits.1 = INTEGER: 4096 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.2 = INTEGER: 4096 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.3 = INTEGER: 0 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.4 = INTEGER: 65536 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.5 = INTEGER: 65536 Bytes
HOST-RESOURCES-MIB::hrStorageSize.1 = INTEGER: 35834383
HOST-RESOURCES-MIB::hrStorageSize.2 = INTEGER: 35834111
HOST-RESOURCES-MIB::hrStorageSize.3 = INTEGER: 0
HOST-RESOURCES-MIB::hrStorageSize.4 = INTEGER: 109975
HOST-RESOURCES-MIB::hrStorageSize.5 = INTEGER: 53202
HOST-RESOURCES-MIB::hrStorageUsed.1 = INTEGER: 18981456
HOST-RESOURCES-MIB::hrStorageUsed.2 = INTEGER: 10424967
HOST-RESOURCES-MIB::hrStorageUsed.3 = INTEGER: 0
HOST-RESOURCES-MIB::hrStorageUsed.4 = INTEGER: 24196
HOST-RESOURCES-MIB::hrStorageUsed.5 = INTEGER: 19434
HOST-RESOURCES-MIB::hrStorageAllocationFailures.1 = Counter32: 0
HOST-RESOURCES-MIB::hrStorageAllocationFailures.2 = Counter32: 0
HOST-RESOURCES-MIB::hrStorageAllocationFailures.3 = Counter32: 0
HOST-RESOURCES-MIB::hrStorageAllocationFailures.4 = Counter32: 0
HOST-RESOURCES-MIB::hrStorageAllocationFailures.5 = Counter32: 0
[root@ libexec]#

Re: Unknown Status

Posted: Tue Nov 22, 2016 10:15 am
by avandemore
Your command is timing out. Please see my previous post for methods of resolution: https://support.nagios.com/forum/viewto ... 57#p203357

Re: Unknown Status

Posted: Tue Nov 22, 2016 11:08 am
by bashar.abed
Hi
So the problem from nagios or from server?

Thanks

Re: Unknown Status

Posted: Tue Nov 22, 2016 2:01 pm
by avandemore
That all depends on your perspective. The check command is timing out due to its settings. This is able to be overridden as noted. If you think it should be able to respond in 5 seconds, then you should pursue the issue with your device vendor. If an extended wait on the check is okay for your purposes then you could increase the timeout. Almost all SNMP checks return in less than 5 seconds. A check taking longer may or may not indicate a problem.

Re: Unknown Status

Posted: Wed Nov 23, 2016 6:04 am
by bashar.abed
Hi,

many thanks for your help i increased the time out to 60 second ,and the services are ruining fine now


You can close the case

thanks

Re: Unknown Status

Posted: Wed Nov 23, 2016 10:22 am
by dwhitfield
Glad to hear it is resolved. I am going to lock the thread. Please feel free to post again if you have you another issue. Thank you for using the Nagios forums!