mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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:
@@ -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
BIN
html/images/icons/environment.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 626 B |
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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 #
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user