mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fixes
git-svn-id: http://www.observium.org/svn/observer/trunk@559 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@ -1,6 +1,12 @@
|
|||||||
#!/usr/bin/php
|
#!/usr/bin/php
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
ini_set('display_errors', 1);
|
||||||
|
ini_set('display_startup_errors', 1);
|
||||||
|
ini_set('log_errors', 1);
|
||||||
|
ini_set('error_reporting', E_ALL);
|
||||||
|
|
||||||
|
|
||||||
include("config.php");
|
include("config.php");
|
||||||
|
|
||||||
if(!$config['enable_syslog']) {
|
if(!$config['enable_syslog']) {
|
||||||
@ -30,8 +36,11 @@ mysql_query("DELETE FROM `syslog` WHERE `datetime` < DATE_SUB(NOW(), INTERVAL ".
|
|||||||
$q = mysql_query("SELECT * FROM `syslog` where `processed` = '0'");
|
$q = mysql_query("SELECT * FROM `syslog` where `processed` = '0'");
|
||||||
while($entry = mysql_fetch_array($q)){
|
while($entry = mysql_fetch_array($q)){
|
||||||
|
|
||||||
|
print_r($entry);
|
||||||
|
|
||||||
process_syslog($entry, 1);
|
process_syslog($entry, 1);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
Reference in New Issue
Block a user