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!

Enterprise Security Content Update (ESCU) | New Releases

In September, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...

New in Observability - Improvements to Custom Metrics SLOs, Log Observer Connect & ...

The latest enhancements to the Splunk observability portfolio deliver improved SLO management accuracy, better ...

Improve Data Pipelines Using Splunk Data Management

  Register Now   This Tech Talk will explore the pipeline management offerings Edge Processor and Ingest ...