mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
move poller.php (inc os/system) to db* (and others, but poller is biggest change)
git-svn-id: http://www.observium.org/svn/observer/trunk@2298 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@ -7,13 +7,11 @@ include("includes/functions.php");
|
||||
|
||||
## Check all of our interface RRD files for errors
|
||||
|
||||
if ($argv[1]) { $where = "AND `interface_id` = '$argv[1]'"; }
|
||||
if ($argv[1]) { $where = "AND `interface_id` = ?"; $params = array($argv[1]); }
|
||||
|
||||
$i = '0';
|
||||
|
||||
$interface_query = mysql_query("SELECT * FROM `ports` AS I, `devices` AS D WHERE I.device_id = D.device_id $where");
|
||||
|
||||
while ($interface = mysql_fetch_assoc($interface_query))
|
||||
foreach (dbFetchRows("SELECT * FROM `ports` AS I, `devices` AS D WHERE I.device_id = D.device_id $where", $params) as $interface)
|
||||
{
|
||||
$errors = $interface['ifInErrors_delta'] + $interface['ifOutErrors_delta'];
|
||||
if ($errors > '1')
|
||||
|
Reference in New Issue
Block a user