Page 1 of 1
Windows log file monitoring
Posted: Tue Mar 22, 2016 10:47 am
by bsivavani
Hi Support,
We have a requirement to monitor windows log file(Text file). I have tried to implement check_logfiles.exe in windows, but PAR module is not installing because of some proxy settings.
Can you please suggest best approach to achieve this functionality.
Re: Windows log file monitoring
Posted: Tue Mar 22, 2016 11:20 am
by hsmith
Have you looked in to
Nagios Log Server? You can set up NXLog to send the logs to Nagios Log Server. It's a great product.
Re: Windows log file monitoring
Posted: Tue Mar 22, 2016 12:50 pm
by bsivavani
Yes. I have looked at given link, but customer is looking for plugin to achieve the functionality. Please let us know if there is any available plugin for this.
Re: Windows log file monitoring
Posted: Tue Mar 22, 2016 1:53 pm
by scottwilkerson
The best one for this I know of is
https://exchange.nagios.org/directory/P ... es/details
It comes in both a Windows and Linux variety
Re: Windows log file monitoring
Posted: Thu Mar 24, 2016 9:19 am
by bsivavani
Thanks for the update.
I am trying to do windows log file monitoring using NRPE with below command, but I am facing below error while running
[root@XXXX ~]# /usr/local/nagios/libexec/check_nrpe -H YYYY -c check_logfile -a file='C:\test.log' "warn=column1 LIKE 'error'"
Failed to open file: C:\test.log
[root@XXXX ~]#
Please find attached nsclient.ini file and let us know how to proceed with this kind of issue.
Re: Windows log file monitoring
Posted: Thu Mar 24, 2016 10:47 am
by rkennedy
It might be a permission issue of the file test.log -- can you run this on the windows machine, and post back the result?
Also, can you take a look at the nsclient log file, and see if there is anything related to you running that check?
Re: Windows log file monitoring
Posted: Thu Mar 24, 2016 10:58 am
by bsivavani
Below is output
C:\Program Files (x86)\WinZip>icacls C:\test.log
C:\test.log: The system cannot find the file specified.
Successfully processed 0 files; Failed processing 1 files
C:\Program Files (x86)\WinZip>
Re: Windows log file monitoring
Posted: Thu Mar 24, 2016 12:56 pm
by tmcdonald
I see you have opened up an email ticket for this, so we will continue communication via email. I will be closing this thread now.