logfile monitoring

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
MSPk
Posts: 317
Joined: Fri Aug 24, 2012 12:03 am

logfile monitoring

Post 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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: logfile monitoring

Post by abrist »

Just to clarify, you are looking to monitor an actual logfile and not the windows event log, is this correct?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
MSPk
Posts: 317
Joined: Fri Aug 24, 2012 12:03 am

Re: logfile monitoring

Post by MSPk »

yes, that is correct
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: logfile monitoring

Post 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
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
MSPk
Posts: 317
Joined: Fri Aug 24, 2012 12:03 am

Re: logfile monitoring

Post 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...!!!
You do not have the required permissions to view the files attached to this post.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: logfile monitoring

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked