On Tue, 24 Sep 2002, Andy Diller wrote: > Sep 24 08:34:17 koi mon[252109]: mail.alert not found in one of > (@alerttdirs[/usr/local/lib/mon/alert.d]) Sep 24 08:34:17 koi mon[252109]:
I'd consider this something of a bug in mon, to discern between and properly inform the user about the fact that the file is readable but is not executable. The attached patch addresses the latter, which should suffice for most cases. At least it gives a clearer message that should point people in the right direction of where to look. andrew
--- mon.orig Sat Sep 8 06:42:05 2001 +++ mon.alert-patch Tue Sep 24 12:40:58 2002 @@ -4162,7 +4162,7 @@ } } if (!$found) { - syslog ('err', "$monitor not found in one of (\@scriptdirs[@scriptdirs])"); + syslog ('err', "$monitor not found or not executable in one of +(\@scriptdirs[@scriptdirs]). Check permissions."); } } } @@ -4189,7 +4189,7 @@ } } if (!$found) { - syslog ('err', "$alert not found in one of (\@alerttdirs[@alertdirs])"); + syslog ('err', "$alert not found or not executable in one of +(\@alerttdirs[@alertdirs]). Check permissions."); } } }