Add environment device type

git-svn-id: http://www.observium.org/svn/observer/trunk@1259 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2010-06-24 16:23:37 +00:00
parent 87dfad8a79
commit f73b33f3f9
6 changed files with 8 additions and 3 deletions

View File

@@ -161,6 +161,11 @@ while ($device = mysql_fetch_array($device_query))
case "netmanplus":
$device['type'] = 'power';
break;
case "akcp":
case "minkelsrms":
case "papouch-tme":
$device['type'] = 'environment';
break;
}
}

BIN
html/images/icons/environment.png Executable file
View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 626 B

View File

@@ -58,6 +58,7 @@ if (isset($config['enable_printers']) && $config['enable_printers'])
}
?>
<li><a href="devices/power/"><img src="images/icons/power.png" border="0" align="absmiddle" /> Power</a></li>
<li><a href="devices/environment/"><img src="images/icons/environment.png" border="0" align="absmiddle" /> Environment</a></li>
<li><hr width="140" /></li>
<li><a href="devices/alerted/"><img src="images/16/server_error.png" border="0" align="absmiddle" /> Alerts (<?php echo $device_alerts ?>)</a></li>
<?php

View File

@@ -15,8 +15,6 @@ if($updated && $update_message) {
print_error($update_message);
}
$device_types = array('server','network','firewall','workstation','printer','power');
echo("<table cellpadding=0 cellspacing=0><tr><td>
<h5>

View File

@@ -95,6 +95,7 @@ if(!$config['graph_colours']['mixed']) {
$config['graph_colours']['mixed'] = array("CC0000", "008C00", "4096EE", "73880A", "D01F3C", "36393D", "FF0084");
}
$device_types = array('server','network','firewall','workstation','printer','power', 'environment');
##############################
# No changes below this line #

View File

@@ -259,7 +259,7 @@ $poller_end = utime(); $poller_run = $poller_end - $poller_start; $poller_time =
$string = $argv[0] . " $doing " . date("F j, Y, G:i") . " - $polled_devices devices polled in $poller_time secs";
if ($debug) echo("$string\n");
shell_exec("echo '".$string."' >> ".$config['install_dir']."/observer.log");
shell_exec("echo '".$string."' >> ".$config['install_dir']."/observer.log"); # FIXME EWW
?>