Temperature improvements:

- Allow default limit to be set in configuration
- Insert temperature upon discovery already into database (except observer-style .. yet)
- On Supermicro temperatures, select high limit via snmp as well

git-svn-id: http://www.observium.org/svn/observer/trunk@722 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2010-01-25 17:27:29 +00:00
parent deb4c55d2c
commit a18067d613
3 changed files with 19 additions and 13 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ while($temperature = mysql_fetch_array($temp_data)) {
echo("Alerting for " . $device['hostname'] . " " . $temperature['temp_descr'] . "\n");
}
mysql_query("UPDATE temperature SET temp_current = '$temp' WHERE temp_id = '$temperature[temp_id]'");
mysql_query("UPDATE temperature SET temp_current = '$temp' WHERE temp_id = '" . $temperature['temp_id'] . "'");
}
?>