Creating a rule from a billing port

Trying to create a macro /rule to email a 1 time alert for a percentage over a quota
I have created a billing port quota for the device which is working.
I created to macros in config.php

  $config['alert']['macros']['rule']['bill_over_quota_75'] = '(((%bills.total_data/%bills.bill_quota)*100) >= 75) && %bills.bill_type = "quota"';
  $config['alert']['macros']['rule']['bill_over_quota_90'] = '(((%bills.total_data/%bills.bill_quota)*100) >= 90) && %bills.bill_type = "quota"';

I have created a Alert Rule to match the devices in a specific Group then email to me only right now.

The alert will trigger when I change the quota to make it look like the port is using 75% of the quota.
But doesn’t show in active alerts only in alert hisotr under the device.
If I expand the messaging under device it just has this message.
Rule created, no faults found

I don’t get an email and not sure where to check if the macro/rule/alert is actually working correctly.

Any help would be appreciated.

Output from Validate
--------- | -------
LibreNMS | 22.6.0-4-gdc3ddbaff
DB Schema | 2021_02_09_122930_migrate_to_utf8mb4 (242)
PHP | 7.4.3
Python | 3.8.10
MySQL | 10.3.37-MariaDB-0ubuntu0.20.04.1
RRDTool | 1.7.2
SNMP | 5.8

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.