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:35:25 +0000

Hey James,

I'm not sure if it just be course you're missing the " " around the script.
If you take a look at the documentation, it's there.

http://mmonit.com/monit/documentation/monit.html#program_status_testing

Cheers

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]