Hi,
My alerts were last sent properly on 11/22 and I haven’t received them since.
====================================
Component | Version |
---|---|
LibreNMS | 1.70.1-6-g9ccb707 |
DB Schema | 2020_10_12_095504_mempools_add_oids (191) |
PHP | 7.4.13 |
Python | 3.5.2 |
MySQL | 10.0.38-MariaDB-0ubuntu0.16.04.1 |
RRDTool | 1.5.5 |
SNMP | NET-SNMP 5.7.3 |
====================================
[OK] Composer Version: 2.0.8
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
[INFO] Detected Python Wrapper
[OK] Connection to memcached is ok
After checking, I found that it was a problem inside alerts.php.
When I comment out the following paragraph ($alerts_lock->get()), the alerts will be sent normally.
$alerts_lock = Cache::lock('alerts', \LibreNMS\Config::get('service_alerting_frequency'));
//if ($alerts_lock->get()) {
$alerts = new RunAlerts();
if (! defined('TEST') && \LibreNMS\Config::get('alert.disable') != 'true') {
echo 'Start: ' . date('r') . "\r\n";
echo 'ClearStaleAlerts():' . PHP_EOL;
$alerts->clearStaleAlerts();
echo "RunFollowUp():\r\n";
$alerts->runFollowUp();
echo "RunAlerts():\r\n";
$alerts->runAlerts();
echo "RunAcks():\r\n";
$alerts->runAcks();
echo 'End : ' . date('r') . "\r\n";
}
$alerts_lock->release();
//}