So, the only way to have a heartbeat would be with a check that will always fail (ex: check for known non-existent file) and the reminder clause?
On Tue, Jan 24, 2017 at 12:56 PM Martin Pala <[email protected]> wrote: > Hi, > > monit sends the error event after ok->failure state change and the success > event only when the service had error and recovered. If monit is started > and the service is running fine, monit won't send any event. > > Best regards, > Martin > > > On 23 Jan 2017, at 17:59, Paul Tiseo <[email protected]> wrote: > > So, I set monitrc to the below. Not sure where I am to add the "reminder" > clause so that the heartbeat service is the one that emails me without fail > (don't want this to apply to other services). Suggestions? > > set daemon 60 with start delay 15 > set logfile /apps/monit.log > set pidfile /apps/monit.pid > set idfile /apps/monit.id > set statefile /apps/state > > set mailserver smtp.gmail.com port 587 > username "[email protected]" password "aaa" > using tlsv12 > > set httpd port 2182 > allow aaa:aaa > signature disable > > set alert [email protected] > > #-- HEARTBEAT --------------------------------------------------------- > check host agp-heartbeat address 127.0.0.1 every 2 cycles > if failed ping then alert > else if succeeded then alert > -- > Thanks. > > _______________________________ > Paul Tiseo, [email protected] > > -- > To unsubscribe: > https://lists.nongnu.org/mailman/listinfo/monit-general > > > -- > To unsubscribe: > https://lists.nongnu.org/mailman/listinfo/monit-general -- Thanks. _______________________________ Paul Tiseo, [email protected]
-- To unsubscribe: https://lists.nongnu.org/mailman/listinfo/monit-general
