I wanted to receive only alerts for down devices that are Monitored with the monitor plugin, to do that, i modified a bit the workaround (thanks a lot for this piece of code by the way, you can find it here -> http://cactiusers.org/forums/viewtopic.php?p=327#327).
You have to edit check-thold.php, i added the (already patched) workaround at the end of the file, just before the ?>, and then i modified the database query like that:
Old code:
Code: Select all
$hoststatusarray=db_fetch_assoc("SELECT status, hostname, description, id, status_event_count FROM host") or die (mysql_error() );
Code: Select all
$hoststatusarray=db_fetch_assoc("SELECT status, hostname, description, id, status_event_count FROM host WHERE disabled = '' AND monitor = 'on'") or die (mysql_error() );
I think i'm going to do a Group plugin (for example: a group for servers, routers, switchs, etc...) and seperate the mail addresses for each groups, does anyone know about an existing one? and/or will it be implemented in the a new release of Thold?
Thanks to Thold, Monitor and Cacti's Community