[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Syntax error trying to check program on php script
From: |
Werner Flamme |
Subject: |
Re: Syntax error trying to check program on php script |
Date: |
Thu, 08 May 2014 16:29:20 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 |
Paspao [08.05.2014 16:16]:
> Hello,
>
> I want to monitor a PHP script but I get a Sytax error .
>
>
> This is the monit script:
>
> check program test with path "/home/user/test.php"
> if status != 0 then alert
>
> I always get
>
> /etc/monit/monitrc:23: Error: syntax error 'test'
>
[..]
>
> Anyone knows how to solve this?
Try something like
check program testprog with path "/home/user/test.php"
do not use "test" as the program name!
HTH, Werner
--
smime.p7s
Description: S/MIME Cryptographic Signature