monit-general
[Top][All Lists]
Advanced

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

Re: Problem with check program


From: Martin Pala
Subject: Re: Problem with check program
Date: Mon, 4 Jun 2012 11:54:33 +0200

Hello,

the "check program" requires Monit >= 5.3.

Regards,
Martin


On Jun 4, 2012, at 11:14 AM, James Millar wrote:

> 
> Was hoping that someone could help me with the following problem:
> 
> Control File:
> 
> check program myscript path /home/user/test2.sh 
> if status == 1 then alert
> 
> The script has:
> 
> $ cat test2.sh 
> #!/bin/bash
> echo test
> exit $?
> 
> 
> 
> When running monit I get the following:
> 
> $ monit
> /home/user/.monitrc:13: Error: syntax error 'myscript'
> 
> 
> Am using:
> 
> $ monit -V
> This is Monit version 5.2.1
> Copyright (C) 2000-2010 by Tildeslash Ltd. All Rights Reserved.
> 
> 
> Any help would be much appreciated. Thanks.
> --
> To unsubscribe:
> https://lists.nongnu.org/mailman/listinfo/monit-general




reply via email to

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