systemdunits.conf 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  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. module: !* *
  9. calc: $failed
  10. units: state
  11. every: 10s
  12. warn: $this != nan AND $this == 1
  13. delay: down 5m multiplier 1.5 max 1h
  14. summary: systemd unit ${label:unit_name} state
  15. info: systemd service unit in the failed state
  16. to: sysadmin
  17. ## Socket units
  18. template: systemd_socket_unit_failed_state
  19. on: systemd.socket_unit_state
  20. class: Errors
  21. type: Linux
  22. component: Systemd units
  23. module: !* *
  24. calc: $failed
  25. units: state
  26. every: 10s
  27. warn: $this != nan AND $this == 1
  28. delay: down 5m multiplier 1.5 max 1h
  29. summary: systemd unit ${label:unit_name} state
  30. info: systemd socket unit in the failed state
  31. to: sysadmin
  32. ## Target units
  33. template: systemd_target_unit_failed_state
  34. on: systemd.target_unit_state
  35. class: Errors
  36. type: Linux
  37. component: Systemd units
  38. module: !* *
  39. calc: $failed
  40. units: state
  41. every: 10s
  42. warn: $this != nan AND $this == 1
  43. delay: down 5m multiplier 1.5 max 1h
  44. summary: systemd unit ${label:unit_name} state
  45. info: systemd target unit in the failed state
  46. to: sysadmin
  47. ## Path units
  48. template: systemd_path_unit_failed_state
  49. on: systemd.path_unit_state
  50. class: Errors
  51. type: Linux
  52. component: Systemd units
  53. module: !* *
  54. calc: $failed
  55. units: state
  56. every: 10s
  57. warn: $this != nan AND $this == 1
  58. delay: down 5m multiplier 1.5 max 1h
  59. summary: systemd unit ${label:unit_name} state
  60. info: systemd path unit in the failed state
  61. to: sysadmin
  62. ## Device units
  63. template: systemd_device_unit_failed_state
  64. on: systemd.device_unit_state
  65. class: Errors
  66. type: Linux
  67. component: Systemd units
  68. module: !* *
  69. calc: $failed
  70. units: state
  71. every: 10s
  72. warn: $this != nan AND $this == 1
  73. delay: down 5m multiplier 1.5 max 1h
  74. summary: systemd unit ${label:unit_name} state
  75. info: systemd device unit in the failed state
  76. to: sysadmin
  77. ## Mount units
  78. template: systemd_mount_unit_failed_state
  79. on: systemd.mount_unit_state
  80. class: Errors
  81. type: Linux
  82. component: Systemd units
  83. module: !* *
  84. calc: $failed
  85. units: state
  86. every: 10s
  87. warn: $this != nan AND $this == 1
  88. delay: down 5m multiplier 1.5 max 1h
  89. summary: systemd unit ${label:unit_name} state
  90. info: systemd mount units in the failed state
  91. to: sysadmin
  92. ## Automount units
  93. template: systemd_automount_unit_failed_state
  94. on: systemd.automount_unit_state
  95. class: Errors
  96. type: Linux
  97. component: Systemd units
  98. module: !* *
  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. summary: systemd unit ${label:unit_name} state
  105. info: systemd automount unit in the failed state
  106. to: sysadmin
  107. ## Swap units
  108. template: systemd_swap_unit_failed_state
  109. on: systemd.swap_unit_state
  110. class: Errors
  111. type: Linux
  112. component: Systemd units
  113. module: !* *
  114. calc: $failed
  115. units: state
  116. every: 10s
  117. warn: $this != nan AND $this == 1
  118. delay: down 5m multiplier 1.5 max 1h
  119. summary: systemd unit ${label:unit_name} state
  120. info: systemd swap units in the failed state
  121. to: sysadmin
  122. ## Scope units
  123. template: systemd_scope_unit_failed_state
  124. on: systemd.scope_unit_state
  125. class: Errors
  126. type: Linux
  127. component: Systemd units
  128. module: !* *
  129. calc: $failed
  130. units: state
  131. every: 10s
  132. warn: $this != nan AND $this == 1
  133. delay: down 5m multiplier 1.5 max 1h
  134. summary: systemd unit ${label:unit_name} state
  135. info: systemd scope units in the failed state
  136. to: sysadmin
  137. ## Slice units
  138. template: systemd_slice_unit_failed_state
  139. on: systemd.slice_unit_state
  140. class: Errors
  141. type: Linux
  142. component: Systemd units
  143. module: !* *
  144. calc: $failed
  145. units: state
  146. every: 10s
  147. warn: $this != nan AND $this == 1
  148. delay: down 5m multiplier 1.5 max 1h
  149. summary: systemd unit ${label:unit_name} state
  150. info: systemd slice units in the failed state
  151. to: sysadmin