check_snmp_storage.pl and ERROR: Description/Type table : No
Posted: Wed Oct 17, 2018 10:44 pm
Error " ERROR: Description/Type table : No response from remote host " occurs about 50% of the time various VMs. And it is not tied to time of day (happens randomly across a 24 hour period) and only on 4 or 5 VMs.
I modified the script to post additional diagnostics to see where the issue was (though it was rather obvious) and got this back from 2 runs, one with diags and one w/o.
>>>/usr/local/nagios/libexec>>./check_snmp_storage.pl -H APP-AS-01 -C ARM1 --v2c -m ^C: -w 90 -c 95 -f -v
Alarm at 60
Connecting to host
SNMP v2c login
Connected...
Got rid of UTF8 translation in case of accentuated caracters
Getting descr_table
Filter : ^C:
OID : 1.3.6.1.2.1.25.2.3.1.3.3, Desc : D:\
OID : 1.3.6.1.2.1.25.2.3.1.3.5, Desc : Physical Memory
OID : 1.3.6.1.2.1.25.2.3.1.3.2, Desc : C:\ Label: Serial Number e45adf46
Name : C:\ Label: Serial Number e45adf46, Index : 2
OID : 1.3.6.1.2.1.25.2.3.1.3.4, Desc : Virtual Memory
OID : 1.3.6.1.2.1.25.2.3.1.3.1, Desc : A:\
storages selected : 1
1.3.6.1.2.1.25.2.3.1.6.2 : 11746595
1.3.6.1.2.1.25.2.3.1.5.2 : 14391551
1.3.6.1.2.1.25.2.3.1.4.2 : 4096
Descr : C:\ Label: Serial Number e45adf46
Size : 14391551
Used : 11746595
Alloc : 4096
Perf data : 'C:\_Label:__Serial_Number_e45adf46'=45885MB;50595;53406;0;56217
C:\ Label: Serial Number e45adf46: 82%used(45885MB/56217MB) (<90%) : OK | 'C:\_Label:__Serial_Number_e45adf46'=45885MB;50595;53406;0;56217
>>>
>>>/usr/local/nagios/libexec>>./check_snmp_storage.pl -H APP-AS-01 -C ARM1 --v2c -m ^C: -w 90 -c 95 -f
ERROR: Description/Type table : No response from remote host "APP-AS-01".
The firewall is not running on the windows server being queried and, since it runs, SNMP seems to be configured correctly. It does also fail with diagnostics in this code block. It is failing on the line in red:
if (defined ($o_index)){
verb("Getting index_table");
if (version->parse(Net::SNMP->VERSION) < 4) {
$resultat = $session->get_table($index_table);
} else {
$resultat = $session->get_table(Baseoid => $index_table);
}
} else {
verb("Getting descr_table");
if (version->parse(Net::SNMP->VERSION) < 4) {
$resultat = $session->get_table($descr_table);
} else {
$resultat = $session->get_table(Baseoid => $descr_table);
}
}
Any ideas?
Also, adding -t 60 gives this:
Alarm at 60
Connecting to host
SNMP v2c login
Connected...
Got rid of UTF8 translation in case of accentuated caracters
Getting descr_table ....and 60 seconds later we get...
ERROR: General time-out (Alarm signal)
I modified the script to post additional diagnostics to see where the issue was (though it was rather obvious) and got this back from 2 runs, one with diags and one w/o.
>>>/usr/local/nagios/libexec>>./check_snmp_storage.pl -H APP-AS-01 -C ARM1 --v2c -m ^C: -w 90 -c 95 -f -v
Alarm at 60
Connecting to host
SNMP v2c login
Connected...
Got rid of UTF8 translation in case of accentuated caracters
Getting descr_table
Filter : ^C:
OID : 1.3.6.1.2.1.25.2.3.1.3.3, Desc : D:\
OID : 1.3.6.1.2.1.25.2.3.1.3.5, Desc : Physical Memory
OID : 1.3.6.1.2.1.25.2.3.1.3.2, Desc : C:\ Label: Serial Number e45adf46
Name : C:\ Label: Serial Number e45adf46, Index : 2
OID : 1.3.6.1.2.1.25.2.3.1.3.4, Desc : Virtual Memory
OID : 1.3.6.1.2.1.25.2.3.1.3.1, Desc : A:\
storages selected : 1
1.3.6.1.2.1.25.2.3.1.6.2 : 11746595
1.3.6.1.2.1.25.2.3.1.5.2 : 14391551
1.3.6.1.2.1.25.2.3.1.4.2 : 4096
Descr : C:\ Label: Serial Number e45adf46
Size : 14391551
Used : 11746595
Alloc : 4096
Perf data : 'C:\_Label:__Serial_Number_e45adf46'=45885MB;50595;53406;0;56217
C:\ Label: Serial Number e45adf46: 82%used(45885MB/56217MB) (<90%) : OK | 'C:\_Label:__Serial_Number_e45adf46'=45885MB;50595;53406;0;56217
>>>
>>>/usr/local/nagios/libexec>>./check_snmp_storage.pl -H APP-AS-01 -C ARM1 --v2c -m ^C: -w 90 -c 95 -f
ERROR: Description/Type table : No response from remote host "APP-AS-01".
The firewall is not running on the windows server being queried and, since it runs, SNMP seems to be configured correctly. It does also fail with diagnostics in this code block. It is failing on the line in red:
if (defined ($o_index)){
verb("Getting index_table");
if (version->parse(Net::SNMP->VERSION) < 4) {
$resultat = $session->get_table($index_table);
} else {
$resultat = $session->get_table(Baseoid => $index_table);
}
} else {
verb("Getting descr_table");
if (version->parse(Net::SNMP->VERSION) < 4) {
$resultat = $session->get_table($descr_table);
} else {
$resultat = $session->get_table(Baseoid => $descr_table);
}
}
Any ideas?
Also, adding -t 60 gives this:
Alarm at 60
Connecting to host
SNMP v2c login
Connected...
Got rid of UTF8 translation in case of accentuated caracters
Getting descr_table ....and 60 seconds later we get...
ERROR: General time-out (Alarm signal)