/// -> //

git-svn-id: http://www.observium.org/svn/observer/trunk@3240 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2012-05-25 12:24:34 +00:00
parent cacf913a55
commit b273e04241
247 changed files with 716 additions and 716 deletions
+4 -4
View File
@@ -21,7 +21,7 @@ include("includes/definitions.inc.php");
include("includes/functions.php");
include("html/includes/functions.inc.php");
/// Check all of our interface RRD files for errors
// Check all of our interface RRD files for errors
if ($argv[1]) { $where = "AND `port_id` = ?"; $params = array($argv[1]); }
@@ -42,16 +42,16 @@ foreach (dbFetchRows("SELECT * FROM `ports` AS I, `devices` AS D WHERE I.device_
echo("Checked $i interfaces\n");
if (is_array($errored))
{ /// If there are errored ports
{ // If there are errored ports
$i = 0;
$msg = "Interfaces with errors : \n\n";
foreach ($errored as $int)
{
$msg .= "$int\n"; /// Add a line to the report email warning about them
$msg .= "$int\n"; // Add a line to the report email warning about them
$i++;
}
/// Send the alert email
// Send the alert email
notify($device, "Observium detected errors on $i interface" . ($i != 1 ? 's' : ''), $msg);
}