monit-general
[Top][All Lists]
Advanced

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

SV: Problem with check program


From: David Bjørnsten-Lindhard
Subject: SV: Problem with check program
Date: Mon, 4 Jun 2012 09:37:24 +0000

Whoops, sorry - I can see now you're also missing the word "with" in your syntax.
That's properly the reason ;)

You need:

check program myscript with path "/usr/local/bin/myscript.sh"
Missing.................................. ^^^^


Cheers David

Fra: monit-general-bounces+address@hidden [monit-general-bounces+address@hidden på vegne af James Millar address@hidden
Sendt: 4. juni 2012 11:14
Til: address@hidden
Emne: Problem with check program


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.

reply via email to

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