windows.conf 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. ## CPU
  2. template: windows_10min_cpu_usage
  3. on: windows.cpu_utilization_total
  4. class: Utilization
  5. type: Windows
  6. component: CPU
  7. os: linux
  8. hosts: *
  9. lookup: average -10m unaligned match-names of dpc,user,privileged,interrupt
  10. units: %
  11. every: 1m
  12. warn: $this > (($status >= $WARNING) ? (75) : (85))
  13. crit: $this > (($status == $CRITICAL) ? (85) : (95))
  14. delay: down 15m multiplier 1.5 max 1h
  15. info: average CPU utilization over the last 10 minutes
  16. to: sysadmin
  17. ## Memory
  18. template: windows_ram_in_use
  19. on: windows.memory_utilization
  20. class: Utilization
  21. type: Windows
  22. component: Memory
  23. os: linux
  24. hosts: *
  25. calc: ($used) * 100 / ($used + $available)
  26. units: %
  27. every: 10s
  28. warn: $this > (($status >= $WARNING) ? (80) : (90))
  29. crit: $this > (($status == $CRITICAL) ? (90) : (98))
  30. delay: down 15m multiplier 1.5 max 1h
  31. info: memory utilization
  32. to: sysadmin
  33. template: windows_swap_in_use
  34. on: windows.memory_swap_utilization
  35. class: Utilization
  36. type: Windows
  37. component: Memory
  38. os: linux
  39. hosts: *
  40. calc: ($used) * 100 / ($used + $available)
  41. units: %
  42. every: 10s
  43. warn: $this > (($status >= $WARNING) ? (80) : (90))
  44. crit: $this > (($status == $CRITICAL) ? (90) : (98))
  45. delay: down 15m multiplier 1.5 max 1h
  46. info: swap memory utilization
  47. to: sysadmin
  48. ## Network
  49. template: windows_inbound_packets_discarded
  50. on: windows.net_discarded
  51. class: Errors
  52. type: Windows
  53. component: Network
  54. os: linux
  55. hosts: *
  56. families: *
  57. lookup: sum -10m unaligned absolute match-names of inbound
  58. units: packets
  59. every: 1m
  60. warn: $this >= 5
  61. delay: down 1h multiplier 1.5 max 2h
  62. info: number of inbound discarded packets for the network interface in the last 10 minutes
  63. to: sysadmin
  64. template: windows_outbound_packets_discarded
  65. on: windows.net_discarded
  66. class: Errors
  67. type: Windows
  68. component: Network
  69. os: linux
  70. hosts: *
  71. families: *
  72. lookup: sum -10m unaligned absolute match-names of outbound
  73. units: packets
  74. every: 1m
  75. warn: $this >= 5
  76. delay: down 1h multiplier 1.5 max 2h
  77. info: number of outbound discarded packets for the network interface in the last 10 minutes
  78. to: sysadmin
  79. template: windows_inbound_packets_errors
  80. on: windows.net_errors
  81. class: Errors
  82. type: Windows
  83. component: Network
  84. os: linux
  85. hosts: *
  86. families: *
  87. lookup: sum -10m unaligned absolute match-names of inbound
  88. units: packets
  89. every: 1m
  90. warn: $this >= 5
  91. delay: down 1h multiplier 1.5 max 2h
  92. info: number of inbound errors for the network interface in the last 10 minutes
  93. to: sysadmin
  94. template: windows_outbound_packets_errors
  95. on: windows.net_errors
  96. class: Errors
  97. type: Windows
  98. component: Network
  99. os: linux
  100. hosts: *
  101. families: *
  102. lookup: sum -10m unaligned absolute match-names of outbound
  103. units: packets
  104. every: 1m
  105. warn: $this >= 5
  106. delay: down 1h multiplier 1.5 max 2h
  107. info: number of outbound errors for the network interface in the last 10 minutes
  108. to: sysadmin
  109. ## Disk
  110. template: windows_disk_in_use
  111. on: windows.logical_disk_utilization
  112. class: Utilization
  113. type: Windows
  114. component: Disk
  115. os: linux
  116. hosts: *
  117. calc: ($used) * 100 / ($used + $free)
  118. units: %
  119. every: 10s
  120. warn: $this > (($status >= $WARNING) ? (80) : (90))
  121. crit: $this > (($status == $CRITICAL) ? (90) : (98))
  122. delay: down 15m multiplier 1.5 max 1h
  123. info: disk space utilization
  124. to: sysadmin