Another issue you may encounter is that the alert notification will come an hour late because it evaluates the last execution only on the next scheduled execution. You are much better off writing a wrapper that is called more frequently but that only calls the underlying program at intervals of your choosing (and returns 0 otherwise), this will also give you the ability to drop privileges and provide arguments to the program. Hopefully these issues will be resolved in a future release of monit.
-----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Ivan Danyliuk Sent: Wednesday, July 10, 2013 9:21 AM To: [email protected] Subject: Initial resources check Hi all, I have resource which I want to check once per hour. With default interval of 10 seconds, I use following rule: check program some-check-script with path "/path/to/some-check.script.sh" timeout 86400 seconds if status != 0 then alert every 360 cycles It works and checks hourly, but with initial 1 hour delay. On initial monit start, I want this program to be checked on the very start of monit, and not after an hour. So, the question is - how to tell monit to run this check at the startup? Regards -- To unsubscribe: https://lists.nongnu.org/mailman/listinfo/monit-general -- To unsubscribe: https://lists.nongnu.org/mailman/listinfo/monit-general
