Is it possible to add time period alert like nagios.
Eg: You define your timeperiod and after you can choice for every alert the timeperiod of send alert.
Is it possible to add time period alert like nagios.
Eg: You define your timeperiod and after you can choice for every alert the timeperiod of send alert.
You can do it with adding macros in /librenms/config.php
For example
$config[‘alert’][‘macros’][‘rule’][‘From_15_to_17’] = ‘HOUR(NOW()) BETWEEN 15 AND 16’;
$config[‘alert’][‘macros’][‘rule’][‘From_8_to_17’] = ‘HOUR(NOW()) BETWEEN 8 AND 16’;
$config[‘alert’][‘macros’][‘rule’][‘Mon_to_Fri’] = ‘DAYOFWEEK(NOW()) BETWEEN 2 AND 6’;
then you just add that macro in your alert rule