mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 08:02:41 +02:00
LOGS
git-svn-id: http://www.observium.org/svn/observer/trunk@2728 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -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