Unable to use transport

Hi everybody !

Several weeks ago, i’ve setup Slack alerts. Then It worked.

Today i’ve seen no alerts since few days. I’ll want to test alert, but I’ve got an error “Test to slack failed - general error”.
I’ve tried to remote/add other alerts and type of alerts, same problem. I cannot remove this alert too.

On commande, i’ve got this

root@Librenms:/opt/librenms# /opt/librenms/scripts/test-alert.php -r 4 -d -h XXX
SQL[select * from `devices` where `hostname` = ? limit 1 ["XXX"] 0.29ms]

SQL[SELECT alerts.id, alerts.alerted, alerts.device_id, alerts.rule_id, alerts.state, alerts.note, alerts.info FROM alerts WHERE alerts.device_id = 4 && alerts.rule_id = 4 [] 0.14ms]

No active alert found, please check that you have the correct id.

An with ./validate.php

root@Librenms:/opt/librenms# ./validate.php
====================================
Component | Version
--------- | -------
LibreNMS  | 1.64.1-182-g6cceeb43f
DB Schema | 2020_05_22_020303_alter_metric_column (168)
PHP       | 7.3.14-1~deb10u1
Python    | 3.7.3
MySQL     | 10.3.22-MariaDB-0+deb10u1
RRDTool   | 1.7.1
SNMP      | NET-SNMP 5.7.3
====================================

[OK]    Composer Version: 1.10.7
[OK]    Dependencies up-to-date.
[OK]    Database connection successful
[OK]    Database schema correct
[WARN]  Your local git contains modified files, this could prevent automatic updates.
        [FIX]:
        You can fix this with ./scripts/github-remove
        Modified Files:
         bootstrap/cache/.gitignore
         logs/.gitignore
         rrd/.gitignore
         storage/app/.gitignore
         storage/app/public/.gitignore
         storage/debugbar/.gitignore
         storage/framework/cache/.gitignore
         storage/framework/cache/data/.gitignore
         storage/framework/sessions/.gitignore
         storage/framework/testing/.gitignore
         storage/framework/views/.gitignore
         storage/logs/.gitignore

Is it normal ?

Hi,

For the test-alert.php script, the alert must be fired. I usually have a rule that always match, for example:
device_id = X AND macros.device_down = 0
That rule will be fired in the moment the device X is UP. Set the correct transport for that alert and then test-alert.php again.

Run test-transport.php too