mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-12 08:02:23 +02:00
HURRAH FOR SID3WINDR
git-svn-id: http://www.observium.org/svn/observer/trunk@560 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
+2
-2
@@ -200,7 +200,7 @@ while ($device = mysql_fetch_array($device_query)) {
|
||||
echo("\n");
|
||||
} else {
|
||||
$update_query = "UPDATE `devices` SET ";
|
||||
$update .= " `status` = '0'";
|
||||
$update_query .= " `status` = '0'";
|
||||
$update_query .= " WHERE `device_id` = '" . $device['device_id'] . "'";
|
||||
echo("Updating " . $device['hostname'] . "\n");
|
||||
$update_result = mysql_query($update_query);
|
||||
@@ -210,7 +210,7 @@ while ($device = mysql_fetch_array($device_query)) {
|
||||
$poller_end = utime(); $poller_run = $poller_end - $poller_start; $poller_time = substr($poller_run, 0, 5);
|
||||
|
||||
$string = $argv[0] . " $doing " . date("F j, Y, G:i") . " - $i devices polled in $poller_time secs";
|
||||
echo("$string\n");
|
||||
if ($debug) echo("$string\n");
|
||||
shell_exec("echo '".$string."' >> ".$config['install_dir']."/observer.log");
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user