mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
LOGS
git-svn-id: http://www.observium.org/svn/observer/trunk@2728 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
33
html/pages/device/logs.inc.php
Normal file
33
html/pages/device/logs.inc.php
Normal file
@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
if(!isset($vars['section'])) { $vars['section'] = "eventlog"; }
|
||||
|
||||
print_optionbar_start();
|
||||
|
||||
echo("<strong>Logging</strong> » ");
|
||||
|
||||
if ($vars['section'] == "eventlog")
|
||||
{ echo('<span class="pagemenu-selected">'); }
|
||||
echo(generate_link("Event Log" , $vars, array('section'=>'eventlog')));
|
||||
if ($vars['section'] == "eventlog") { echo("</span>"); }
|
||||
|
||||
echo(" | ");
|
||||
|
||||
if ($vars['section'] == "syslog")
|
||||
{ echo('<span class="pagemenu-selected">'); }
|
||||
echo(generate_link("Syslog" , $vars, array('section'=>'syslog')));
|
||||
if ($vars['section'] == "syslog") { echo("</span>"); }
|
||||
|
||||
switch ($vars['section'])
|
||||
{
|
||||
case 'syslog':
|
||||
case 'eventlog':
|
||||
include('pages/device/logs/'.$vars['section'].'.inc.php');
|
||||
break;
|
||||
default:
|
||||
print_optionbar_end();
|
||||
echo("<h2>Error. No section ".$vars['section'].".<br /> Please report this to observium developers.</h2>");
|
||||
break;
|
||||
}
|
||||
|
||||
?>
|
Reference in New Issue
Block a user