mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Changing polling structure
git-svn-id: http://www.observium.org/svn/observer/trunk@67 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
1
cron.sh
1
cron.sh
@@ -3,7 +3,6 @@
|
||||
./poll-reachability.php
|
||||
./poll-device.php &
|
||||
./poll-interface.php &
|
||||
./poll-temperatures.php &
|
||||
./ips.php &
|
||||
./check-services.php
|
||||
./alerts.php
|
||||
|
@@ -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';
|
||||
}
|
||||
|
Reference in New Issue
Block a user