fix newlines in 2 polling files

git-svn-id: http://www.observium.org/svn/observer/trunk@628 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2010-01-09 00:50:29 +00:00
parent bb0cecc5b0
commit b5bf3df50d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -38,6 +38,6 @@ while ($dr = mysql_fetch_array($dq)) {
$msg = "Disk Alarm: " . $device['hostname'] . " " . $dr['hrStorageDescr'] . " is " . $perc;
$msg .= "% at " . date('l dS F Y h:i:s A');
mail($email, "Disk Alarm: " . $device['hostname'] . " " . $dr['hrStorageDescr'], $msg, $config['email_headers']);
echo("Alerting for " . $device['hostname'] . " " . $dr['hrStorageDescr'] . "/n");
echo("Alerting for " . $device['hostname'] . " " . $dr['hrStorageDescr'] . "\n");
}
}
+1 -1
View File
@@ -38,7 +38,7 @@ while($temperature = mysql_fetch_array($temp_data)) {
$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');
mail($email, "Temp Alarm: " . $device['hostname'] . " " . $temperature['temp_descr'], $msg, $config['email_headers']);
echo("Alerting for " . $device['hostname'] . " " . $temperature['temp_descr'] . "/n");
echo("Alerting for " . $device['hostname'] . " " . $temperature['temp_descr'] . "\n");
}
mysql_query("UPDATE temperature SET temp_current = '$temp' WHERE temp_id = '$temperature[temp_id]'");