alerts not found in 99.2 -help-
Hello: I'm upgrading mon from an old version of mon to .99.2 on tru64. We are using perl 5.6.0. Everything is fine, except that for some reason I _cannot_ get mon to read alerts in alert.d directory. Then it begins to even refuse to see the mail.alerts which are untouched. Did something in the mon.cf file format change? I use two alerts-- the mail.alert for problems and a custom 'service availability' alert (nesavail.alert) that is called every 10min, plus an upalert which also calls the nesavail.alert. I've gone thru a complete fresh install of mon twice, and torn apart the main mon script (playing with paths) to try and get mon to read the alerts which are plainly there. Here is the syslog output of mon starting: ... 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]: nesavail.alert not found in one of (@alerttdirs[/usr/local/lib/mon/alert.d]) Sep 24 08:34:17 koi mon[252109]: nesavail.alert not found in one of (@alerttdirs[/usr/local/lib/mon/alert.d]) 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]: mon server started here is how I'm starting mon to test: mon@koi:~>$ MONHOME=/usr/local/lib/mon mon@koi:~>$ export MONHOME mon@koi:~>$ ./mon -c etc/mon.cf -A $MONHOME/etc/auth.cf -b `pwd` and finally, here is a sample of a watch in my mon.cf: watch listserv service smtp interval 10m monitor smtp3.monitor -t 30 period wd {Mon-Sun} alertevery 4h alertafter 2 30m alert mail.alert mon-listserv@isc period wd {Mon-Sun} alertevery 10m alert nesavail.alert upalert nesavail.alert Why is mon refusing to acknowledge these alerts which is plainly there in the alert.d directory? _Andy Diller_ Sudan & Acid ___ mon mailing list [EMAIL PROTECTED] http://linux.kernel.org/mailman/listinfo/mon
Re: alerts not found in 99.2 -help- (fwd)
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.origSat 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."); } } }
Re: alerts not found in 99.2 -help- (fwd)
Ok, they needed the execute bit set. Sigh.. thanks! --On Tuesday, September 24, 2002 9:56 AM -0400 David Nolan <[EMAIL PROTECTED]> wrote: > My first guess would be a permissions problem. Either the alerts aren't > executable, or they aren't readable by the user your mon server is > running as. (Or the directory isn't readable, etc.) > > Have you verified the permissions are set correctly? > > > -David Nolan > Network Software Developer > Computing Services > Carnegie Mellon University _Andy Diller_ Sudan & Acid ___ mon mailing list [EMAIL PROTECTED] http://linux.kernel.org/mailman/listinfo/mon
Re: alerts not found in 99.2 -help- (fwd)
--On Tuesday, September 24, 2002 8:55 AM -0400 Andy Diller <[EMAIL PROTECTED]> wrote: > Why is mon refusing to acknowledge these alerts which is plainly there in > the alert.d directory? My first guess would be a permissions problem. Either the alerts aren't executable, or they aren't readable by the user your mon server is running as. (Or the directory isn't readable, etc.) Have you verified the permissions are set correctly? -David Nolan Network Software Developer Computing Services Carnegie Mellon University ___ mon mailing list [EMAIL PROTECTED] http://linux.kernel.org/mailman/listinfo/mon
alerts not found in 99.2 -help- (fwd)
Hello: I'm upgrading mon from an old version of mon to .99.2 on tru64. We are using perl 5.6.0. Everything is fine, except that for some reason I _cannot_ get mon to read alerts in alert.d directory. Then it begins to even refuse to see the mail.alerts which are untouched. Did something in the mon.cf file format change? I use two alerts-- the mail.alert for problems and a custom 'service availability' alert (nesavail.alert) that is called every 10min, plus an upalert which also calls the nesavail.alert. I've gone thru a complete fresh install of mon twice, and torn apart the main mon script (playing with paths) to try and get mon to read the alerts which are plainly there. Here is the syslog output of mon starting: ... 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]: nesavail.alert not found in one of (@alerttdirs[/usr/local/lib/mon/alert.d]) Sep 24 08:34:17 koi mon[252109]: nesavail.alert not found in one of (@alerttdirs[/usr/local/lib/mon/alert.d]) 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]: mon server started here is how I'm starting mon to test: mon@koi:~>$ MONHOME=/usr/local/lib/mon mon@koi:~>$ export MONHOME mon@koi:~>$ ./mon -c etc/mon.cf -A $MONHOME/etc/auth.cf -b `pwd` and finally, here is a sample of a watch in my mon.cf: watch listserv service smtp interval 10m monitor smtp3.monitor -t 30 period wd {Mon-Sun} alertevery 4h alertafter 2 30m alert mail.alert mon-listserv@isc period wd {Mon-Sun} alertevery 10m alert nesavail.alert upalert nesavail.alert Why is mon refusing to acknowledge these alerts which is plainly there in the alert.d directory? _Andy Diller_ ___ mon mailing list [EMAIL PROTECTED] http://linux.kernel.org/mailman/listinfo/mon