Check_temp.pl Error: I did not get a temp from the sensor data mathcing REGEX
Posted: Wed Jul 10, 2024 11:25 am
Hello all
Have a Dell R620 with SUSE 11 SP4 (old but working)
with 2 x Intel(R) Xeon(R) CPU E5-2650 v2 @ 2.60GHz
kye-vmh01:~ # perl -V
Summary of my perl5 (revision 5 version 10 subversion 0) configuration:
Platform:
osname=linux, osvers=2.6.32, archname=x86_64-linux-thread-multi
uname='linux sheep28 2.6.32 #1 smp fri jun 14 08:21:43 utc 2013 (ccab990) x86_64 x86_64 x86_64 gnulinux '
running check_temp.pl I never get a temp reading
from https://exchange.nagios.org/directory/P ... pl/details
---
kye-vmh01:/usr/lib/nagios/plugins # sensors
coretemp-isa-0000
Adapter: ISA adapter
Physical id 0: +52.0°C (high = +79.0°C, crit = +89.0°C)
Core 0: +51.0°C (high = +79.0°C, crit = +89.0°C)
Core 1: +52.0°C (high = +79.0°C, crit = +89.0°C)
Core 2: +49.0°C (high = +79.0°C, crit = +89.0°C)
Core 3: +48.0°C (high = +79.0°C, crit = +89.0°C)
Core 4: +47.0°C (high = +79.0°C, crit = +89.0°C)
Core 5: +43.0°C (high = +79.0°C, crit = +89.0°C)
Core 6: +52.0°C (high = +79.0°C, crit = +89.0°C)
Core 7: +50.0°C (high = +79.0°C, crit = +89.0°C)
coretemp-isa-0001
Adapter: ISA adapter
Physical id 1: +49.0°C (high = +79.0°C, crit = +89.0°C)
Core 0: +44.0°C (high = +79.0°C, crit = +89.0°C)
Core 1: +46.0°C (high = +79.0°C, crit = +89.0°C)
Core 2: +42.0°C (high = +79.0°C, crit = +89.0°C)
Core 3: +46.0°C (high = +79.0°C, crit = +89.0°C)
Core 4: +49.0°C (high = +79.0°C, crit = +89.0°C)
Core 5: +45.0°C (high = +79.0°C, crit = +89.0°C)
Core 6: +48.0°C (high = +79.0°C, crit = +89.0°C)
Core 7: +44.0°C (high = +79.0°C, crit = +89.0°C)
---
Combos I've tried
---
kye-vmh01:/usr/lib/nagios/plugins # perl check_temp.pl -s coretemp-isa-0001:
Error: I did not get a temp from the sensor data mathcing REGEX = /coretemp-isa-0001::/
kye-vmh01:/usr/lib/nagios/plugins # perl check_temp.pl -s coretemp-isa-0001
Error: I did not get a temp from the sensor data mathcing REGEX = /coretemp-isa-0001:/
kye-vmh01:/usr/lib/nagios/plugins # perl check_temp.pl -s 'Physical id 0'
Error: I did not get a temp from the sensor data mathcing REGEX = /Physical id 0:/
kye-vmh01:/usr/lib/nagios/plugins #
kye-vmh01:/usr/lib/nagios/plugins # perl check_temp.pl -s core
Error: I did not get a temp from the sensor data mathcing REGEX = /core:/
kye-vmh01:/usr/lib/nagios/plugins # perl check_temp.pl -s Core
Error: I did not get a temp from the sensor data mathcing REGEX = /Core:/
kye-vmh01:/usr/lib/nagios/plugins # perl check_temp.pl -s Physical
Error: I did not get a temp from the sensor data mathcing REGEX = /Physical:/
kye-vmh01:/usr/lib/nagios/plugins # perl check_temp.pl -s physical
Error: I did not get a temp from the sensor data mathcing REGEX = /physical:/
kye-vmh01:/usr/lib/nagios/plugins # perl check_temp.pl -s Physical id o
Error: I did not get a temp from the sensor data mathcing REGEX = /Physical:/
kye-vmh01:/usr/lib/nagios/plugins # perl check_temp.pl -s Physical id 0
Error: I did not get a temp from the sensor data mathcing REGEX = /Physical:/
kye-vmh01:/usr/lib/nagios/plugins # perl check_temp.pl -s 'Core .'
Error: I did not get a temp from the sensor data mathcing REGEX = /Core .:/
kye-vmh01:/usr/lib/nagios/plugins # perl check_temp.pl -s 'Core '
Error: I did not get a temp from the sensor data mathcing REGEX = /Core :/
kye-vmh01:/usr/lib/nagios/plugins # perl check_temp.pl -c 85 -w 75 -s 'Core .'
Error: I did not get a temp from the sensor data mathcing REGEX = /Core .:/
kye-vmh01:/usr/lib/nagios/plugins # perl check_temp.pl -c 85 -w 75 -s 'Core 0'
Error: I did not get a temp from the sensor data mathcing REGEX = /Core 0:/
kye-vmh01:/usr/lib/nagios/plugins # perl check_temp.pl -c 85 -w 75 -s 'Physical id 0'
Error: I did not get a temp from the sensor data mathcing REGEX = /Physical id 0:/
---
What an I doing wrong?
viewtopic.php?t=56124 was some help, but still no joy
I just need the temp from each physical CPU - from these lines
Physical id 0: +52.0°C (high = +79.0°C, crit = +89.0°C)
Physical id 1: +49.0°C (high = +79.0°C, crit = +89.0°C)
Running check_temp.pl from the SLES 11 box locally
---
kye-vmh01:/usr/lib/nagios/plugins # ./check_temp.pl -h
Monitor temperature with the use of /usr/bin/sensors
Version 1.2
(c) 2011 Chad Columbus <[email protected]>
---
later to get the temp in nagios via nrpe
- already using nrpe to get disk space & remote load status of this server
Have a Dell R620 with SUSE 11 SP4 (old but working)
with 2 x Intel(R) Xeon(R) CPU E5-2650 v2 @ 2.60GHz
kye-vmh01:~ # perl -V
Summary of my perl5 (revision 5 version 10 subversion 0) configuration:
Platform:
osname=linux, osvers=2.6.32, archname=x86_64-linux-thread-multi
uname='linux sheep28 2.6.32 #1 smp fri jun 14 08:21:43 utc 2013 (ccab990) x86_64 x86_64 x86_64 gnulinux '
running check_temp.pl I never get a temp reading
from https://exchange.nagios.org/directory/P ... pl/details
---
kye-vmh01:/usr/lib/nagios/plugins # sensors
coretemp-isa-0000
Adapter: ISA adapter
Physical id 0: +52.0°C (high = +79.0°C, crit = +89.0°C)
Core 0: +51.0°C (high = +79.0°C, crit = +89.0°C)
Core 1: +52.0°C (high = +79.0°C, crit = +89.0°C)
Core 2: +49.0°C (high = +79.0°C, crit = +89.0°C)
Core 3: +48.0°C (high = +79.0°C, crit = +89.0°C)
Core 4: +47.0°C (high = +79.0°C, crit = +89.0°C)
Core 5: +43.0°C (high = +79.0°C, crit = +89.0°C)
Core 6: +52.0°C (high = +79.0°C, crit = +89.0°C)
Core 7: +50.0°C (high = +79.0°C, crit = +89.0°C)
coretemp-isa-0001
Adapter: ISA adapter
Physical id 1: +49.0°C (high = +79.0°C, crit = +89.0°C)
Core 0: +44.0°C (high = +79.0°C, crit = +89.0°C)
Core 1: +46.0°C (high = +79.0°C, crit = +89.0°C)
Core 2: +42.0°C (high = +79.0°C, crit = +89.0°C)
Core 3: +46.0°C (high = +79.0°C, crit = +89.0°C)
Core 4: +49.0°C (high = +79.0°C, crit = +89.0°C)
Core 5: +45.0°C (high = +79.0°C, crit = +89.0°C)
Core 6: +48.0°C (high = +79.0°C, crit = +89.0°C)
Core 7: +44.0°C (high = +79.0°C, crit = +89.0°C)
---
Combos I've tried
---
kye-vmh01:/usr/lib/nagios/plugins # perl check_temp.pl -s coretemp-isa-0001:
Error: I did not get a temp from the sensor data mathcing REGEX = /coretemp-isa-0001::/
kye-vmh01:/usr/lib/nagios/plugins # perl check_temp.pl -s coretemp-isa-0001
Error: I did not get a temp from the sensor data mathcing REGEX = /coretemp-isa-0001:/
kye-vmh01:/usr/lib/nagios/plugins # perl check_temp.pl -s 'Physical id 0'
Error: I did not get a temp from the sensor data mathcing REGEX = /Physical id 0:/
kye-vmh01:/usr/lib/nagios/plugins #
kye-vmh01:/usr/lib/nagios/plugins # perl check_temp.pl -s core
Error: I did not get a temp from the sensor data mathcing REGEX = /core:/
kye-vmh01:/usr/lib/nagios/plugins # perl check_temp.pl -s Core
Error: I did not get a temp from the sensor data mathcing REGEX = /Core:/
kye-vmh01:/usr/lib/nagios/plugins # perl check_temp.pl -s Physical
Error: I did not get a temp from the sensor data mathcing REGEX = /Physical:/
kye-vmh01:/usr/lib/nagios/plugins # perl check_temp.pl -s physical
Error: I did not get a temp from the sensor data mathcing REGEX = /physical:/
kye-vmh01:/usr/lib/nagios/plugins # perl check_temp.pl -s Physical id o
Error: I did not get a temp from the sensor data mathcing REGEX = /Physical:/
kye-vmh01:/usr/lib/nagios/plugins # perl check_temp.pl -s Physical id 0
Error: I did not get a temp from the sensor data mathcing REGEX = /Physical:/
kye-vmh01:/usr/lib/nagios/plugins # perl check_temp.pl -s 'Core .'
Error: I did not get a temp from the sensor data mathcing REGEX = /Core .:/
kye-vmh01:/usr/lib/nagios/plugins # perl check_temp.pl -s 'Core '
Error: I did not get a temp from the sensor data mathcing REGEX = /Core :/
kye-vmh01:/usr/lib/nagios/plugins # perl check_temp.pl -c 85 -w 75 -s 'Core .'
Error: I did not get a temp from the sensor data mathcing REGEX = /Core .:/
kye-vmh01:/usr/lib/nagios/plugins # perl check_temp.pl -c 85 -w 75 -s 'Core 0'
Error: I did not get a temp from the sensor data mathcing REGEX = /Core 0:/
kye-vmh01:/usr/lib/nagios/plugins # perl check_temp.pl -c 85 -w 75 -s 'Physical id 0'
Error: I did not get a temp from the sensor data mathcing REGEX = /Physical id 0:/
---
What an I doing wrong?
viewtopic.php?t=56124 was some help, but still no joy
I just need the temp from each physical CPU - from these lines
Physical id 0: +52.0°C (high = +79.0°C, crit = +89.0°C)
Physical id 1: +49.0°C (high = +79.0°C, crit = +89.0°C)
Running check_temp.pl from the SLES 11 box locally
---
kye-vmh01:/usr/lib/nagios/plugins # ./check_temp.pl -h
Monitor temperature with the use of /usr/bin/sensors
Version 1.2
(c) 2011 Chad Columbus <[email protected]>
---
later to get the temp in nagios via nrpe
- already using nrpe to get disk space & remote load status of this server