template_os_linux.yml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. ---
  2. g_template_os_linux:
  3. name: Template OS Linux
  4. zitems:
  5. - key: kernel.uname.sysname
  6. applications:
  7. - Kernel
  8. value_type: string
  9. - key: kernel.all.cpu.wait.total
  10. applications:
  11. - Kernel
  12. value_type: int
  13. - key: kernel.all.cpu.irq.hard
  14. applications:
  15. - Kernel
  16. value_type: int
  17. - key: kernel.all.cpu.idle
  18. applications:
  19. - Kernel
  20. value_type: int
  21. - key: kernel.uname.distro
  22. applications:
  23. - Kernel
  24. value_type: string
  25. - key: kernel.uname.nodename
  26. applications:
  27. - Kernel
  28. value_type: string
  29. - key: kernel.all.cpu.irq.soft
  30. applications:
  31. - Kernel
  32. value_type: int
  33. - key: kernel.all.load.15_minute
  34. applications:
  35. - Kernel
  36. value_type: float
  37. - key: kernel.all.cpu.sys
  38. applications:
  39. - Kernel
  40. value_type: int
  41. - key: kernel.all.load.5_minute
  42. applications:
  43. - Kernel
  44. value_type: float
  45. - key: mem.freemem
  46. applications:
  47. - Memory
  48. value_type: int
  49. - key: kernel.all.cpu.nice
  50. applications:
  51. - Kernel
  52. value_type: int
  53. - key: mem.util.bufmem
  54. applications:
  55. - Memory
  56. value_type: int
  57. - key: swap.used
  58. applications:
  59. - Memory
  60. value_type: int
  61. - key: kernel.all.load.1_minute
  62. applications:
  63. - Kernel
  64. value_type: float
  65. - key: kernel.uname.version
  66. applications:
  67. - Kernel
  68. value_type: string
  69. - key: swap.length
  70. applications:
  71. - Memory
  72. value_type: int
  73. - key: mem.physmem
  74. applications:
  75. - Memory
  76. value_type: int
  77. - key: kernel.all.uptime
  78. applications:
  79. - Kernel
  80. value_type: int
  81. - key: swap.free
  82. applications:
  83. - Memory
  84. value_type: int
  85. - key: mem.util.used
  86. applications:
  87. - Memory
  88. value_type: int
  89. - key: kernel.all.cpu.user
  90. applications:
  91. - Kernel
  92. value_type: int
  93. - key: kernel.uname.machine
  94. applications:
  95. - Kernel
  96. value_type: string
  97. - key: hinv.ncpu
  98. applications:
  99. - Kernel
  100. value_type: int
  101. - key: mem.util.cached
  102. applications:
  103. - Memory
  104. value_type: int
  105. - key: kernel.all.cpu.steal
  106. applications:
  107. - Kernel
  108. value_type: int
  109. - key: kernel.all.pswitch
  110. applications:
  111. - Kernel
  112. value_type: int
  113. - key: kernel.uname.release
  114. applications:
  115. - Kernel
  116. value_type: string
  117. - key: proc.nprocs
  118. applications:
  119. - Kernel
  120. value_type: int
  121. - key: filesys.full.xvda2
  122. applications:
  123. - Disk
  124. value_type: float
  125. - key: filesys.full.xvda3
  126. applications:
  127. - Disk
  128. value_type: float
  129. ztriggers:
  130. - description: 'Filesystem: / has less than 10% free on {HOST.NAME}'
  131. expression: '{Template OS Linux:filesys.full.xvda2.last()}>90'
  132. priority: warn
  133. - description: 'Filesystem: / has less than 5% free on {HOST.NAME}'
  134. expression: '{Template OS Linux:filesys.full.xvda2.last()}>95'
  135. priority: high
  136. - description: 'Filesystem: /var has less than 10% free on {HOST.NAME}'
  137. expression: '{Template OS Linux:filesys.full.xvda3.last()}>90'
  138. priority: warn
  139. - description: 'Filesystem: /var has less than 5% free on {HOST.NAME}'
  140. expression: '{Template OS Linux:filesys.full.xvda3.last()}>95'
  141. priority: high