mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 08:02:41 +02:00
device_processor_stacked type for unix devices (where all CPUs share the same domain, not useful on network hardware where different CPUs do different jobs) Also we need inherit properties to $config['os'] from $config['os_group'], where they are not already set in $config['os']. Also updog.
git-svn-id: http://www.observium.org/svn/observer/trunk@2138 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -109,6 +109,7 @@ $warn_colour_b = "#ffcccc";
|
||||
#$config['graph_colours']['blues'] = array("b5d7ff","6eb7ff","0064ff","0082ff","0019d5","0016cb","00007d"); ## Cold Blues
|
||||
|
||||
$config['graph_colours']['mixed'] = array('CC0000','008C00','4096EE','73880A','D01F3C','36393D','FF0084');
|
||||
$config['graph_colours']['oranges'] = array('E43C00','E74B00','EB5B00','EF6A00','F37900','F78800','FB9700','FFA700');
|
||||
$config['graph_colours']['greens'] = array('B6D14B','91B13C','6D912D','48721E','24520F','003300');
|
||||
$config['graph_colours']['pinks'] = array('D0558F','B34773','943A57','792C38','5C1F1E','401F10');
|
||||
$config['graph_colours']['blues'] = array('A0A0E5','8080BD','606096','40406F','202048','000033');
|
||||
|
||||
@@ -18,6 +18,11 @@ $config['os']['default']['over'][0]['text'] = "Processor Usage";
|
||||
$config['os']['default']['over'][1]['graph'] = "device_mempool";
|
||||
$config['os']['default']['over'][1]['text'] = "Memory Usage";
|
||||
|
||||
$os_group = "unix";
|
||||
$config['os_group'][$os_group]['type'] = "server";
|
||||
$config['os_group'][$os_group]['processor_stacked'] = 1;
|
||||
|
||||
|
||||
$os = "generic";
|
||||
$config['os'][$os]['text'] = "Generic Device";
|
||||
|
||||
@@ -697,6 +702,20 @@ $config['os'][$os]['over'][0]['graph'] = "device_current";
|
||||
$config['os'][$os]['over'][0]['text'] = "Current";
|
||||
$config['os'][$os]['icon'] = "tripplite";
|
||||
|
||||
foreach($config['os'] as $this_os => $blah)
|
||||
{
|
||||
$this_os_group = $config['os'][$this_os]['group'];
|
||||
if(isset($config['os'][$this_os]['group']) && isset($config['os_group'][$this_os_group]))
|
||||
{
|
||||
foreach ($config['os_group'][$this_os_group] as $property => $value)
|
||||
{
|
||||
if(!isset($config['os'][$this_os][$property]))
|
||||
{
|
||||
$config['os'][$this_os][$property] = $value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$device_types = array('server', 'network', 'firewall', 'workstation', 'printer', 'power', 'environment');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user