mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-27 16:08:55 +02:00
Merge pull request #3103 from laf/alert-ip-fix
This commit is contained in:
@@ -232,6 +232,7 @@ function RunRules($device) {
|
||||
$chk = dbFetchRow("SELECT state FROM alerts WHERE rule_id = ? && device_id = ? ORDER BY id DESC LIMIT 1", array($rule['id'], $device));
|
||||
$sql = GenSQL($rule['rule']);
|
||||
$qry = dbFetchRows($sql,array($device));
|
||||
$qry[0]['ip'] = inet6_ntop($qry[0]['ip']);
|
||||
$s = sizeof($qry);
|
||||
if( $s == 0 && $inv === false ) {
|
||||
$doalert = false;
|
||||
|
||||
Reference in New Issue
Block a user