Splunk on Nagios (To monitor Nagiosxi)

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
KiwiBloke
Posts: 81
Joined: Fri Apr 27, 2012 7:23 pm

Splunk on Nagios (To monitor Nagiosxi)

Post by KiwiBloke »

Hi,

We have Nagiosxi and we also have Splunk. We use both independently, with a little bit of overlap depending on whats best for what.

What I would like to do is have a fallback for Nagiosxi (as we use Nagiosxi to monitor Splunk services and processes). So i plan to install the Splunk universal forwarder onto the Nagiosxi server and create a server profile for it so that I can manage it via the Splunk deployment server.

All we need/want to do is monitor the various Nagiosxi log files. and then monitor them within Splunk for errors. Can you advise which log files we should be targeting and perhaps what would be some basic things to watch for? (other than things like "error")

Cheers,

KB
yancy
Posts: 523
Joined: Thu Oct 06, 2011 10:12 am

Re: Splunk on Nagios (To monitor Nagiosxi)

Post by yancy »

KiwiBloke,

you'll probably want to start with nagios.log and nagios.debug

Code: Select all

/usr/local/nagios/var/nagios.log
/usr/local/nagios/var/nagios.debug
Also, depending on the granularity, you can change the logging level as defined here:

http://nagios.sourceforge.net/docs/3_0/configmain.html

I also noticed you can have Nagios log to syslog which may simplify things for use with Splunk.

-Yancy
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Splunk on Nagios (To monitor Nagiosxi)

Post by abrist »

For system health:
dmesg or /var/log/messages - mostly looking for "seg fault"

Performance data:
/usr/local/nagios/var/perfdata.log - Looking for timeouts: "TIMEOUT: Please check your npcd.cfg"
/usr/local/nagios/var/npcd.log - Looking for max load threshold warnings: "NPCD: WARN: MAX load reached:"

Apache logs:
/var/log/httpd/error_log - Looking for "Error", and you could most likely overlook the warnings.
/var/log/httpd/access_log - May be useful if you use ssl only, or wish to see a certain IPs usage of XI.

Nagios Core log:
/usr/local/nagios/var/nagios.log - this list of things to watch out for in here is big, and rather environment specific. Many of the things were alerting of will start with "Error".

Mysqld:
/var/log/mysqld.log - Looking for "crashed"
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
KiwiBloke
Posts: 81
Joined: Fri Apr 27, 2012 7:23 pm

Re: Splunk on Nagios (To monitor Nagiosxi)

Post by KiwiBloke »

Hi,

Thanks guys this is great stuff.

Cheers,

KB.
Locked