Changing polling structure

git-svn-id: http://www.observium.org/svn/observer/trunk@67 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2007-04-08 12:23:45 +00:00
parent d30625c23c
commit 05a156dc2f
2 changed files with 6 additions and 3 deletions

View File

@@ -3,7 +3,6 @@
./poll-reachability.php
./poll-device.php &
./poll-interface.php &
./poll-temperatures.php &
./ips.php &
./check-services.php
./alerts.php

View File

@@ -19,6 +19,7 @@ while ($device = mysql_fetch_array($device_query)) {
$snmpable = isSNMPable($hostname, $community, $snmpver);
}
if ($pingable !== FALSE && $snmpable !== FALSE ) {
$newstatus = '1';
$hardware = $device['hardware'];
$version = $device['version'];
@@ -44,8 +45,6 @@ while ($device = mysql_fetch_array($device_query)) {
$secs = $secs + ($mins * 60);
$newuptime = $secs;
include("poll-device-netstats.php");
switch ($os) {
case "FreeBSD":
case "DragonFly":
@@ -143,6 +142,11 @@ while ($device = mysql_fetch_array($device_query)) {
pollDevice();
}
$newlocation = str_replace("\"","", $sysLocation);
include("includes/polling/temperatures.inc.php");
include("includes/polling/device-netstats.inc.php");
} else {
$newstatus = '0';
}