Page 1 of 1

Need log file search log capability

Posted: Thu Jun 26, 2014 10:33 am
by intelXIadmin
Hello,

We need to search Windows some log files on a Windows system for strings to flag an alert back on our Nagios Box. I have been looking at Check_log3.exe and it seems to work from the command line in the way I am expecting. However, I can't find any information on how to implement it from my Nagios server so I can pass status back to the nagios server.

Or is there a better solution?

Nagios XI Version: R2012 R2.9
Redhat Version: 6.4

Re: Need log file search log capability

Posted: Thu Jun 26, 2014 12:31 pm
by slansing
How are you running it from the XI system? What is not functioning the way you expected it to? You are going to need to set up an agent on the windows system to execute it, otherwise you will not be able to get it's returned information to Nagios. An agent such as NSClient++, or NCPA.

Re: Need log file search log capability

Posted: Fri Jun 27, 2014 12:23 pm
by intelXIadmin
slansing wrote:How are you running it from the XI system? What is not functioning the way you expected it to? You are going to need to set up an agent on the windows system to execute it, otherwise you will not be able to get it's returned information to Nagios. An agent such as NSClient++, or NCPA.
I wasn't real clear on the question. I have an agent running on the destination, the question is how do I implement check_log3 and set up the check command?

Regards,

Randy.

Re: Need log file search log capability

Posted: Fri Jun 27, 2014 12:44 pm
by tmcdonald
I'd recommend using NCPA:

http://assets.nagios.com/downloads/ncpa ... at-is-ncpa

And the specific section on custom active checks:

http://assets.nagios.com/downloads/ncpa ... un-by-ncpa



Otherwise there is NSClient++ with NRPE:

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