Send single mail more alertes

HI,

look this my validate:

./validate.php

Component Version
LibreNMS 21.11.0-75-gfefeceb0d
DB Schema 2021_11_29_165436_improve_ports_search_index (229)
PHP 7.4.3
Python 3.8.10
MySQL 10.3.32-MariaDB-0ubuntu0.20.04.1
RRDTool 1.7.2
SNMP 5.8
====================================
[OK] Composer Version: 2.1.14
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
librenms@srv-librenms:~$ ./daily.sh
Updating to latest codebase OK
Updating Composer packages OK
Updating SQL-Schema OK
Updating submodules OK
Cleaning up DB OK
Fetching notifications OK
Caching PeeringDB data OK
Caching Mac OUI data OK

My question is howto configurate alert for send just one mail when one service is dow or device and not send after every check?

See one configuration rules alerte

than’ks for help me.

It’s not quite clear what you’re asking but if you’re asking if multiple devices go down and trigger the same alert rule at the same time you want all the alerts sent in one email instead of one email per alert ?

If so, I don’t think that’s possible for devices going down - you will always get a separate alert for each device that goes down even if it happens in the same polling period.

Certain types of rules such as network port rules and service check rules can combine multiple faults of the same type from the same device in the one alert email, with the template able to iterate through and enumerate each separately, however this is not the case with device down, because you have multiple devices.

The rule is one alert email per device.

thank you for these precisions, but I see that I was not very clear, certainly due to my bad English.

what i want to do is to avoid having more than one email when a device falls in error.

Currently, I receive one every 5 minutes or so and for all devices, even if they have already been reported by email, which I do not want.
I’m talking about a failure that lasts in time and that is not solved for various reasons.
I hope to have been more clear this time

If you only want to be alerted once when a failure occurs simply set “Max Alerts” to 1 in the alert rules, then it will only alert once at the start of the alert and not again as long as the alert remains in effect.

If you set this to a higher number you will get more than one alert sent at the interval set by “Interval”. Setting Max alerts to -1 is a special case which means “forever”, so it will keep alerting at the interval until the fault is fixed, maybe this is what you have at the moment ? If so just change Max Alerts to 1, and when this is set to 1, the interval value no longer has any effect.

You can also turn recovery alerts on or off which would send another alert when the fault is fixed.

Also remember if you have an alert which is going to last for a while which you are aware of, (for example some equipment being taken out of service temporarily) you can click on the “Acknowledge” button in Alerts->Notifications after the alert has occurred, an Acknowledged alert will still be listed in the Notifications page but it will not send any further alert emails until the problem is cleared and will also not cause the alerts icon on the menu bar to be red.

Finally, if you have alerts that are due to planned maintenance and you know ahead of time that a device will start alerting due to this maintenance you can use the maintenance window feature.

For an individual device click on the edit button (gear icon) then maintenance mode, then choose a length of time for the maintenance just before you take the equipment out of service.

During this period of time no alerts will be generated for this device. For example you might use maintenance mode if a server is going to have windows updates applied and be rebooted, which might otherwise trigger many different alerts.

After the maintenance period is finished alerting for the device will automatically resume.

If you want to schedule a maintenance window in advance or for multiple devices or device groups you can do this through Alerts->Scheduled maintenance.

This can be one off or periodic. For example I have a periodic maintenance interval set at 3am to 3:30am on a Sunday for wireless access points when they are automatically rebooted, this prevents alerts being generated by these automated reboots, but if they reboot at other times in the week I will get an alert.

hi,

your explain is really clear, i’m configure this max alert to 1 and wait see whith the time if don’t recivied the mail for old equipement or service down.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.