[Top][All Lists]

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

Re: Configuring a warning using a shell script

From: Jan-Henrik Haukeland
Subject: Re: Configuring a warning using a shell script
Date: Fri, 2 May 2014 23:19:39 +0200

The status of a check program is collected in the next poll cycle and then 
updated in M/Monit. The reason why it is so is discussed in more detail here, 

On 02 May 2014, at 23:01, Jason Levitt <address@hidden> 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:
> 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/"
>      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

reply via email to

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