Check logs that rotate

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
certo85
Posts: 2
Joined: Wed Jun 27, 2012 9:19 am

Check logs that rotate

Post by certo85 »

Hi,
i need a suggestion, i have to monitor some logs into a directory (on a windows server) to search a pattern.
I know the directory but i don't know the logs name.

I searched a plugin that can help me but i didn't found.

thx
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Check logs that rotate

Post by abrist »

I dug around for one too, but all I could find were eventlog monitors, not ones specific to greping text files for strings. You may have to code up a custom solution. You could use nsclient to fire off a script that performs your needed operations. You could use check_by_ssh with cygwin and custom script as well.
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