mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
improve poller (refresh $device array when we start a new device, so we don't get issues with overlap) remove old crap from catos poller, add CISCO-CEF mibs
git-svn-id: http://www.observium.org/svn/observer/trunk@1619 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -51,9 +51,10 @@ if (isset($options['d'])) { echo("DEBUG!\n"); $debug = 1; }
|
||||
|
||||
echo("Starting polling run:\n\n");
|
||||
$polled_devices = 0;
|
||||
$device_query = mysql_query("SELECT * FROM `devices` WHERE `ignore` = 0 AND `disabled` = 0 $where ORDER BY `device_id` ASC");
|
||||
while ($device = mysql_fetch_array($device_query))
|
||||
$device_query = mysql_query("SELECT `device_id` FROM `devices` WHERE `ignore` = 0 AND `disabled` = 0 $where ORDER BY `device_id` ASC");
|
||||
while ($device = mysql_fetch_assoc($device_query))
|
||||
{
|
||||
$device = mysql_fetch_assoc(mysql_query("SELECT * FROM `devices` WHERE `device_id` = '".$device['device_id']."'"));
|
||||
$status = 0; unset($array);
|
||||
$device_start = utime(); // Start counting device poll time
|
||||
|
||||
|
Reference in New Issue
Block a user