systemdunits.conf 3.7 KB

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