Page 1 of 1

logfile monitoring

Posted: Tue Jun 18, 2013 11:34 am
by MSPk
We are trying to monitor a logfile in a windows server for a specific test "some text". I'm trying to understand if the check_logfile plugin reads the enitre file every time a check is executed or does it look for the expression starting from the location where it finished in the previous check? the reason I ask this question is the logfile we wish to monitor stores the logs over a period of time and scaning the entire file evrytime might eat up a lot of time.

Also, Please suggest the rite logfile checking plugin for windows.

Re: logfile monitoring

Posted: Tue Jun 18, 2013 4:20 pm
by abrist
Just to clarify, you are looking to monitor an actual logfile and not the windows event log, is this correct?

Re: logfile monitoring

Posted: Tue Jun 18, 2013 7:22 pm
by MSPk
yes, that is correct

Re: logfile monitoring

Posted: Wed Jun 19, 2013 11:45 am
by abrist
Could you please link to the check_logfile plugin mentioned?
Additionally, there are a large number of windows logfile plugins:
http://exchange.nagios.org/index.php?op ... %20windows

Re: logfile monitoring

Posted: Fri Jun 21, 2013 6:10 am
by MSPk
This is the file I have downloaded from nagios, It seems that this plugin should be run on the remote host using nrpe however I dont find in the documentation on how this should be installed on windows environment.
check_logfiles-3.5.3.2.zip
I have downloaded the file from the exchnage (click below link)

http://labs.consol.de/nagios/check_logfiles/

Under the installation instaructions it says
Under Windows you build the plugin with perl winconfig.pl. This will result in plugins-scripts/check_logfiles.
The file README.exe contains instructions how to build a Windows ninary check_logfiles.exe.
but I'm not able to open the read.exe file...!!!

Re: logfile monitoring

Posted: Fri Jun 21, 2013 10:02 am
by abrist
MSPk wrote:but I'm not able to open the read.exe file...!!!
Right click on the file and open it in notepad. Or rename it to README.txt.