1.) Check that files pamalm.txt, pamhold.txt, and pamsec.txt are available in directory e:\eas\server\batch\import\fwia\ on specific servers at 11:30 pm M – F. Send notification to Support only once.
I was thinking of using something like this:
Code: Select all
./check_nrpe -H eas1t -t 30 -c CheckFiles -a path="e:\\eas\server\batch\import\fwia\*.txt" max-dir-depth=0 MinCrit=02.) Check to make sure file e:\eas\server\log\alloc.log is not open for more than 5 minutes on server. Once that is tested they will up the time to around 2 hours.
I looked around for a "file open" plugin but didn't find anything that looked to fit the bill. I didn't know if check_nrpe had anything that could help or if anyone else is doing something that could help out with what I am trying to accomplish. I am trying to check to make sure the application didn't hang. The way I was thinking of doing it was watch the log file. When the application is processing the files it writes to this log file. This is a long process but shouldn't take long than 2 hours. I've heard it has taken a little over an hour to process everything. So if I could see that the log file was in use and have the service check initially for 5 minutes and then change that to 120 minutes or a little less to see if it was still in use or being written to and if so send out the notificaion.