Browse Source

health: fix windows alarms for vnodes (#15376)

Ilya Mashchenko 1 year ago
parent
commit
4ba6d641a8
1 changed files with 12 additions and 12 deletions
  1. 12 12
      health/health.d/windows.conf

+ 12 - 12
health/health.d/windows.conf

@@ -6,7 +6,7 @@
     class: Utilization
      type: Windows
 component: CPU
-       os: linux
+       os: *
     hosts: *
    lookup: average -10m unaligned match-names of dpc,user,privileged,interrupt
     units: %
@@ -25,7 +25,7 @@ component: CPU
     class: Utilization
      type: Windows
 component: Memory
-       os: linux
+       os: *
     hosts: *
      calc: ($used) * 100 / ($used + $available)
     units: %
@@ -40,11 +40,11 @@ component: Memory
 ## Network
 
  template: windows_inbound_packets_discarded
-       on: windows.net_discarded
+       on: windows.net_nic_discarded
     class: Errors
      type: Windows
 component: Network
-       os: linux
+       os: *
     hosts: *
    lookup: sum -10m unaligned absolute match-names of inbound
     units: packets
@@ -55,11 +55,11 @@ component: Network
        to: sysadmin
 
  template: windows_outbound_packets_discarded
-       on: windows.net_discarded
+       on: windows.net_nic_discarded
     class: Errors
      type: Windows
 component: Network
-       os: linux
+       os: *
     hosts: *
    lookup: sum -10m unaligned absolute match-names of outbound
     units: packets
@@ -70,11 +70,11 @@ component: Network
        to: sysadmin
 
  template: windows_inbound_packets_errors
-       on: windows.net_errors
+       on: windows.net_nic_errors
     class: Errors
      type: Windows
 component: Network
-       os: linux
+       os: *
     hosts: *
    lookup: sum -10m unaligned absolute match-names of inbound
     units: packets
@@ -85,11 +85,11 @@ component: Network
        to: sysadmin
 
  template: windows_outbound_packets_errors
-       on: windows.net_errors
+       on: windows.net_nic_errors
     class: Errors
      type: Windows
 component: Network
-       os: linux
+       os: *
     hosts: *
    lookup: sum -10m unaligned absolute match-names of outbound
     units: packets
@@ -103,11 +103,11 @@ component: Network
 ## Disk
 
  template: windows_disk_in_use
-       on: windows.logical_disk_utilization
+       on: windows.logical_disk_space_usage
     class: Utilization
      type: Windows
 component: Disk
-       os: linux
+       os: *
     hosts: *
      calc: ($used) * 100 / ($used + $free)
     units: %