All Apps and Add-ons

Does the Splunk For Nagios app support Check_MK?

dchristensen
New Member

I'm trying to use Splunk For Nagios to pull data through the MK livestatus configuration in Check_MK. Does Splunk for Nagios support Check_MK server? Do I still need to configure a universal forwarder (as described in Nagios Configuration (Required) section of the documentation) to pull data from Check_MK on the Check_MK server even though I'm trying to use MK Livestatus? I've successfully completed all the steps under MK Livestatus Integration in the documentation for Splunk For Nagios app, but I'm still unable to pull data into Splunk.

Tags (1)
0 Karma

jschlachet_splu
Splunk Employee
Splunk Employee

I just recently installed the Nagios App to see what I could do with our check_mk multisite data. I've got it working - some of the dashboards don't work quite right, but the data is there. Here's what I did.

  1. Installed the app per its documentation
  2. Edited the check_mk server's forwarder inputs.conf to point to the nagios.log, host and service perf logs of all sites.
  3. Edited the path and file name of the redirected output in each site's commands.cfg (e.g., /opt/omd/sites/$SITE/var/log/service-perfdata.log)
  4. Created a props/transforms conf changes on the search head to extract the OMD site based on the file path

Some of the dashboards work just fine, mostly ignoring the OMD site separation between hosts. I'm much more of a data user than a dashboard user, though. Now I can do things like count the number of distinct hosts down per OMD site. One of those visualizations that provides joy, immediately followed by regret.

inputs.conf:

[monitor:///opt/omd/sites/.../var/nagios/nagios.log]
index = nagios
sourcetype = nagios
[monitor:///opt/omd/sites/.../var/log/host-perfdata.log]
index = nagios
sourcetype = nagioshostperf
[monitor:///opt/omd/sites/.../var/log/service-perfdata.log]
index = nagios
sourcetype = nagiosserviceperf

props.conf

[nagios]
REPORT-extract_nagios_omdsite = nagios_omdsite
EXTRACT-nagios_event = ^[^ \n]* (?P\w+\s+\w+)
[nagiosserviceperf]
REPORT-extract_nagios_omdsite = nagios_omdsite
EXTRACT-nagios_event = ^[^ \n]* (?P\w+\s+\w+)
[nagioshostperf]
REPORT-extract_nagios_omdsite = nagios_omdsite
EXTRACT-nagios_event = ^[^ \n]* (?P\w+\s+\w+)

transforms.conf

[nagios_omdsite]
CLEAN_KEYS = 0
REGEX = \/opt\/omd\/sites\/(?\w+)\/
SOURCE_KEY = source

0 Karma
Get Updates on the Splunk Community!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...