Hello Martin, You are right , in this server I have an older version.
Thank you ! P Il giorno 08/mag/2014, alle ore 17:23, Martin Pala <[email protected]> ha scritto: > Hello, > > what Monit version it is? The "check program" was added in Monit 5.3. > > Regards, > Martin > > > On 08 May 2014, at 16:16, Paspao <[email protected]> wrote: > >> 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' >> >> test.php is executable and contains : >> >> #!/usr/bin/php -q >> <?php >> $err=1 ; >> if($err != 0) exit(1); >> ?> >> >> If I run it in shell I get the correct $? of 0 or 1 >> >> Anyone knows how to solve this? >> >> Thank you >> P. >> >> -- >> To unsubscribe: >> https://lists.nongnu.org/mailman/listinfo/monit-general > > -- > To unsubscribe: > https://lists.nongnu.org/mailman/listinfo/monit-general
-- To unsubscribe: https://lists.nongnu.org/mailman/listinfo/monit-general
