Nut alerting

hi can anyone please help me with alerting in librenms? I want to send an email alert if the battery charge drops below 50%. I use ups nut. Thanks

You should show what you’ve tried first. Have a search on here or look at the rules collection in the webui. Once you start to put together a rule it should be easier and then you’ll know for the future

Well, I do not think it is because the data is not stored in the database.

I tried to make a PR.

1 Like

PR done and work.

My test

%sensors.sensor_type = “ups-nut” &&x%sensors.sensor_descr = “Battery Charge” &&x%sensors.sensor_current <= 30 &&

Alert for device 10.133.139.17 - Ups warning
xen1
Severity: warning
Timestamp: 2017-12-01 10:31:34
Unique-ID: 10988
Rule: Ups warning
Faults:
#1: sensor_id => 1830; sensor_oid =>
.1.3.6.1.4.1.8072.1.3.2.4.1.2.7.117.112.115.45.110.117.116.1; sensor_descr
=> Battery Charge;
Alert sent to: NOC
1 Like