windows.conf 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  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. lookup: sum -10m unaligned absolute match-names of inbound
  57. units: packets
  58. every: 1m
  59. warn: $this >= 5
  60. delay: down 1h multiplier 1.5 max 2h
  61. info: number of inbound discarded packets for the network interface in the last 10 minutes
  62. to: sysadmin
  63. template: windows_outbound_packets_discarded
  64. on: windows.net_discarded
  65. class: Errors
  66. type: Windows
  67. component: Network
  68. os: linux
  69. hosts: *
  70. lookup: sum -10m unaligned absolute match-names of outbound
  71. units: packets
  72. every: 1m
  73. warn: $this >= 5
  74. delay: down 1h multiplier 1.5 max 2h
  75. info: number of outbound discarded packets for the network interface in the last 10 minutes
  76. to: sysadmin
  77. template: windows_inbound_packets_errors
  78. on: windows.net_errors
  79. class: Errors
  80. type: Windows
  81. component: Network
  82. os: linux
  83. hosts: *
  84. lookup: sum -10m unaligned absolute match-names of inbound
  85. units: packets
  86. every: 1m
  87. warn: $this >= 5
  88. delay: down 1h multiplier 1.5 max 2h
  89. info: number of inbound errors for the network interface in the last 10 minutes
  90. to: sysadmin
  91. template: windows_outbound_packets_errors
  92. on: windows.net_errors
  93. class: Errors
  94. type: Windows
  95. component: Network
  96. os: linux
  97. hosts: *
  98. lookup: sum -10m unaligned absolute match-names of outbound
  99. units: packets
  100. every: 1m
  101. warn: $this >= 5
  102. delay: down 1h multiplier 1.5 max 2h
  103. info: number of outbound errors for the network interface in the last 10 minutes
  104. to: sysadmin
  105. ## Disk
  106. template: windows_disk_in_use
  107. on: windows.logical_disk_utilization
  108. class: Utilization
  109. type: Windows
  110. component: Disk
  111. os: linux
  112. hosts: *
  113. calc: ($used) * 100 / ($used + $free)
  114. units: %
  115. every: 10s
  116. warn: $this > (($status >= $WARNING) ? (80) : (90))
  117. crit: $this > (($status == $CRITICAL) ? (90) : (98))
  118. delay: down 15m multiplier 1.5 max 1h
  119. info: disk space utilization
  120. to: sysadmin