From bca839dc02c6d8476b117962cc16d83d22cf1f96 Mon Sep 17 00:00:00 2001 From: Adam Amstrong Date: Sun, 8 Apr 2007 21:26:06 +0000 Subject: [PATCH] Modifying polling setup git-svn-id: http://www.observium.org/svn/observer/trunk@73 61d68cd4-352d-0410-923a-c4978735b2b8 --- includes/polling/device-netstats.inc.php | 65 ++++++++++-------------- includes/polling/device-procurve.inc.php | 4 +- includes/polling/device-snom.inc.php | 13 ++++- 3 files changed, 40 insertions(+), 42 deletions(-) diff --git a/includes/polling/device-netstats.inc.php b/includes/polling/device-netstats.inc.php index a20630f3e..c71e15a11 100755 --- a/includes/polling/device-netstats.inc.php +++ b/includes/polling/device-netstats.inc.php @@ -1,49 +1,36 @@ diff --git a/includes/polling/device-procurve.inc.php b/includes/polling/device-procurve.inc.php index e6d8f71ff..b7c785bb5 100755 --- a/includes/polling/device-procurve.inc.php +++ b/includes/polling/device-procurve.inc.php @@ -3,12 +3,12 @@ $cpurrd = "rrd/" . $device['hostname'] . "-cpu.rrd"; $memrrd = "rrd/" . $device['hostname'] . "-mem.rrd"; -$cpu_cmd = "snmpget -O qv -" . $device['snmpver'] . " -c " . $device['community'] . " " . $device['hostname'] . " 1.3.6.1.4.1.11.2.14.11.5.1.9.6.1.0`; +$cpu_cmd = "snmpget -O qv -" . $device['snmpver'] . " -c " . $device['community'] . " " . $device['hostname'] . " 1.3.6.1.4.1.11.2.14.11.5.1.9.6.1.0"; $cpu = `$cpu_cmd`; $mem_cmd = "snmpget -O qv -" . $device['snmpver'] . " -c " . $device['community'] . " " . $device['hostname']; -$mem_cmd .= " 1.3.6.1.4.1.11.2.14.11.5.1.1.2.2.1.1.5.1 1.3.6.1.4.1.11.2.14.11.5.1.1.2.2.1.1.6.1 1.3.6.1.4.1.11.2.14.11.5.1.1.2.2.1.1.7.1`; +$mem_cmd .= " 1.3.6.1.4.1.11.2.14.11.5.1.1.2.2.1.1.5.1 1.3.6.1.4.1.11.2.14.11.5.1.1.2.2.1.1.6.1 1.3.6.1.4.1.11.2.14.11.5.1.1.2.2.1.1.7.1"; $mem = `$mem_cmd`; list ($memtotal, $memfree, $memused) = explode("\n", $mem); diff --git a/includes/polling/device-snom.inc.php b/includes/polling/device-snom.inc.php index c3731103d..346e4948b 100755 --- a/includes/polling/device-snom.inc.php +++ b/includes/polling/device-snom.inc.php @@ -1,9 +1,20 @@