apcupsd.conf 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. crit: $this > (($status == $CRITICAL) ? (85) : (95))
  14. delay: down 10m multiplier 1.5 max 1h
  15. info: average UPS 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 < (($status == $CRITICAL) ? (60) : (50))
  31. delay: down 10m multiplier 1.5 max 1h
  32. info: average UPS charge over the last minute
  33. to: sitemgr
  34. template: apcupsd_last_collected_secs
  35. on: apcupsd.load
  36. class: Latency
  37. type: Power Supply
  38. component: UPS device
  39. calc: $now - $last_collected_t
  40. every: 10s
  41. units: seconds ago
  42. warn: $this > (($status >= $WARNING) ? ($update_every) : ( 5 * $update_every))
  43. crit: $this > (($status == $CRITICAL) ? ($update_every) : (60 * $update_every))
  44. delay: down 5m multiplier 1.5 max 1h
  45. info: number of seconds since the last successful data collection
  46. to: sitemgr