# Check\_nwc\_health - X values

**URL:** <https://community.icinga.com/t/check-nwc-health-x-values/8545>\
**Category:** Service Monitoring\
**Tags:** nwc\_health, icinga2\
**Created:** [October 29, 2021, 10:14am UTC](https://community.icinga.com/t/check-nwc-health-x-values/8545 "2021-10-29T10:14:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lnxshell](https://community.icinga.com/user_avatar/community.icinga.com/lnxshell/32/459_2.png) [@lnxshell](https://community.icinga.com/u/lnxshell)\
**Post date:** [October 29, 2021, 10:14am UTC](https://community.icinga.com/t/check-nwc-health-x-values/8545/1 "2021-10-29T10:14:47Z")

</div>

Heyho!

Lets start with my scenario:

```auto
./check_nwc_health --authpassword xxxxxxx --authprotocol XXX --hostname x.x.x.x --mode hardware-health --privpassword xxxxxxxx --privprotocol XXX --protocol v3 --timeout 50 --username xxxxxxxx 

```

This will show me all the polled sensors of the device (all good so far)

```auto
OK - disk is 0.48% full, environmental hardware working fine | 'sensor_+3.3V'=3.40;;;; 'sensor_NCT VDQ1'=1.34;;;; 'volt_DDR3 VTT1'=0.67;;;; 'sensor_NCT VDQ2'=1.34;;;; 'volt_DDR3 VTT2'=0.67;;;; 'sensor_MAC_AVS_1V'=0.97;;;; 'sensor_NCT7904D 3VDD'=3.31;;;; 'sensor_NCT7904D 3VSB'=3.31;;;; 'sensor_NCT7904D VTT'=0.99;;;; 'sensor_DTS CPU'=58;;;; 'sensor_CPU Core 0'=59;;;; 'sensor_+5V'=5.12;;;; 'sensor_CPU Core 1'=55;;;; 'sensor_CPU Core 2'=58;;;; 'sensor_CPU Core 3'=50;;;; 'sensor_CPU Core 4'=54;;;; 'sensor_CPU Core 5'=55;;;; 'temp_TD1'=46;;;; 'temp_TD2'=35;;;; 'temp_TD3'=34;;;; 'temp_TD4'=39;;;; 'sensor_TS1'=43;;;; 'sensor_+12V'=12.08;;;; 'sensor_TS2'=36;;;; 'sensor_TS3'=40;;;; 'sensor_TS4'=38;;;; 'sensor_TS5'=36;;;; 'sensor_TS6'=35;;;; 'rpm_Fan 1'=3700;;;; 'rpm_Fan 2'=3100;;;; 'rpm_Fan 3'=3700;;;; 'rpm_Fan 4'=3300;;;; 'rpm_Fan 5'=3900;;;; 'sensor_CPU Vcore'=1.05;;;; 'rpm_Fan 6'=3300;;;; 'temp_PS1 Temp'=34;;;; 'rpm_PS1 Fan 1'=12800;;;; 'volt_PS1 VIN'=224;;;; 'volt_PS1 VOUT_12V'=11.97;;;; 'temp_PS2 Temp'=33;;;; 'rpm_PS2 Fan 1'=12544;;;; 'volt_PS2 VIN'=224;;;; 'volt_PS2 VOUT_12V'=12.03;;;; 'sensor_CPU VTT'=1.01;;;; 'sensor_INA219 PS1 Vsht'=0.01;;;; 'sensor_INA219 PS1 Vbus'=11.90;;;; 'sensor_INA219 PS2 Vsht'=0.01;;;; 'sensor_INA219 PS2 Vbus'=11.90;;;; 'sensor_CPU VSA'=0.98;;;; 'volt_DDR3 VDQ1'=1.35;;;; 'volt_DDR3 VDQ2'=1.35;;;; 'sensor_NCT Vcore'=1.04;;;; 'disk_usage'=0.48%;80;90;0;100

```

If I would set warning and critical alerts for just ‘temp’ values (adding warningx and criticalx)

```auto
./check_nwc_health --authpassword xxxxxxx --authprotocol XXX --hostname x.x.x.x --mode hardware-health --privpassword xxxxxxxx --privprotocol XXX --protocol v3 --timeout 50 --username xxxxxxxx --warningx 'temp_.*'=40 --criticalx 'temp_.*'=60

```

which is obviously not working:

```auto
'temp_TD1'=46;;;; 'temp_TD2'=35;;;; 'temp_TD3'=34;;;; 'temp_TD4'=39;;;; 

```

Using the definitiv name of the sensor instead:

```auto
./check_nwc_health --authpassword xxxxxxxx --authprotocol XXX --hostname x.x.x.x.x --mode hardware-health --privpassword xxxxxxxx--privprotocol XXXX --protocol v3 --timeout 50 --username xxxxxxxxx --warningx 'temp_TD1'=40 --criticalx 'temp_TD1'=60

OK - disk is 0.48% full, environmental hardware working fine | 'sensor_+3.3V'=3.40;;;; 'sensor_NCT VDQ1'=1.34;;;; 'volt_DDR3 VTT1'=0.67;;;; 'sensor_NCT VDQ2'=1.34;;;; 'volt_DDR3 VTT2'=0.67;;;; 'sensor_MAC_AVS_1V'=0.98;;;; 'sensor_NCT7904D 3VDD'=3.31;;;; 'sensor_NCT7904D 3VSB'=3.31;;;; 'sensor_NCT7904D VTT'=0.99;;;; 'sensor_DTS CPU'=57;;;; 'sensor_CPU Core 0'=57;;;; 'sensor_+5V'=5.12;;;; 'sensor_CPU Core 1'=54;;;; 'sensor_CPU Core 2'=56;;;; 'sensor_CPU Core 3'=49;;;; 'sensor_CPU Core 4'=53;;;; 'sensor_CPU Core 5'=53;;;; 'temp_TD1'=45;40;60;; 'temp_TD2'=34;;;; 'temp_TD3'=33;;;; 'temp_TD4'=38;;;; 'sensor_TS1'=42;;;; 'sensor_+12V'=12.08;;;; 'sensor_TS2'=34;;;; 'sensor_TS3'=39;;;; 'sensor_TS4'=37;;;; 'sensor_TS5'=35;;;; 'sensor_TS6'=34;;;; 'rpm_Fan 1'=3600;;;; 'rpm_Fan 2'=3100;;;; 'rpm_Fan 3'=3700;;;; 'rpm_Fan 4'=3300;;;; 'rpm_Fan 5'=3800;;;; 'sensor_CPU Vcore'=1.05;;;; 'rpm_Fan 6'=3400;;;; 'temp_PS1 Temp'=34;;;; 'rpm_PS1 Fan 1'=12672;;;; 'volt_PS1 VIN'=226;;;; 'volt_PS1 VOUT_12V'=11.97;;;; 'temp_PS2 Temp'=32;;;; 'rpm_PS2 Fan 1'=12544;;;; 'volt_PS2 VIN'=224;;;; 'volt_PS2 VOUT_12V'=12.03;;;; 'sensor_CPU VTT'=1.01;;;; 'sensor_INA219 PS1 Vsht'=0.01;;;; 'sensor_INA219 PS1 Vbus'=11.90;;;; 'sensor_INA219 PS2 Vsht'=0.01;;;; 'sensor_INA219 PS2 Vbus'=11.90;;;; 'sensor_CPU VSA'=0.99;;;; 'volt_DDR3 VDQ1'=1.35;;;; 'volt_DDR3 VDQ2'=1.35;;;; 'sensor_NCT Vcore'=1.04;;;; 'disk_usage'=0.48%;80;90;0;100

```

_ **→ ‘temp\_TD1’=45;40;60** _

but I need all temp sensors and unfortunately

- exit code is still OK as well (even warning value is 40 and output is 45).

I am pretty sure I am doing something wrong here (would never say its a bug ;))…

**BTW:** I am aware of Claudio´s articel on his blog [Claudio´s Blog](https://www.claudiokuenzler.com/blog/1067/how-to-use-multiple-check_nwc_health-warningx-criticalx-parameters-icinga-2) - he is using single quotes which does not work either.

Naturally I´ve checked Gerhard L. docu as well : [check\_nwc\_health @ consol labs](https://labs.consol.de/nagios/check_nwc_health/index.html) - Gerhard suggests single quotes before equal - same result, does not work.

Any help / ideas much appreciated 🙂

Oliver
