Check the permissions on the full path to the alert.d directory i.e. ls -ld /usr/ ls -ld /usr/local/ ls -ld /usr/local/lib/ ls -ld /usr/local/lib/mon/ ls -ld /usr/local/lib/mon/alert.d/ ls -l /usr/local/lib/mon/alert.d/mail.alert
And make sure that the user that runs mon has rights to read and execute on these directories and the mail.alert file... I've had problems before on other applications where a directory farther up the path was permissioned off to just the owner having read/write/execute and nobody else and it broke anything trying to access a something farther down... -----Original Message----- From: Andy Diller [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 24, 2002 9:30 AM To: [EMAIL PROTECTED] Subject: more mon alert wierdness Hello: As a quick follow-up to my last post, here is mon in debug mode. It KNOWS that alert.d is the alert dir. Yet it still refuses to use the alerts that I have put in my mon.cf. mon@koi:~>$ ./mon -d -c etc/mon.cf basedir [/usr/local/lib/mon] cfbasedir [/usr/local/lib/mon/etc] cf [/usr/local/lib/mon/etc/mon.cf] statedir [/usr/local/lib/mon/state.d] logdir [/usr/local/lib/mon/log.d] authfile [/usr/local/lib/mon/etc/auth.cf] ocfile [/usr/local/lib/mon/etc/oncall.cf] userfile [monusers.cf] dtlogfile [/usr/local/lib/mon/log.d/downtime.log] historicfile[] monerrfile [/dev/null] scriptdir [/usr/local/lib/mon/mon.d] alertdir [/usr/local/lib/mon/alert.d] M ping.monitor=[/usr/local/lib/mon/mon.d/ping.monitor] M http.monitor=[/usr/local/lib/mon/mon.d/http.monitor] M smtp3.monitor=[/usr/local/lib/mon/mon.d/smtp3.monitor] 0 1 2 ---------------- mon[378771]: mail.alert not found in one of(@alerttdirs[/usr/local/lib/mon/alert.d]) mon[378771]:nesavail.alert not found in one of (@alerttdirs[/usr/local/lib/mon/alert.d]) mon[378771]: nesavail.alert not found in one of (@alerttdirs[/usr/local/lib/mon/alert.d]) mon[378771]: mail.alert not found in one of (@alerttdirs[/usr/local/lib/mon/alert.d]) Sep 24 10:21:53 koi mon[378771]: mon server started Sep 24 10:21:57 koi mon[378771]: caught TERM signal, exiting _______________________________________________ mon mailing list [EMAIL PROTECTED] http://linux.kernel.org/mailman/listinfo/mon _______________________________________________ mon mailing list [EMAIL PROTECTED] http://linux.kernel.org/mailman/listinfo/mon