From 719c2bc63e5ee0dbea9522eaeb76e7a24b50a1ff Mon Sep 17 00:00:00 2001 From: James Campbell Date: Thu, 4 Jun 2015 21:55:26 +1000 Subject: [PATCH] Testing log_event for issued alerts --- alerts.php | 1 + 1 file changed, 1 insertion(+) diff --git a/alerts.php b/alerts.php index 6af7370b3d..2a46e60f59 100755 --- a/alerts.php +++ b/alerts.php @@ -252,6 +252,7 @@ function ExtTransports($obj) { eval('$tmp = function($obj,$opts) { global $config; '.file_get_contents($config['install_dir']."/includes/alerts/transport.".$transport.".php").' };'); $tmp = $tmp($obj,$opts); echo ($tmp ? "OK" : "ERROR")."; "; + log_event("Issued ".$severity." alert for rule ".$obj['name']." to transport".$transport,$obj['hostname'],"Alerts"); } } }