mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
move device types config to static-config.php
git-svn-id: http://www.observium.org/svn/observer/trunk@1554 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -52,44 +52,6 @@ if (isset($config['enable_bgp']) && $config['enable_bgp'])
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$i = 0;
|
|
||||||
$config['device_types'][$i]['text'] = 'Servers';
|
|
||||||
$config['device_types'][$i]['type'] = 'server';
|
|
||||||
$config['device_types'][$i]['icon'] = 'server.png';
|
|
||||||
|
|
||||||
$i++;
|
|
||||||
$config['device_types'][$i]['text'] = 'Network';
|
|
||||||
$config['device_types'][$i]['type'] = 'network';
|
|
||||||
$config['device_types'][$i]['icon'] = 'network.png';
|
|
||||||
|
|
||||||
$i++;
|
|
||||||
$config['device_types'][$i]['text'] = 'Firewalls';
|
|
||||||
$config['device_types'][$i]['type'] = 'firewall';
|
|
||||||
$config['device_types'][$i]['icon'] = 'firewall.png';
|
|
||||||
|
|
||||||
$i++;
|
|
||||||
$config['device_types'][$i]['text'] = 'Power';
|
|
||||||
$config['device_types'][$i]['type'] = 'power';
|
|
||||||
$config['device_types'][$i]['icon'] = 'power.png';
|
|
||||||
|
|
||||||
$i++;
|
|
||||||
$config['device_types'][$i]['text'] = 'Environment';
|
|
||||||
$config['device_types'][$i]['type'] = 'environment';
|
|
||||||
$config['device_types'][$i]['icon'] = 'environment.png';
|
|
||||||
|
|
||||||
$i++;
|
|
||||||
$config['device_types'][$i]['text'] = 'Servers';
|
|
||||||
$config['device_types'][$i]['type'] = 'server';
|
|
||||||
$config['device_types'][$i]['icon'] = 'server.png';
|
|
||||||
|
|
||||||
if (isset($config['enable_printers']) && $config['enable_printers'])
|
|
||||||
{
|
|
||||||
$i++;
|
|
||||||
$config['device_types'][$i]['text'] = 'Printers';
|
|
||||||
$config['device_types'][$i]['type'] = 'printer';
|
|
||||||
$config['device_types'][$i]['icon'] = 'printer.png';
|
|
||||||
}
|
|
||||||
|
|
||||||
foreach ($config['device_types'] as $devtype)
|
foreach ($config['device_types'] as $devtype)
|
||||||
{
|
{
|
||||||
echo ' <li><a href="devices/' . $devtype['type'] . '/"><img src="images/icons/' . $devtype['icon'] . '" border="0" align="absmiddle" /> ' . $devtype['text'] . '</a></li>';
|
echo ' <li><a href="devices/' . $devtype['type'] . '/"><img src="images/icons/' . $devtype['icon'] . '" border="0" align="absmiddle" /> ' . $devtype['text'] . '</a></li>';
|
||||||
|
@@ -470,6 +470,46 @@ $config['graph']['device']['netstats_ip_frag'] = "IP Fragmentation Statistics"
|
|||||||
$config['graph']['device']['netstats_udp'] = "UDP Statistics";
|
$config['graph']['device']['netstats_udp'] = "UDP Statistics";
|
||||||
$config['graph']['device']['netstats_snmp'] = "SNMP Statistics";
|
$config['graph']['device']['netstats_snmp'] = "SNMP Statistics";
|
||||||
|
|
||||||
|
### Device types
|
||||||
|
|
||||||
|
$i = 0;
|
||||||
|
$config['device_types'][$i]['text'] = 'Servers';
|
||||||
|
$config['device_types'][$i]['type'] = 'server';
|
||||||
|
$config['device_types'][$i]['icon'] = 'server.png';
|
||||||
|
|
||||||
|
$i++;
|
||||||
|
$config['device_types'][$i]['text'] = 'Network';
|
||||||
|
$config['device_types'][$i]['type'] = 'network';
|
||||||
|
$config['device_types'][$i]['icon'] = 'network.png';
|
||||||
|
|
||||||
|
$i++;
|
||||||
|
$config['device_types'][$i]['text'] = 'Firewalls';
|
||||||
|
$config['device_types'][$i]['type'] = 'firewall';
|
||||||
|
$config['device_types'][$i]['icon'] = 'firewall.png';
|
||||||
|
|
||||||
|
$i++;
|
||||||
|
$config['device_types'][$i]['text'] = 'Power';
|
||||||
|
$config['device_types'][$i]['type'] = 'power';
|
||||||
|
$config['device_types'][$i]['icon'] = 'power.png';
|
||||||
|
|
||||||
|
$i++;
|
||||||
|
$config['device_types'][$i]['text'] = 'Environment';
|
||||||
|
$config['device_types'][$i]['type'] = 'environment';
|
||||||
|
$config['device_types'][$i]['icon'] = 'environment.png';
|
||||||
|
|
||||||
|
$i++;
|
||||||
|
$config['device_types'][$i]['text'] = 'Servers';
|
||||||
|
$config['device_types'][$i]['type'] = 'server';
|
||||||
|
$config['device_types'][$i]['icon'] = 'server.png';
|
||||||
|
|
||||||
|
if (isset($config['enable_printers']) && $config['enable_printers'])
|
||||||
|
{
|
||||||
|
$i++;
|
||||||
|
$config['device_types'][$i]['text'] = 'Printers';
|
||||||
|
$config['device_types'][$i]['type'] = 'printer';
|
||||||
|
$config['device_types'][$i]['icon'] = 'printer.png';
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
##############################
|
##############################
|
||||||
|
Reference in New Issue
Block a user