apcupsd.conf 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # you can disable an alarm notification by setting the 'to' line to: silent
  2. template: apcupsd_10min_ups_load
  3. on: apcupsd.load
  4. class: Utilization
  5. type: Power Supply
  6. component: UPS
  7. os: *
  8. hosts: *
  9. lookup: average -10m unaligned of percentage
  10. units: %
  11. every: 1m
  12. warn: $this > (($status >= $WARNING) ? (70) : (80))
  13. delay: down 10m multiplier 1.5 max 1h
  14. info: average UPS load over the last 10 minutes
  15. to: sitemgr
  16. # Discussion in https://github.com/netdata/netdata/pull/3928:
  17. # Fire the alarm as soon as it's going on battery (99% charge) and clear only when full.
  18. template: apcupsd_ups_charge
  19. on: apcupsd.charge
  20. class: Errors
  21. type: Power Supply
  22. component: UPS
  23. os: *
  24. hosts: *
  25. lookup: average -60s unaligned of charge
  26. units: %
  27. every: 60s
  28. warn: $this < 100
  29. crit: $this < 40
  30. delay: down 10m multiplier 1.5 max 1h
  31. info: average UPS charge over the last minute
  32. to: sitemgr
  33. template: apcupsd_last_collected_secs
  34. on: apcupsd.load
  35. class: Latency
  36. type: Power Supply
  37. component: UPS device
  38. calc: $now - $last_collected_t
  39. every: 10s
  40. units: seconds ago
  41. warn: $this > (($status >= $WARNING) ? ($update_every) : ( 5 * $update_every))
  42. delay: down 5m multiplier 1.5 max 1h
  43. info: number of seconds since the last successful data collection
  44. to: sitemgr