Windows log file monitoring

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
bsivavani
Posts: 339
Joined: Tue Oct 06, 2015 9:17 am

Windows log file monitoring

Post 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.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Windows log file monitoring

Post 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.
Former Nagios Employee.
me.
bsivavani
Posts: 339
Joined: Tue Oct 06, 2015 9:17 am

Re: Windows log file monitoring

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Windows log file monitoring

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
bsivavani
Posts: 339
Joined: Tue Oct 06, 2015 9:17 am

Re: Windows log file monitoring

Post 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.
You do not have the required permissions to view the files attached to this post.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Windows log file monitoring

Post 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?

Code: Select all

icacls C:\test.log
Also, can you take a look at the nsclient log file, and see if there is anything related to you running that check?
Former Nagios Employee
bsivavani
Posts: 339
Joined: Tue Oct 06, 2015 9:17 am

Re: Windows log file monitoring

Post 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>
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Windows log file monitoring

Post 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.
Former Nagios employee
Locked