From ff963ff70d18cf21de54e43f3280397ec48f2de5 Mon Sep 17 00:00:00 2001 From: Tom Laermans Date: Fri, 4 Jun 2010 18:40:02 +0000 Subject: [PATCH] fix log messages git-svn-id: http://www.observium.org/svn/observer/trunk@1102 61d68cd4-352d-0410-923a-c4978735b2b8 --- includes/polling/frequencies.inc.php | 4 ++-- includes/polling/voltages.inc.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/polling/frequencies.inc.php b/includes/polling/frequencies.inc.php index e584ffe5c9..e239e17cc5 100644 --- a/includes/polling/frequencies.inc.php +++ b/includes/polling/frequencies.inc.php @@ -37,7 +37,7 @@ while($frequency = mysql_fetch_array($freq_data)) { $msg .= "Hz) at " . date($config['timestamp_format']); mail($email, "Frequency Alarm: " . $device['hostname'] . " " . $frequency['freq_descr'], $msg, $config['email_headers']); echo("Alerting for " . $device['hostname'] . " " . $frequency['freq_descr'] . "\n"); - eventlog('Frequency ' . $frequency['freq_descr'] . " under threshold: " . $frequency['freq_current'] . " Hz (> " . $frequency['freq_limit'] . " Hz)", $device['device_id']); + eventlog('Frequency ' . $frequency['freq_descr'] . " under threshold: " . $frequency['freq_current'] . " Hz (< " . $frequency['freq_limit_low'] . " Hz)", $device['device_id']); } else if($frequency['freq_current'] < $frequency['freq_limit'] && $freq >= $frequency['freq_limit']) { @@ -46,7 +46,7 @@ while($frequency = mysql_fetch_array($freq_data)) { $msg .= "Hz) at " . date($config['timestamp_format']); mail($email, "Frequency Alarm: " . $device['hostname'] . " " . $frequency['freq_descr'], $msg, $config['email_headers']); echo("Alerting for " . $device['hostname'] . " " . $frequency['freq_descr'] . "\n"); - eventlog('Frequency ' . $frequency['freq_descr'] . " above threshold: " . $frequency['freq_current'] . " Hz (< " . $frequency['freq_limit'] . " Hz)", $device['device_id']); + eventlog('Frequency ' . $frequency['freq_descr'] . " above threshold: " . $frequency['freq_current'] . " Hz (> " . $frequency['freq_limit'] . " Hz)", $device['device_id']); } mysql_query("UPDATE frequency SET freq_current = '$freq' WHERE freq_id = '" . $frequency['freq_id'] . "'"); diff --git a/includes/polling/voltages.inc.php b/includes/polling/voltages.inc.php index a973346d72..98174e582e 100755 --- a/includes/polling/voltages.inc.php +++ b/includes/polling/voltages.inc.php @@ -37,7 +37,7 @@ while($voltage = mysql_fetch_array($volt_data)) { $msg .= "V) at " . date($config['timestamp_format']); mail($email, "Voltage Alarm: " . $device['hostname'] . " " . $voltage['volt_descr'], $msg, $config['email_headers']); echo("Alerting for " . $device['hostname'] . " " . $voltage['volt_descr'] . "\n"); - eventlog('Voltage ' . $voltage['volt_descr'] . " under threshold: " . $voltage['volt_current'] . " V (> " . $voltage['volt_limit'] . " V)", $device['device_id']); + eventlog('Voltage ' . $voltage['volt_descr'] . " under threshold: " . $voltage['volt_current'] . " V (< " . $voltage['volt_limit_low'] . " V)", $device['device_id']); } else if($voltage['volt_current'] < $voltage['volt_limit'] && $volt >= $voltage['volt_limit']) { @@ -46,7 +46,7 @@ while($voltage = mysql_fetch_array($volt_data)) { $msg .= "V) at " . date($config['timestamp_format']); mail($email, "Voltage Alarm: " . $device['hostname'] . " " . $voltage['volt_descr'], $msg, $config['email_headers']); echo("Alerting for " . $device['hostname'] . " " . $voltage['volt_descr'] . "\n"); - eventlog('Voltage ' . $voltage['volt_descr'] . " above threshold: " . $voltage['volt_current'] . " V (> " . $voltage['volt_limit'] . " V)", $device['device_id']); + eventlog('Voltage ' . $voltage['volt_descr'] . " above threshold: " . $voltage['volt_current'] . " V (> " . $voltage['volt_limit'] . " V)", $device['device_id']); } mysql_query("UPDATE voltage SET volt_current = '$volt' WHERE volt_id = '" . $voltage['volt_id'] . "'");