Репозитории ALT
S: | 1.2.24-alt1 |
5.1: | 0.8.7b-alt4 |
4.1: | 0.8.7b-alt2 |
4.0: | 0.8.6j-alt1 |
Группа :: Мониторинг
Пакет: cacti
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: cacti-ss_disk-array-indices.patch
Скачать
Скачать
--- ./scripts/ss_host_disk.php 2008-10-05 18:19:17.656634044 +0300
+++ ./scripts/ss_host_disk.php 2008-10-07 11:07:10.120905407 +0300
@@ -69,7 +69,11 @@
$arg = $arg1;
$arr_index = ss_host_disk_reindex(cacti_snmp_walk($hostname, $snmp_community, $oids["index"], $snmp_version, $snmp_auth_username, $snmp_auth_password, $snmp_auth_protocol, $snmp_priv_passphrase, $snmp_priv_protocol, $snmp_context, $snmp_port, $snmp_timeout, $ping_retries, $max_oids, SNMP_POLLER));
+ if (empty($arr_index))
+ return;
$arr = ss_host_disk_reindex(cacti_snmp_walk($hostname, $snmp_community, $oids[$arg], $snmp_version, $snmp_auth_username, $snmp_auth_password, $snmp_auth_protocol, $snmp_priv_passphrase, $snmp_priv_protocol, $snmp_context, $snmp_port, $snmp_timeout, $ping_retries, $max_oids, SNMP_POLLER));
+ if (empty($arr))
+ return; // we likely already got error already earlier, like "Timeout: No Response from localhost:161"
for ($i=0;($i<sizeof($arr_index));$i++) {
print $arr_index[$i] . "!" . $arr[$i] . "\n";