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:
zarzuelo 2013-03-04 12:57:37 +00:00
parent 5b575988a3
commit 6cb75be3b3
2 changed files with 13 additions and 0 deletions

View File

@ -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,

View File

@ -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");
}
}
##############################################################################