How to repeat alert/email for a down device

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
maxrelaxn
Posts: 4
Joined: Sun Jul 07, 2024 11:34 pm

How to repeat alert/email for a down device

Post by maxrelaxn »

Hello,
For a device that is down, I'm able to send an email/alert just fine. But the email/alert happens only one time (unless the device recovers, that is). Is there a way to continue to receive the email, say, every 5 minutes until either 1) the device recovers or 2) I suppress notifications?

Cacti version - 1.2.27
Threshold Plugin version - 1.5.2
Monitor Plugin version - 2.7
Screenshot 2024-07-07 at 9.51.04 PM.png
Screenshot 2024-07-07 at 9.51.04 PM.png (269.71 KiB) Viewed 2016 times
Screenshot 2024-07-07 at 9.56.36 PM.png
Screenshot 2024-07-07 at 9.56.36 PM.png (149.27 KiB) Viewed 2016 times
Screenshot 2024-07-07 at 9.59.34 PM.png
Screenshot 2024-07-07 at 9.59.34 PM.png (196.53 KiB) Viewed 2016 times
User avatar
macan
Cacti Guru User
Posts: 1137
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: How to repeat alert/email for a down device

Post by macan »

Thold re-alert is for thold not for up/down notification. I think that this is not possible with actual thold or monitor plugin
Let the Cacti grow!
maxrelaxn
Posts: 4
Joined: Sun Jul 07, 2024 11:34 pm

Re: How to repeat alert/email for a down device

Post by maxrelaxn »

Thanks Macan for the reply back.
I even tried to run a script that will output a 10 if the target is pingable and output a 1 if the target is unreachable. I then set up a Threshold that will send out notifications if the output drops below 5. When the device is unreachable, the graph does get updated with a "1." But the Threshold is not getting triggered. I did confirm that Thresholds in general work for other graphs when the device is reachable. I presume it's not getting triggered because the device is unreachable in my use-case. Oh well, I guess no repeat alerting for me :)
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: How to repeat alert/email for a down device

Post by TheWitness »

Easy enough to add it as a feature request. You have to log it in GitHub. I suggest Thold.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest