Hi Jason,
Are you sure that Monit is able tonrun the script? Can you please provide the
source of your script?
I had an issue like this before few months ago.
Thanks.
On 2. května 2014 23:01:02 CEST, Jason Levitt <[email protected]> wrote:
>I'm trying to configure a simple warning using a bash script.
>I used the example at the bottom of this page as a starting
>point: http://mmonit.com/wiki/Monit/ConfigurationExamples
>
>My bash script outputs an exit status:
>
>exit $number
>
>I've run the script manually (it's mode 777), and it outputs nothing,
>but
>has an exit status that is non-zero.
>
>Then in my monitrc file, I have:
>
>check program CheckQueueSize with path "/var/opt/qcheck.sh"
> if status > 5 then alert
>
>In M/Monit, it shows Program "CheckQueueSize" with status "Status ok"
>with
>0 Events and the light is green.
>
>However, when I run the shell script manually, it always outputs
>numbers
>greater than 5.
>
>Is the shell script not being executed? Or is M/Monit just not warning
>me?
>I'm confused.
>
>J
>
>
>------------------------------------------------------------------------
>
>--
>To unsubscribe:
>https://lists.nongnu.org/mailman/listinfo/monit-general
--
Odesláno z mého telefonu s Androidem pomocí pošty K-9 Mail. Omluvte prosím moji
stručnost.
--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general