move hddtemp to unix-agent/ instead of applications/

git-svn-id: http://www.observium.org/svn/observer/trunk@3214 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2012-05-20 19:28:37 +00:00
parent f2be2f33d2
commit 25bcc8b567
2 changed files with 2 additions and 2 deletions

View File

@@ -0,0 +1,23 @@
<?php
global $agent_sensors;
include_once("includes/discovery/functions.inc.php");
$disks = explode('||',trim($agent_data['hddtemp'],'|'));
if (count($disks))
{
echo "hddtemp: ";
foreach ($disks as $disk)
{
list($blockdevice,$descr,$temperature,$unit) = explode('|',$disk,4);
$diskcount++;
discover_sensor($valid['sensor'], 'temperature', $device, '', $diskcount, 'hddtemp', "$blockdevice: $descr", '1', '1', NULL, NULL, NULL, NULL, $temperature, 'agent');
$agent_sensors['temperature']['hddtemp'][$diskcount] = array('description' => "$blockdevice: $descr", 'current' => $temperature, 'index' => $diskcount);
}
echo "\n";
}
?>