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 <[email protected]>
To: This is the general mailing list for monit <[email protected]> 
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 <[email protected]> wrote:

> yep, execute bit set too.
> 
> From: Jan-Henrik Haukeland <[email protected]>
> To: This is the general mailing list for monit <[email protected]> 
> 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 <[email protected]> 
> 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
--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general

Reply via email to