Page 1 of 3
Nagios Monitoring for Application Logs
Posted: Thu Jan 30, 2014 6:17 pm
by phani.kolli
Team,
We would like to setup a NagiosXI to monitor Application server logs in real-time.
We would like to get Nagios alert/notification whenever there is a "Unloading Class sun.reflect" string/line appears in Application logs in Real-time.
Could you please assist me on this.
Thanks
Re: Nagios Monitoring for Application Logs
Posted: Fri Jan 31, 2014 1:41 pm
by sreinhardt
There are many ways to do this, generally you would have an agent on those systems, and use that to actively monitor the log files. Why don't you start with what OS you are planning on monitoring, and what type of logs.
Re: Nagios Monitoring for Application Logs
Posted: Fri Jan 31, 2014 2:08 pm
by phani.kolli
Servers are Linux
WebLogic Server 10.3.5.0
Operating System Linux x86-64
OS Version Red Hat Enterprise 5
I think, I have agent installed on this server.... Could you please provide more details on how to configure and what needs to be done...
Thanks
Re: Nagios Monitoring for Application Logs
Posted: Fri Jan 31, 2014 3:09 pm
by sreinhardt
There are still a number of different ways, especially depending on the agent you have installed. Do you know if it's nrpe, nsca, nrdp, ncpa? Otherwise I would suggest starting to look at some of the plugins that monitor log files and identify one that looks like ti will work for you. You will then need to install it, create a command for your agent to use, just like you would in nagios core. Finally setup nagios to tell the agent to check with the newly created command if it is an active agent, or tell the agent to send data to nagios if it is a passive agent.
http://exchange.nagios.org/directory/Plugins/Log-Files
Re: Nagios Monitoring for Application Logs
Posted: Fri Jan 31, 2014 3:21 pm
by phani.kolli
Thank you for the information... actually I am new to this setup/Nagios
So If possible, can you provide some incidence on how to make sure my Agent (I think its nrpe)... and how can I install the plugin and configure....(how to create/setup command ) and how can I point NagiosXI to use that...
Sorry for all
Thanks
Re: Nagios Monitoring for Application Logs
Posted: Fri Jan 31, 2014 3:35 pm
by phani.kolli
I am planning to use check_log3.pl
Re: Nagios Monitoring for Application Logs
Posted: Mon Feb 03, 2014 12:15 pm
by abrist
Re: Nagios Monitoring for Application Logs
Posted: Mon Feb 03, 2014 1:54 pm
by phani.kolli
I am getting the following error... could you please guide me on this
CIT Log File Check For a Specific StringNotifications are disabled for this service Critical 2d 19h 52m 58s 5/5 2014-02-03 10:43:59 (Service Check Timed Out)
Re: Nagios Monitoring for Application Logs
Posted: Mon Feb 03, 2014 2:09 pm
by abrist
Could you post the full check you are attempting to run?
Have you tried running it from the cli (outside of nagios)?
Re: Nagios Monitoring for Application Logs
Posted: Mon Feb 03, 2014 2:52 pm
by phani.kolli
COMMAND: /usr/local/nagios/libexec/check_nrpe -H izxuap8.ivdc.kp.org -t 30 -c check_logs
OUTPUT: CHECK_NRPE: Socket timeout after 30 seconds.