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
Nagios Monitoring for Application Logs
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Nagios Monitoring for Application Logs
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.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
-
phani.kolli
- Posts: 24
- Joined: Tue Nov 19, 2013 2:49 pm
Re: Nagios Monitoring for Application Logs
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
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
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Nagios Monitoring for Application Logs
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
http://exchange.nagios.org/directory/Plugins/Log-Files
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
-
phani.kolli
- Posts: 24
- Joined: Tue Nov 19, 2013 2:49 pm
Re: Nagios Monitoring for Application Logs
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
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
-
phani.kolli
- Posts: 24
- Joined: Tue Nov 19, 2013 2:49 pm
Re: Nagios Monitoring for Application Logs
I am planning to use check_log3.pl
Re: Nagios Monitoring for Application Logs
Start with the following document:
http://assets.nagios.com/downloads/nagi ... ios_XI.pdf
http://assets.nagios.com/downloads/nagi ... ios_XI.pdf
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.
-
phani.kolli
- Posts: 24
- Joined: Tue Nov 19, 2013 2:49 pm
Re: Nagios Monitoring for Application Logs
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)
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
Could you post the full check you are attempting to run?
Have you tried running it from the cli (outside of nagios)?
Have you tried running it from the cli (outside of nagios)?
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.
-
phani.kolli
- Posts: 24
- Joined: Tue Nov 19, 2013 2:49 pm
Re: Nagios Monitoring for Application Logs
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.
OUTPUT: CHECK_NRPE: Socket timeout after 30 seconds.