Windows Log Monitoring (Time)

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
FrancisNagios
Posts: 58
Joined: Tue Apr 09, 2019 6:54 am

Windows Log Monitoring (Time)

Post by FrancisNagios »

HI all,

How to monitor an alert on a windows 2003 server if a LOG is not updated in X minutes with the nagios agent installed on the windows server in Nagios XI?

I have tried to search for documentation for this procedure without success.
I think it may be possible with check_log or check_logfile or via command check_nrpe.

Edit:
I found this command (check_files via NSClient++ ): https://support.nagios.com/kb/article/f ... s-783.html
In the forum I have now found this post: https://support.nagios.com/forum/viewto ... es#p322913

If it is with the above command, what are the steps to follow?

Thank You!!!!
Best Regards
Francis
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Windows Log Monitoring (Time)

Post by ssax »

From that KB article it lists this:
Make Sure Files Exists That Were Modified In The Last Two Hours

Code: Select all

./check_nrpe -H 10.25.11.3 -c check_files -a path='E:\\ServerFolders\\NoBackup\\Junk' pattern=*.* 'filter= written > -2h' 'crit= count < 1' 'empty-state=critical' 'empty-syntax=${status}: No files found'
Do you have NSClient++ installed on the system? If so, which version? (you can find it listed next to the program in add/remove programs in the control panel of the windows system)

Code: Select all

./check_nrpe -H 10.25.11.3 -c check_files -a path='E:\\ServerFolders\\NoBackup\\Junk' pattern=yourfilename.ext 'filter= written > -5m' 'crit= count < 1' 'empty-state=critical' 'empty-syntax=${status}: No files found'

Attach your nsclient.ini or NSC.ini from the remote windows system if the above command isn't working for you.

https://nsclient.org/download/
FrancisNagios
Posts: 58
Joined: Tue Apr 09, 2019 6:54 am

Re: Windows Log Monitoring (Time)

Post by FrancisNagios »

Thank you very much for the information, as soon as the client can prove it but it is the information that I needed.

Thank You!!!!
Best Regards
Francis
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Windows Log Monitoring (Time)

Post by ssax »

No problem, let us know if you have any issues, if you do, attach your nsclient.ini file.
Locked