Email Alert Doesn't Work

Tags: #<Tag:0x00007fb43c8a3e58>

Hi, thanks for helping me.

I am struggling on getting the alert email work.
I have tested the alert transport, I received the testing email, it worked.

Below is output of validate.php

====================================

Component Version
LibreNMS 1.54-25-g9dfae2f
DB Schema 2019_07_09_150217_update_users_widgets_settings (140)
PHP 7.2.19
MySQL 5.5.60-MariaDB
RRDTool 1.4.8
SNMP NET-SNMP 5.7.2

====================================

[OK] Composer Version: 1.9.0
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
[FAIL] Some folders have incorrect file permissions, this may cause issues.
[FIX]:
sudo chown -R librenms:librenms /opt/librenms
sudo setfacl -d -m g::rwx /opt/librenms/rrd /opt/librenms/logs /opt/librenms/bootstrap/cache/ /opt/librenms/storage/
sudo chmod -R ug=rwX /opt/librenms/rrd /opt/librenms/logs /opt/librenms/bootstrap/cache/ /opt/librenms/storage/

I got above permission fail sometimes, but it happens again, after I changed it.

Below is output if daily.sh output

====================================
Re-running /opt/librenms/daily.sh as librenms user
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

and your alert rule = ?

Like this one, thanks.

if map to is empty its all devices

but you whont recieve an mail?

you can run on the device the allert?

/device/device=<device_id>/tab=capture/

here the rule matches whit my Devices up/down
and state it has an transport named mail

Thanks SniperVegeta, here is the capture debug

Is your alert always “red” ?

it state it matches, so you should have an mail somewhere when it matches…

or is on the device somewhere an IfOpperStatus = down?
like an other port?

Is your alert always “red” ? I think so …

Please see below

Interface Status as below

So whenn 1 or an other is down , the status keeps unchanged

maybe to refactor your alert rule for only that tunnel down / up
now u got global, = someting is always down, and the change is big that u ack the 1st allert
so next allerts = no mail

So I need to be more specific to config alert rule to just monitor on the alive interface instead of the whole lot, am I right?

Thanks.

yes
you got global alerts now
if 1 port is down on the device - go alert

Thank you so much SniperVegeta

I changed the alert to something like below, see if it works
image