Hi. Am 11.04.2012 20:43, schrieb David Montgomery: > I am trying to stress test my server. > I have a process under the control of monit and runit. > Here is my monit config file for the process > > check process pixelServer > with pidfile "/etc/sv/pixelServer/supervise/pid" > start program = "/usr/bin/sv up pixelServer" > stop program = "/usr/bin/sv kill pixelServer" > if failed host 127.0.0.1/pixel port 80 protocol HTTP then exec "sv > up pixelServer" > depends on nginx. > > Here is the log.... > > I am checking process every 10 seconds. > > [UTC Apr 11 18:29:37] error : Error: Could not execute sv > [UTC Apr 11 18:29:47] error : 'pixelServer' failed, cannot open a > connection to INET[127.0.0.1/pixel:80] via TCP
I read the other answers and wondered why nobody mentioned the IF FAILED URL notation? From you example, I think this is exacly what you should use. See http://mmonit.com/monit/documentation/monit.html#connection_testing_using_the_url_notation for documentation. - Bernd
signature.asc
Description: OpenPGP digital signature
-- To unsubscribe: https://lists.nongnu.org/mailman/listinfo/monit-general
