Merge pull request #1194 from neokjames/master

Issued alerts add to the eventlog
This commit is contained in:
Daniel Preussker 2015-06-05 08:38:35 +00:00
commit 960da3c8b8

View File

@ -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 ".$obj['severity']." alert for rule '".$obj['name']."' to transport '".$transport."'",$obj['device_id']);
}
}
}