]> git.pld-linux.org Git - packages/cacti.git/blob - cacti-ss_disk-array-indices.patch
Up to 1.2.26
[packages/cacti.git] / cacti-ss_disk-array-indices.patch
1 --- ./scripts/ss_host_disk.php  2008-10-05 18:19:17.656634044 +0300
2 +++ ./scripts/ss_host_disk.php  2008-10-07 11:07:10.120905407 +0300
3 @@ -86,12 +86,16 @@ function ss_host_disk($hostname, $host_i
4                                 $snmp_auth_password, $snmp_auth_protocol, $snmp_priv_passphrase, $snmp_priv_protocol,
5                                 $snmp_context, $snmp_port, $snmp_timeout, $ping_retries, $max_oids, SNMP_POLLER)
6                         );
7 +               if (empty($arr_index))
8 +                       return;
9  
10                 $arr = ss_host_disk_reindex(
11                         cacti_snmp_walk($hostname, $snmp_community, $oids[$arg], $snmp_version, $snmp_auth_username,
12                                 $snmp_auth_password, $snmp_auth_protocol, $snmp_priv_passphrase, $snmp_priv_protocol,
13                                 $snmp_context, $snmp_port, $snmp_timeout, $ping_retries, $max_oids, SNMP_POLLER)
14                         );
15 +               if (empty($arr))
16 +                       return; // we likely already got error already earlier, like "Timeout: No Response from localhost:161"
17  
18                 for ($i=0;($i<sizeof($arr_index));$i++) {
19                         print $arr_index[$i] . '!' . $arr[$i] . "\n";
20
This page took 0.035797 seconds and 3 git commands to generate.