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
Splunk on Nagios (To monitor Nagiosxi)
Re: Splunk on Nagios (To monitor Nagiosxi)
KiwiBloke,
you'll probably want to start with nagios.log and 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
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.debughttp://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
Re: Splunk on Nagios (To monitor Nagiosxi)
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"
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.
"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.
Re: Splunk on Nagios (To monitor Nagiosxi)
Hi,
Thanks guys this is great stuff.
Cheers,
KB.
Thanks guys this is great stuff.
Cheers,
KB.