[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Problem with check program
From: |
James Millar |
Subject: |
Problem with check program |
Date: |
Mon, 4 Jun 2012 19:14:47 +1000 |
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.
- Problem with check program,
James Millar <=