apcupsd.conf 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. summary: APC UPS load
  15. info: APC UPS average load over the last 10 minutes
  16. to: sitemgr
  17. # Discussion in https://github.com/netdata/netdata/pull/3928:
  18. # Fire the alarm as soon as it's going on battery (99% charge) and clear only when full.
  19. template: apcupsd_ups_charge
  20. on: apcupsd.charge
  21. class: Errors
  22. type: Power Supply
  23. component: UPS
  24. os: *
  25. hosts: *
  26. lookup: average -60s unaligned of charge
  27. units: %
  28. every: 60s
  29. warn: $this < 100
  30. crit: $this < 40
  31. delay: down 10m multiplier 1.5 max 1h
  32. summary: APC UPS battery charge
  33. info: APC UPS average battery charge over the last minute
  34. to: sitemgr
  35. template: apcupsd_last_collected_secs
  36. on: apcupsd.load
  37. class: Latency
  38. type: Power Supply
  39. component: UPS device
  40. calc: $now - $last_collected_t
  41. every: 10s
  42. units: seconds ago
  43. warn: $this > (($status >= $WARNING) ? ($update_every) : ( 5 * $update_every))
  44. delay: down 5m multiplier 1.5 max 1h
  45. summary: APC UPS last collection
  46. info: APC UPS number of seconds since the last successful data collection
  47. to: sitemgr