2013-03-04 Sergio Martin <sergio.martin@artica.es>
* util/pandora_manage.pl: Update fired alert counts when use validate_all_alerts option git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7770 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
5b575988a3
commit
6cb75be3b3
|
@ -1,3 +1,8 @@
|
|||
2013-03-04 Sergio Martin <sergio.martin@artica.es>
|
||||
|
||||
* util/pandora_manage.pl: Update fired alert counts when
|
||||
use validate_all_alerts option
|
||||
|
||||
2013-03-01 Ramon Novoa <rnovoa@artica.es>
|
||||
|
||||
* lib/PandoraFMS/Core.pm,
|
||||
|
|
|
@ -2656,6 +2656,10 @@ sub cli_validate_all_alerts() {
|
|||
if($res == -1) {
|
||||
print_log "[ERROR] Alerts cannot be validated\n\n";
|
||||
}
|
||||
else {
|
||||
# Update fired alerts count in agents
|
||||
db_update ($dbh, "UPDATE tagente SET fired_count = 0");
|
||||
}
|
||||
}
|
||||
|
||||
##############################################################################
|
||||
|
@ -2693,6 +2697,10 @@ sub cli_validate_policy_alerts() {
|
|||
if($res == -1) {
|
||||
print_log "[ERROR] Alerts cannot be validated\n\n";
|
||||
}
|
||||
else {
|
||||
# Update fired alerts count in agents
|
||||
db_update ($dbh, "UPDATE tagente SET fired_count = 0");
|
||||
}
|
||||
}
|
||||
|
||||
##############################################################################
|
||||
|
|
Loading…
Reference in New Issue