[Nagiosplug-help] check_snmp_storage.pl

Ahmad Zuhd ahmad.zuhd at gmail.com
Wed Mar 6 10:06:45 CET 2013


I have a problem when checking the snmp storage for one of the servers.



Below is the command and the output:



[root at nms ~]# /usr/local/nagios/libexec/check_snmp_storage.pl  -H EMMC202
-C public -2  -m "^/NASbackup*$" -w 80 -c 95 -f

Use of uninitialized value in concatenation (.) or string at
/usr/local/nagios/libexec/check_snmp_storage_wizard.pl line 547.

Use of uninitialized value in concatenation (.) or string at
/usr/local/nagios/libexec/check_snmp_storage_wizard.pl line 548.

Use of uninitialized value in concatenation (.) or string at
/usr/local/nagios/libexec/check_snmp_storage_wizard.pl line 549.

Data not fully defined for storage /NASbackup : UNKNOWN



When checking the snmp object concerning that storage device, I have found
no problem in the object in different tables:



[root at nms ~]# snmpget  -v2c -c public  -m ALL EMMC202
1.3.6.1.2.1.25.2.3.1.1.19

HOST-RESOURCES-MIB::hrStorageIndex.19 = INTEGER: 19

[root at nms ~]# snmpget  -v2c -c public  -m ALL EMMC202
1.3.6.1.2.1.25.2.3.1.2.19

HOST-RESOURCES-MIB::hrStorageType.19 = OID:
HOST-RESOURCES-TYPES::hrStorageFixedDisk

[root at nms ~]# snmpget  -v2c -c public  -m ALL EMMC202
1.3.6.1.2.1.25.2.3.1.3.19

HOST-RESOURCES-MIB::hrStorageDescr.19 = STRING: /NASbackup

[root at nms ~]# snmpget  -v2c -c public  -m ALL EMMC202
1.3.6.1.2.1.25.2.3.1.4.19

HOST-RESOURCES-MIB::hrStorageAllocationUnits.19 = INTEGER: 512 Bytes

[root at nms ~]# snmpget  -v2c -c public  -m ALL EMMC202
1.3.6.1.2.1.25.2.3.1.5.19

HOST-RESOURCES-MIB::hrStorageSize.19 = INTEGER: 4151636931

[root at nms ~]# snmpget  -v2c -c public  -m ALL EMMC202
1.3.6.1.2.1.25.2.3.1.6.19

HOST-RESOURCES-MIB::hrStorageUsed.19 = INTEGER: 3013383156

[root at nms ~]# snmpget  -v2c -c public  -m ALL EMMC202
1.3.6.1.2.1.25.2.3.1.7.19

HOST-RESOURCES-MIB::hrStorageAllocationFailures.19 = Counter32: 0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20130306/eb8958fb/attachment.html>


More information about the Help mailing list