- changed status to closed
networkTimeout per service
Issue #804
closed
Is it possible to have a default networkTimeout of 5 seconds but have different networkTimeout per check?
Comments (4)
-
repo owner -
reporter Thank you for your reply. What is the correct syntax?
if failed port 25 protocol smtp timeout 15 then restart
or
if failed port 25 protocol smtp timeout 15 seconds then restart
-
reporter I think the correct syntax is:
if failed port 25 protocol smtp timeout 15 seconds then restart
or
if failed port 25 protocol smtp with timeout 15 seconds then restart
But I want to make sure.
-
repo owner both should work, the "with" is optional
- Log in to comment
Yes, see the connection test's "timeout" option: https://mmonit.com/monit/documentation/monit.html#CONNECTION-TESTS