Page 1 of 1

How can monintor a specific log file

Posted: Thu Apr 11, 2013 3:23 pm
by rayj
Hi There
I want to use nagiox monitor a specific log file. Could you tell me how to config it? thanks

Re: How can monintor a specific log file

Posted: Thu Apr 11, 2013 3:27 pm
by slansing
Hello,

There are a number of plugins related to this on our exchange:

http://exchange.nagios.org/directory/Plugins/Log-Files

For instance this plugin:

http://exchange.nagios.org/directory/Pl ... es/details

Is the log file you are attempting to monitor on a remote host? If so, you may need to configure NRPE on that host, and then place the plugin there, and once that is configured call it from Nagios XI, let us know if you need help with this.

Re: How can monintor a specific log file

Posted: Thu Apr 11, 2013 4:24 pm
by rayj
thanks, I download file and add in NagiosXI plug-in. I can configure the new command and add the new service. But I don't know how can configure it to monitor a specific log file.

For example: I want to monitor server name: Server1 , c:\logfolder\ aa.log file how can I setting for monitor it?

Re: How can monintor a specific log file

Posted: Thu Apr 11, 2013 4:53 pm
by slansing
Okay, so you are trying to monitor a log file on a windows server? For that you will need to first install NSClient++ and configure it properly:

http://assets.nagios.com/downloads/nagi ... _Agent.pdf

http://assets.nagios.com/downloads/nagi ... Client.pdf

From here, it does not look like anyone has written a plugin to parse text out of a file and return a return code based on what it matches with your arguments, which are the basics of any plugin for Nagios. You may need to write your own, if you are looking for event log monitoring there are tons of options available. Now, on the Linux side many people have written log parsing plugins.