nut.conf 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # you can disable an alarm notification by setting the 'to' line to: silent
  2. template: nut_10min_ups_load
  3. on: nut.load
  4. class: Utilization
  5. type: Power Supply
  6. component: UPS
  7. os: *
  8. hosts: *
  9. lookup: average -10m unaligned of load
  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. template: nut_ups_charge
  18. on: nut.charge
  19. class: Errors
  20. type: Power Supply
  21. component: UPS
  22. os: *
  23. hosts: *
  24. lookup: average -60s unaligned of battery_charge
  25. units: %
  26. every: 60s
  27. warn: $this < 75
  28. crit: $this < 40
  29. delay: down 10m multiplier 1.5 max 1h
  30. info: average UPS charge over the last minute
  31. to: sitemgr
  32. template: nut_last_collected_secs
  33. on: nut.load
  34. class: Latency
  35. type: Power Supply
  36. component: UPS device
  37. calc: $now - $last_collected_t
  38. every: 10s
  39. units: seconds ago
  40. warn: $this > (($status >= $WARNING) ? ($update_every) : ( 5 * $update_every))
  41. crit: $this > (($status == $CRITICAL) ? ($update_every) : (60 * $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