show what modules there are (useless, indeed!)

git-svn-id: http://www.observium.org/svn/observer/trunk@2227 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2011-05-03 16:55:52 +00:00
parent e7ac916423
commit 02a9089584
2 changed files with 34 additions and 0 deletions

View File

@@ -10,6 +10,8 @@ if ($_SESSION['userlevel'] < '7')
$panes['ports'] = 'Port Settings';
$panes['apps'] = 'Applications';
$panes['alerts'] = 'Alerts';
$panes['modules'] = 'Modules';
if ($config['enable_services'])
{

View File

@@ -0,0 +1,32 @@
<?php
echo('<div style="margin: 0px 10px; width: 500px; float: left;">');
$i=0;
echo('<div style="padding:4px 0px 4px 8px;" class=graphhead>Poller Modules</div>');
echo('<table width="100%" cellpadding=5>');
foreach($config['poller_modules'] as $module => $module_status)
{
if (!is_integer($i/2)) { $bg_colour = $list_colour_a; } else { $bg_colour = $list_colour_b; }
echo('<tr bgcolor="'.$bg_colour.'"><td><b>'.$module.'</b></td><td>'.($module_status ? '<span class=green>enabled</span>' : '<span class=red>disabled</span>' ).'</td></tr>');
$i++;
}
echo('</table>');
echo('</div>');
echo('<div style="margin: 0px 10px; width: 500px; float: right;">');
$i=0;
echo('<div style="padding:4px 0px 4px 8px;" class=graphhead>Discovery Modules</div>');
echo('<table width="100%" cellpadding=5>');
foreach($config['discovery_modules'] as $module => $module_status)
{
if (!is_integer($i/2)) { $bg_colour = $list_colour_a; } else { $bg_colour = $list_colour_b; }
echo('<tr bgcolor="'.$bg_colour.'"><td><b>'.$module.'</b></td><td>'.($module_status ? '<span class=green>enabled</span>' : '<span class=red>disabled</span>' ).'</td></tr>');
$i++;
}
echo('</table>');
echo('</div>');
?>