Fix sensors rrd name issue

Use last instead of first, as last won't flush rrdcached
Only stream_select if timeout > 0
Attempt to fix mysql
This commit is contained in:
Tony Murray
2016-07-08 22:58:36 -05:00
parent c01d8b7c4e
commit 01cfb960d1
8 changed files with 49 additions and 42 deletions

View File

@@ -29,7 +29,7 @@ if ($ipmi['host'] = get_dev_attrib($device, 'ipmi_hostname')) {
echo $sensor." $unit\n";
$rrd_name = get_sensor_rrd($device, $ipmisensors);
$rrd_name = get_sensor_rrd_name($device, $ipmisensors);
$rrd_def = 'DS:sensor:GAUGE:600:-20000:20000';
$fields = array(