[SOLVED] Alerts (mails) when hosts are down
Moderators: Developers, Moderators
[SOLVED] Alerts (mails) when hosts are down
Hi everybody !
I want to know if someone find a tip to have alerts (mails with Thold if possible) when hosts are down.
I'm using cactid as poller and I'm in FreeBSD and running cacti 0.8.6h. I read that it is only possible if we use cmd.php, but I hope someone can help me...
Thanks
I want to know if someone find a tip to have alerts (mails with Thold if possible) when hosts are down.
I'm using cactid as poller and I'm in FreeBSD and running cacti 0.8.6h. I read that it is only possible if we use cmd.php, but I hope someone can help me...
Thanks
Last edited by Tekk on Wed Aug 23, 2006 10:41 am, edited 1 time in total.
Re: Alerts (mails) when hosts are down
But it is realy work only if you use cmd.php.Tekk wrote:Hi everybody !
I want to know if someone find a tip to have alerts (mails with Thold if possible) when hosts are down.
I'm using cactid as poller and I'm in FreeBSD and running cacti 0.8.6h. I read that it is only possible if we use cmd.php, but I hope someone can help me...
Thanks
It's autor Jimmy says so:
http://cactiusers.org/forums/viewtopic.php?p=1694#1694
Re: Alerts (mails) when hosts are down
I know that benzopila . My request was about using cactid as poller. I just want to have a mail when my hosts are down.benzopila wrote:But it is realy work only if you use cmd.php.
It's autor Jimmy says so:
http://cactiusers.org/forums/viewtopic.php?p=1694#1694
Thanks
The host down information is being stripped out and moved to a different plugin, as its not really a "threshold" problem. The problem is that I would have to patch cactid itself, and then you would have to recompile it inorder to get it to work with thold, which is not gonna happen.
Instead, moving it to a different plugin (monitor) which actually monitors down hosts, then we don't have to rely on the current hooks.
Instead, moving it to a different plugin (monitor) which actually monitors down hosts, then we don't have to rely on the current hooks.
Ok I understand cigamit. Thanks.cigamit wrote:The host down information is being stripped out and moved to a different plugin, as its not really a "threshold" problem. The problem is that I would have to patch cactid itself, and then you would have to recompile it inorder to get it to work with thold, which is not gonna happen.
Instead, moving it to a different plugin (monitor) which actually monitors down hosts, then we don't have to rely on the current hooks.
However, I tried to use monitor version 0.7 and it didn't send me a mail when my hosts are down. I only have the audible alert.
Is it normal ?
but my monitor plugin do not send alerts by email. (Am I doing something wrong?)cigamit wrote:The host down information is being stripped out and moved to a different plugin, as its not really a "threshold" problem. The problem is that I would have to patch cactid itself, and then you would have to recompile it inorder to get it to work with thold, which is not gonna happen.
Instead, moving it to a different plugin (monitor) which actually monitors down hosts, then we don't have to rely on the current hooks.
Or do you mean that this will appear in other folowing versions?
Thanks.
Well, i've got a small workaround, it actually works on my production server:
http://forums.cacti.net/viewtopic.php?t=15631
http://forums.cacti.net/viewtopic.php?t=15631
[[color=darkblue]Debian 3.1 | Cacti 0.8.6h | Cactid 0.8.6g | Mysql 4.0.24 | PHP 4.3 with eAccelerator v0.9.4 | Apache 1.3 | Plugin Arch...[/color]]
it's interesting, but not useful.Decombej wrote:[
I wanted to receive only alerts for down devices that are Monitored with the monitor plugin
If I'm monitoring thresholds(by Thold) I'm monitoring host UP/DOWN(by monitor). No Thold whithout Monitor.
I don't understand why do you need to monitor tresholds whithout monitoring host UP/DOWN?
But email sending by monitor is necessity
I just wanted to receive alerts about only some devices, not all of them (because i have about 800 devices, but only a 100 of them interested me).
you can still edit the database query to receive an alert for every host like that:
BTW, i realized that if you don't have any Threshold to check, it won't send alerts anymore, so set at least one.
you can still edit the database query to receive an alert for every host like that:
Code: Select all
$hoststatusarray=db_fetch_assoc("SELECT status, hostname, description, id, status_event_count FROM host") or die (mysql_error() );
[[color=darkblue]Debian 3.1 | Cacti 0.8.6h | Cactid 0.8.6g | Mysql 4.0.24 | PHP 4.3 with eAccelerator v0.9.4 | Apache 1.3 | Plugin Arch...[/color]]
Who is online
Users browsing this forum: No registered users and 1 guest