Files
librenms-librenms/html/includes/common/syslog.inc.php

28 lines
700 B
PHP
Raw Normal View History

<?php
2015-08-18 18:52:57 +02:00
$common_output[] = '
<table id="sysloglog" class="table table-hover table-condensed table-striped">
<thead>
<tr>
2015-08-18 19:03:59 +02:00
<th data-column-id="timestamp" data-order="desc">Datetime</th>
<th data-column-id="device_id">Hostname</th>
2015-08-18 18:52:57 +02:00
<th data-column-id="program">Program</th>
2015-08-18 19:03:59 +02:00
<th data-column-id="msg">Message</th>
2015-08-18 18:52:57 +02:00
</tr>
</thead>
</table>
<script>
var syslog_grid = $("#syslog").bootgrid({
ajax: true,
post: function ()
{
return {
id: "syslog",
device: "' .mres($vars['device']) .'",
type: "' .mres($vars['type']) .'",
};
},
url: "ajax_table.php"
});
</script>
';