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


-- 

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general

Reply via email to