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
Windows Log Monitoring (Time)
Re: Windows Log Monitoring (Time)
From that KB article it lists this:
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)
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/
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'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)
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
Thank You!!!!
Best Regards
Francis
Re: Windows Log Monitoring (Time)
No problem, let us know if you have any issues, if you do, attach your nsclient.ini file.