From b5bf3df50d3ef86b460ab87dc9f6669a2b80135b Mon Sep 17 00:00:00 2001 From: Tom Laermans Date: Sat, 9 Jan 2010 00:50:29 +0000 Subject: [PATCH] fix newlines in 2 polling files git-svn-id: http://www.observium.org/svn/observer/trunk@628 61d68cd4-352d-0410-923a-c4978735b2b8 --- includes/polling/hr-mib_storage.inc.php | 2 +- includes/polling/temperatures.inc.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/polling/hr-mib_storage.inc.php b/includes/polling/hr-mib_storage.inc.php index c9d970220..a6842a120 100755 --- a/includes/polling/hr-mib_storage.inc.php +++ b/includes/polling/hr-mib_storage.inc.php @@ -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"); } } diff --git a/includes/polling/temperatures.inc.php b/includes/polling/temperatures.inc.php index ac149415b..61391f65d 100755 --- a/includes/polling/temperatures.inc.php +++ b/includes/polling/temperatures.inc.php @@ -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]'");