hi, I’m still new to librenms, I had a task to find a way to get an alert when an interface has actually reached 5Gbps. This will be our weekly report at the meeting
Put these in your config.php file:
$config['alert']['macros']['rule']['port_out_perc'] = "((%ports.ifOutOctets_rate)*8/1000/1000/1000)";
$config['alert']['macros']['rule']['port_in_perc'] = "((%ports.ifInOctets_rate)*8/1000/1000/1000)";
If you change the name from port_out_perc then you need to still use perc at the end otherwise you can’t enter a value to check against.
Then in your rule just do macros.port_out_perc
greater than or equal to 5 and that should alert when traffic out (change to port_in_perc for in) hits 5Gbps.
2 Likes