git-svn-id: http://www.observium.org/svn/observer/trunk@809 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2010-02-10 15:57:09 +00:00
parent 6a6063b67b
commit de3993094f
3 changed files with 0 additions and 4 deletions
-1
View File
@@ -28,7 +28,6 @@ while($fanspeed = mysql_fetch_array($fan_data)) {
rrdtool_update($fanrrd,"N:$fan");
if($fanspeed['fan_current'] > $fanspeed['fan_limit'] && $fan <= $fanspeed['fan_limit']) {
$updated = ", `service_changed` = '" . time() . "' "; # FIXME what's this
if($device['sysContact']) { $email = $device['sysContact']; } else { $email = $config['email_default']; }
$msg = "Fan Alarm: " . $device['hostname'] . " " . $fanspeed['fan_descr'] . " is " . $fan . "rpm (Limit " . $fanspeed['fan_limit'];
$msg .= "rpm) at " . date('l dS F Y h:i:s A');
-1
View File
@@ -39,7 +39,6 @@ while($temperature = mysql_fetch_array($temp_data)) {
rrdtool_update($temprrd,"N:$temp");
if($temperature['temp_current'] < $temperature['temp_limit'] && $temp >= $temperature['temp_limit']) {
$updated = ", `service_changed` = '" . time() . "' "; # FIXME what's this
if($device['sysContact']) { $email = $device['sysContact']; } else { $email = $config['email_default']; }
$msg = "Temp Alarm: " . $device['hostname'] . " " . $temperature['temp_descr'] . " is " . $temp . " (Limit " . $temperature['temp_limit'];
$msg .= ") at " . date('l dS F Y h:i:s A');
-2
View File
@@ -32,7 +32,6 @@ while($voltage = mysql_fetch_array($volt_data)) {
if($voltage['volt_current'] > $voltage['volt_limit_low'] && $volt <= $voltage['volt_limit_low'])
{
$updated = ", `service_changed` = '" . time() . "' "; # FIXME what's this?
if($device['sysContact']) { $email = $device['sysContact']; } else { $email = $config['email_default']; }
$msg = "Voltage Alarm: " . $device['hostname'] . " " . $voltage['volt_descr'] . " is " . $volt . "V (Limit " . $voltage['volt_limit'];
$msg .= "V) at " . date('l dS F Y h:i:s A');
@@ -42,7 +41,6 @@ while($voltage = mysql_fetch_array($volt_data)) {
}
else if($voltage['volt_current'] < $voltage['volt_limit'] && $volt >= $voltage['volt_limit'])
{
$updated = ", `service_changed` = '" . time() . "' "; # FIXME what's this?
if($device['sysContact']) { $email = $device['sysContact']; } else { $email = $config['email_default']; }
$msg = "Voltage Alarm: " . $device['hostname'] . " " . $voltage['volt_descr'] . " is " . $volt . "V (Limit " . $voltage['volt_limit'];
$msg .= "V) at " . date('l dS F Y h:i:s A');