I trying to create new alert rule from collection (ex:device rebooted). When I click save rule, warning pop-up show up with text Failed to Process Rules
Blockquote [email protected]:/opt/librenms# ./validate.php
====================================
Component | Version
--------- | -------
LibreNMS | 1.50-51-g39ff4c7aa
DB Schema | 2019_02_10_220000_add_dates_to_fdb (132)
PHP | 7.2.15-0ubuntu0.18.04.2
MySQL | 10.1.38-MariaDB-0ubuntu0.18.04.1
RRDTool | 1.7.0
SNMP | NET-SNMP 5.7.3
====================================
[OK] Composer Version: 1.8.5
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
[WARN] Some devices have not been polled in the last 5 minutes. You may have performance issues.
[FIX]:
Check your poll log and see: Performance - LibreNMS Docs
Devices:
xxx.xxx.xxx.xxx
xxx.xxx.xxx.xxx
[FAIL] Some devices have not completed their polling run in 5 minutes, this will create gaps in data.
[FIX]:
Check your poll log and see: Performance - LibreNMS Docs
Devices:
xxx.xxx.xxx.xxx
xxx.xxx.xxx.xxx
[FAIL] Discovery has not completed in the last 24 hours.
[FIX]:
Check the cron job to make sure it is running and using discovery-wrapper.py
I was experiencing a similar issue “Failed to process template” error when making any changes to alerts or templates via the WebUI. The folks over in Discord helped me fix it like this:
sudo su librenms
cd /opt/librenms
./scripts/composer_wrapper.php install && ./scripts/composer_wrapper.php install --no-dev