search for: check_logfiles

Displaying 1 result from an estimated 1 matches for "check_logfiles".

2012 Aug 04
2
find errors in a directory of files
...w files are always being created in the directory and it's not possible to know the exact names of the files before they are created. The purpose of this is to create service checks in nagios. Because you don't know the names of the files ahead of time traditional plugins like check_logs or check_logfiles.plwon't work. Here's what I was able to come up with: #!/bin/bash log1='/u01/app/oracle/admin/ecom/udump/*' crit1=($(grep 'ORA-00600' $log1)) crit2=($(grep 'ORA-04031' $log1)) crit3=($(grep 'ORA-07445' $log1)) if [ $crit1 ] ; then echo "$crit...