Add support for some NVMe temp sensors

Found on OVH's Advanced servers for example
tags/zabbix-agent-addons-0.2.76-1
Daniel Berteaud 5 years ago
parent a66e9bb827
commit 1c8c99e9c9
  1. 13
      zabbix_scripts/util_generate_sensors_ini

@ -297,6 +297,19 @@ if ($smartctl && -x $smartctl){
print "Found a temperature sensor using smartctl: $block\n"; print "Found a temperature sensor using smartctl: $block\n";
last; last;
} }
# Format found on some NVMe SSD
elsif ($l =~ /Temperature:\s+(\d+(\.\d+)?)\sCelsius/){
$sensors->{$block} = {
description => "$block temperature",
threshold_low => $def_hd_temp_thres_high-$temp_hd_hyst,
threshold_high => $def_hd_temp_thres_high,
type => 'temp',
unit => '°C',
cmd => "$smartctl -A /dev/$block | grep Temperature: | awk '{ print \$2 }'"
};
print "Found a temperature sensor using smartctl: $block\n";
last;
}
} }
} }
# Some LSI based hardware RAID controller can report HDD temp # Some LSI based hardware RAID controller can report HDD temp

Loading…
Cancel
Save