monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: syntax errors with “check program” fo r custom bash script


From: s contini
Subject: Re: syntax errors with “check program” fo r custom bash script
Date: Mon, 17 Jun 2013 13:40:51 -0700 (PDT)

ok, mystery solved!

never put .sh files in /etc/monit.d -- that dir is for .conf files only

:)

thank you everyone who responded to help out!

sadie




From: Jan-Henrik Haukeland <address@hidden>
To: This is the general mailing list for monit <address@hidden>
Sent: Friday, June 14, 2013 6:30 PM
Subject: Re: syntax errors with “check program” for custom bash script

Hm, I'm not able to reproduce this, but here are a few pointers

1. check program myscript with path "/usr/bash /etc/monit.d/script_to_run.sh"

This is currently not allowed, the path must only contain the full path to your script without any arguments.

2. Instead of doing Monit reload, do a Monit quit and start again.

3. Make sure that the user running Monit has permission to execute the script


On Jun 15, 2013, at 2:32 AM, s contini <address@hidden> wrote:

> yep, execute bit set too.
>
> From: Jan-Henrik Haukeland <address@hidden>
> To: This is the general mailing list for monit <address@hidden>
> Sent: Friday, June 14, 2013 3:30 PM
> Subject: Re: syntax errors with “check program” for custom bash script
>
>
> On Jun 15, 2013, at 12:25 AM, Jan-Henrik Haukeland <address@hidden> wrote:
>
> > check program was introduced in Monit 5.5
>
> My bad, it was introduced in 5.3, so 5.4 is fine. Check that you have the execute bit set on the script. I.e. chmod 755 /etc/monit.d/script_to_run.sh
> --
> To unsubscribe:
> https://lists.nongnu.org/mailman/listinfo/monit-general
>
>
> --
> To unsubscribe:
> https://lists.nongnu.org/mailman/listinfo/monit-general


--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general



reply via email to

[Prev in Thread] Current Thread [Next in Thread]