mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 08:02:41 +02:00
cleanups
git-svn-id: http://www.observium.org/svn/observer/trunk@809 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -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');
|
||||
|
||||
@@ -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');
|
||||
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user