2013-01-08 Miguel de Dios <miguel.dedios@artica.es>
* util/pandora_db.pl: fixed the SQL query for the checking modules status count. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7378 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
8417ad0c22
commit
d4f7e9c254
|
@ -1,3 +1,8 @@
|
|||
2013-01-08 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* util/pandora_db.pl: fixed the SQL query for the checking modules
|
||||
status count.
|
||||
|
||||
2013-01-02 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
|
||||
|
||||
* lib/PandoraFMS/Core.pm: Added macro _email_tag_ to replace with
|
||||
|
|
|
@ -569,7 +569,7 @@ sub pandora_checkdb_consistency {
|
|||
my @agents = get_db_rows ($dbh, 'SELECT id_agente FROM tagente');
|
||||
foreach my $agent (@agents) {
|
||||
my $id_agente = $agent->{'id_agente'};
|
||||
db_do ($dbh, 'UPDATE tagente SET normal_count=(SELECT COUNT(*) FROM tagente_estado WHERE id_agente=' . $id_agente . ' AND estado=0 disabled=0),
|
||||
db_do ($dbh, 'UPDATE tagente SET normal_count=(SELECT COUNT(*) FROM tagente_estado WHERE id_agente=' . $id_agente . ' AND estado=0 AND disabled=0),
|
||||
critical_count=(SELECT COUNT(*) FROM tagente_estado WHERE id_agente=' . $id_agente . ' AND estado=1 AND disabled=0),
|
||||
warning_count=(SELECT COUNT(*) FROM tagente_estado WHERE id_agente=' . $id_agente . ' AND estado=2 AND disabled=0),
|
||||
unknown_count=(SELECT COUNT(*) FROM tagente_estado WHERE id_agente=' . $id_agente . ' AND estado=3 AND disabled=0),
|
||||
|
|
Loading…
Reference in New Issue