Minor fix and tweak for graylog integration (#15455)

* Minor fix and tweak for graylog integration

* More flexible in other use cases

* fix again?
This commit is contained in:
Wheel
2023-11-02 04:35:44 +01:00
committed by GitHub
parent 9ca95a9ba5
commit f0bbab2419
7 changed files with 22 additions and 4 deletions

View File

@@ -29,6 +29,7 @@ $tmp_output = '
<thead>
<tr>
<th data-column-id="severity" data-sortable="false"></th>
<th data-column-id="origin">Origin</th>
<th data-column-id="timestamp" data-formatter="browserTime">Timestamp</th>
<th data-column-id="level">Level</th>
<th data-column-id="source">Source</th>

View File

@@ -57,7 +57,7 @@ if (\LibreNMS\Config::get('enable_syslog') == 1) {
}
}
if (\LibreNMS\Config::get('graylog.port')) {
if (\LibreNMS\Config::get('graylog.server')) {
echo ' | ';
if ($vars['section'] == 'graylog') {
echo '<span class="pagemenu-selected">';