On 12/1/06, Steven Schubiger <[EMAIL PROTECTED]> wrote:

> > When testing your alert are you also passing the other options that
> > Mon sets when calling an alert?  i.e. '-g group -s service -h "list of
> > hosts here"', etc...  (See the Mon man page for full documentation.)
>
> No, I haven't, assuming it wasn't necessary. I'll give it a try.
>

Looking at your script it should be an issue, you're not checking for
errors from getopt (for extra unparsed args..)

> > What user do you run mon as?  Have you tested su'ing to that user and
> > running the script?
>
> -rwxr-xr-x  1 root root 111458 2003-05-28 10:25 mon
>

Who owns the file on disk is not necessarily the same as the user the
process is running as.  Run 'ps waux | grep mon' or similar...  Since
you're trying to open /dev/ttyS1 you need to make sure that device is
writable by the user mon is executing as.

> > Can you post a copy of your script for us to look at?  (without any
> > SMS numbers, of course...)
>
> Sure, here you go:
>

I don't see any issues with the script offhand...  Did you try adding
debugging code near the 'no connection with serial port' case?

If you're still having issues, post your mon.cf snippet next...

-David

_______________________________________________
mon mailing list
mon@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/mon

Reply via email to