systemdunits.conf 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. # you can disable an alarm notification by setting the 'to' line to: silent
  2. ## Service units
  3. template: systemd_service_unit_failed_state
  4. on: systemd.service_unit_state
  5. class: Errors
  6. type: Linux
  7. component: Systemd units
  8. calc: $failed
  9. units: state
  10. every: 10s
  11. warn: $this != nan AND $this == 1
  12. delay: down 5m multiplier 1.5 max 1h
  13. info: systemd service unit in the failed state
  14. to: sysadmin
  15. ## Socket units
  16. template: systemd_socket_unit_failed_state
  17. on: systemd.socket_unit_state
  18. class: Errors
  19. type: Linux
  20. component: Systemd units
  21. calc: $failed
  22. units: state
  23. every: 10s
  24. warn: $this != nan AND $this == 1
  25. delay: down 5m multiplier 1.5 max 1h
  26. info: systemd socket unit in the failed state
  27. to: sysadmin
  28. ## Target units
  29. template: systemd_target_unit_failed_state
  30. on: systemd.target_unit_state
  31. class: Errors
  32. type: Linux
  33. component: Systemd units
  34. calc: $failed
  35. units: state
  36. every: 10s
  37. warn: $this != nan AND $this == 1
  38. delay: down 5m multiplier 1.5 max 1h
  39. info: systemd target unit in the failed state
  40. to: sysadmin
  41. ## Path units
  42. template: systemd_path_unit_failed_state
  43. on: systemd.path_unit_state
  44. class: Errors
  45. type: Linux
  46. component: Systemd units
  47. calc: $failed
  48. units: state
  49. every: 10s
  50. warn: $this != nan AND $this == 1
  51. delay: down 5m multiplier 1.5 max 1h
  52. info: systemd path unit in the failed state
  53. to: sysadmin
  54. ## Device units
  55. template: systemd_device_unit_failed_state
  56. on: systemd.device_unit_state
  57. class: Errors
  58. type: Linux
  59. component: Systemd units
  60. calc: $failed
  61. units: state
  62. every: 10s
  63. warn: $this != nan AND $this == 1
  64. delay: down 5m multiplier 1.5 max 1h
  65. info: systemd device unit in the failed state
  66. to: sysadmin
  67. ## Mount units
  68. template: systemd_mount_unit_failed_state
  69. on: systemd.mount_unit_state
  70. class: Errors
  71. type: Linux
  72. component: Systemd units
  73. calc: $failed
  74. units: state
  75. every: 10s
  76. warn: $this != nan AND $this == 1
  77. delay: down 5m multiplier 1.5 max 1h
  78. info: systemd mount units in the failed state
  79. to: sysadmin
  80. ## Automount units
  81. template: systemd_automount_unit_failed_state
  82. on: systemd.automount_unit_state
  83. class: Errors
  84. type: Linux
  85. component: Systemd units
  86. calc: $failed
  87. units: state
  88. every: 10s
  89. warn: $this != nan AND $this == 1
  90. delay: down 5m multiplier 1.5 max 1h
  91. info: systemd automount unit in the failed state
  92. to: sysadmin
  93. ## Swap units
  94. template: systemd_swap_unit_failed_state
  95. on: systemd.swap_unit_state
  96. class: Errors
  97. type: Linux
  98. component: Systemd units
  99. calc: $failed
  100. units: state
  101. every: 10s
  102. warn: $this != nan AND $this == 1
  103. delay: down 5m multiplier 1.5 max 1h
  104. info: systemd swap units in the failed state
  105. to: sysadmin
  106. ## Scope units
  107. template: systemd_scope_unit_failed_state
  108. on: systemd.scope_unit_state
  109. class: Errors
  110. type: Linux
  111. component: Systemd units
  112. calc: $failed
  113. units: state
  114. every: 10s
  115. warn: $this != nan AND $this == 1
  116. delay: down 5m multiplier 1.5 max 1h
  117. info: systemd scope units in the failed state
  118. to: sysadmin
  119. ## Slice units
  120. template: systemd_slice_unit_failed_state
  121. on: systemd.slice_unit_state
  122. class: Errors
  123. type: Linux
  124. component: Systemd units
  125. calc: $failed
  126. units: state
  127. every: 10s
  128. warn: $this != nan AND $this == 1
  129. delay: down 5m multiplier 1.5 max 1h
  130. info: systemd slice units in the failed state
  131. to: sysadmin