I can’t seem to create an alert rule that relates storage.storage_perc to storage.storage_perc_warn.
When I try, using the new rule ui, I can only enter a numeric value for comparison.
For example, trying to import from the old style rule from the alerting docs:
storage.storage_perc >= storage_perc_warn simply leaves the second field blank.
Are there docs on the new UI yet?
Thank you,
-Mike Sherman
INFO: output of ./validate.php
Component | Version |
---|---|
LibreNMS | 1.38-178-gef66a22 |
DB Schema | 247 |
PHP | 7.0.28-0ubuntu0.16.04.1 |
MySQL | 10.0.34-MariaDB-0ubuntu0.16.04.1 |
RRDTool | 1.5.5 |
SNMP | NET-SNMP 5.7.3 |
====================================
[OK] Composer Version: 1.6.3
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
Edit:
I also attempted to add it as a template, with the same results. I added the following to ./misc/alert_rules.json
{
"rule": "%storage.storage_perc >= %storage.storage_perc_warn && %macros.device_up = \"1\"",
"name": "Storage percent over limit, check volume",
"default": true
},