Minor patch (with example for Netgear) to allow the wholesale/hierachical disabling of the graphs in the host box popup. Which can be useful for certain devices which may not have a natural/default graph to always display (obviously - this really needs to be come a 'tick-if-you-want-this-graph in the summary display).
Thanks,
Dw
Index: html/includes/functions.inc.php =================================================================== --- html/includes/functions.inc.php (revision 1697) +++ html/includes/functions.inc.php (working copy) @@ -36,7 +36,7 @@
# if (isset($device['location'])) { $contents .= "" . htmlentities($device['location'])."<br />"; } - foreach ($graphs as $entry) + if (!isset($graphs['disabled'])) foreach ($graphs as $entry) { $graph = $entry['graph']; $graphhead = $entry['text']; Index: includes/static-config.php =================================================================== --- includes/static-config.php (revision 1697) +++ includes/static-config.php (working copy) @@ -346,6 +346,12 @@ $config['os'][$os]['type'] = "network"; $config['os'][$os]['icon'] = "dlink";
+$os = "netgear"; +$config['os'][$os]['text'] = "Netgear Equipment"; +$config['os'][$os]['type'] = "network"; +$config['os'][$os]['icon'] = "netgear"; +$config['os'][$os]['over'][disabled] = 1; + $os = "dlinkap"; $config['os'][$os]['text'] = "D-Link Access Point"; $config['os'][$os]['type'] = "network";