We have completely stopped receiving alerts via email.
I can run a manual alert-test using
./scripts/test-alert.php -r 2 -d -h 804
I was able to receive alert until I updated to master from release for the update_channel using the following I found on other post
./lnms config:set update_channel master
cd /opt/librenms && git fetch --tags && git checkout $(git describe --tags $(git rev-list --tags --max-count=1))
./daily.sh
./validate.php
I set the cron for alerts as follows
/opt/librenms/alerts.php -d>> /dev/null 2>&1 >>/opt/librenms/logs/alerts.log
I get a repeating error of the following. But do not know where else to look to see what is causing the issue
count(): Argument #1 ($value) must be of type Countable|array, null given {"exception":"[object] (TypeError(code: 0): count(): Argument #1 ($value) must be of type Countable|array, null given at /opt/librenms/LibreNMS/Alert/RunAlerts.php:303)"}
In RunAlerts.php line 303:
count(): Argument #1 ($value) must be of type Countable|array, null given
SQL[update `cache_locks` set `owner` = ?, `expiration` = ? where `key` = ? and (`owner` = ? or `expiration` <= ?) ["eer7Abr03Wq2f7UB",1688673181,"laravel_cache_alerts","eer7Abr03Wq2f7UB",1688673121] 0.58ms]
./validate.php
Component | Version |
---|---|
LibreNMS | 23.6.0-19-g9c6541f3a (2023-07-05T06:29:32-07:00) |
DB Schema | 2023_04_27_164904_update_slas_opstatus_tinyint (252) |
PHP | 8.2.7 |
Python | 3.8.10 |
Database | MariaDB 10.3.38-MariaDB-0ubuntu0.20.04.1 |
RRDTool | 1.7.2 |
SNMP | 5.8 |
=========================================== |
[OK] Composer Version: 2.5.8
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database Schema is current
[OK] SQL Server meets minimum requirements
[OK] lower_case_table_names is enabled
[OK] MySQL engine is optimal
[OK] Database and column collations are correct
[OK] Database schema correct
[OK] MySQl and PHP time match
[OK] Active pollers found
[OK] Dispatcher Service not detected
[OK] Locks are functional
[OK] Python poller wrapper is polling
[OK] Redis is unavailable
[OK] rrdtool version ok
[OK] Connected to rrdcached