Testing log_event for issued alerts

This commit is contained in:
James Campbell
2015-06-04 21:55:26 +10:00
parent ae2f7eb98f
commit 719c2bc63e

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