I have installed a fresh copy of Nagios Log Server then looked in Nagios Exchange to find Add-Ons -> Dashboards. I found dashboards for Nagios Hosts, Services, Notifications, and Stats. I found this was all in a package on GitHub: T-M-D/NLS-Collection (https://github.com/T-M-D/NLS-Collection). The instructions for this were found here: https://assets.nagios.com/downloads/nag ... Server.pdf. Here are the steps:
# Nagios Core Filter
* This filter takes the Nagios Core log data and stores it into many fields
* This filter works with Nagios xi as it uses Nagios Core in the backend
* Full documentation on how to use this filter can be located here:
* https://assets.nagios.com/downloads/nag ... Server.pdf
* To create the filter in Nagios Log Server
* Administration > Global Configuration > Filters > Add Filter
* Your Nagios server will need to send the log data tagged as "nagios_core" for this filter to work
* To confgure your Nagios server to do this, execute the following commands on your Nagios server (replace xxx.xxx.xxx.xxx with your Nagios Log Server address)
* curl -s -O http://xxx.xxx.xxx.xxx/nagioslogserver/ ... p-linux.sh
* sudo bash setup-linux.sh -s xxx.xxx.xxx.xxx -p 5544 -f "/usr/local/nagios/var/nagios.log" -t nagios_core
However, when I look at the dashboards, I see the tables this created, but there is no data populated. When I do a query for type="Nagios_core" on a blank dashboard, I have data, but these dashboards are not showing any data. Does anyone else use these dashboards to help me troubleshoot what is happening here?
Using Nagios Log Server to show Nagios xi dashboard
-
- Posts: 33
- Joined: Fri Sep 21, 2018 10:52 am
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
Re: Using Nagios Log Server to show Nagios xi dashboard
I believe the query you want is
Code: Select all
type:nagios_core