2015-08-01 15:36:15 +00:00
|
|
|
<?php
|
2017-12-24 21:57:54 +02:00
|
|
|
/*
|
|
|
|
* This program is free software: you can redistribute it and/or modify it
|
|
|
|
* under the terms of the GNU General Public License as published by the
|
|
|
|
* Free Software Foundation, either version 3 of the License, or (at your
|
|
|
|
* option) any later version. Please see LICENSE.txt at the top level of
|
|
|
|
* the source code distribution for details.
|
|
|
|
*
|
|
|
|
* @package LibreNMS
|
|
|
|
* @subpackage webui
|
|
|
|
* @link http://librenms.org
|
|
|
|
* @copyright 2017 LibreNMS
|
|
|
|
* @author LibreNMS Contributors
|
|
|
|
*/
|
2015-08-19 18:03:43 +02:00
|
|
|
|
2015-08-21 18:04:12 +02:00
|
|
|
$common_output[] = '
|
2015-08-31 21:33:57 +00:00
|
|
|
<div class="table-responsive">
|
|
|
|
<table id="syslog" class="table table-hover table-condensed table-striped">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2017-12-24 21:57:54 +02:00
|
|
|
<th data-column-id="label"></th>
|
|
|
|
<th data-column-id="timestamp" data-order="desc">Timestamp</th>
|
|
|
|
<th data-column-id="level">Level</th>
|
2015-08-31 21:33:57 +00:00
|
|
|
<th data-column-id="device_id">Hostname</th>
|
|
|
|
<th data-column-id="program">Program</th>
|
|
|
|
<th data-column-id="msg">Message</th>
|
2017-12-24 21:57:54 +02:00
|
|
|
<th data-column-id="priority">Priority</th>
|
2015-08-31 21:33:57 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
</table>
|
|
|
|
</div>
|
2015-08-18 18:52:57 +02:00
|
|
|
<script>
|
2015-08-19 18:03:43 +02:00
|
|
|
|
2015-08-21 18:04:12 +02:00
|
|
|
var syslog_grid = $("#syslog").bootgrid({
|
2015-08-18 18:52:57 +02:00
|
|
|
ajax: true,
|
2017-06-09 04:10:30 +01:00
|
|
|
rowCount: [50, 100, 250, -1],
|
2015-08-18 18:52:57 +02:00
|
|
|
post: function ()
|
|
|
|
{
|
|
|
|
return {
|
2018-09-20 15:33:03 -05:00
|
|
|
device: "' . addcslashes($vars['device'], '"') . '",
|
|
|
|
program: "' . addcslashes($vars['program'], '"') . '",
|
|
|
|
priority: "' . addcslashes($vars['priority'], '"') . '",
|
|
|
|
to: "' . addcslashes($vars['to'], '"') . '",
|
|
|
|
from: "' . addcslashes($vars['from'], '"') . '",
|
2015-08-18 18:52:57 +02:00
|
|
|
};
|
|
|
|
},
|
2019-05-20 11:47:34 -05:00
|
|
|
url: "' . url('/ajax/table/syslog') . '"
|
2015-08-18 18:52:57 +02:00
|
|
|
});
|
2015-08-19 18:03:43 +02:00
|
|
|
|
2015-08-18 18:52:57 +02:00
|
|
|
</script>
|
2015-08-20 11:31:00 +02:00
|
|
|
';
|