nut.conf 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. summary: UPS load
  16. info: UPS average load over the last 10 minutes
  17. to: sitemgr
  18. template: nut_ups_charge
  19. on: nut.charge
  20. class: Errors
  21. type: Power Supply
  22. component: UPS
  23. os: *
  24. hosts: *
  25. lookup: average -60s unaligned of battery_charge
  26. units: %
  27. every: 60s
  28. warn: $this < 75
  29. crit: $this < 40
  30. delay: down 10m multiplier 1.5 max 1h
  31. summary: UPS battery charge
  32. info: UPS average battery charge over the last minute
  33. to: sitemgr
  34. template: nut_last_collected_secs
  35. on: nut.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. summary: NUT last collected
  46. info: Number of seconds since the last successful data collection
  47. to: sitemgr