[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Seperate heartbeat frequency and service monitoring interval

From: Martin Pala
Subject: Re: Seperate heartbeat frequency and service monitoring interval
Date: Thu, 18 Apr 2013 22:56:09 +0200


we plan to switch to JSON and gzip transport in the future.

As a workaround you can modify Monit to send the heartbeat less frequently ... the (polltime) schedule is in heartbeat() in src/monit.c:
                        wait.tv_sec = time(NULL) + Run.polltime;

You can modify it to run once per hour this way:

                        wait.tv_sec = time(NULL) + 3600;

On M/Monit side just extend the "acceptable report skew" settings of the given host to allow for longer communication pause (cycles count based), otherwise M/Monit will fire the heartbeat event => if your poll time is 60 seconds, set the "acceptable report skew" (in host admin) to ca. 61 (i.e. wait for 61 cycles * 60 s before firing heartbeat event)


On Apr 16, 2013, at 2:17 PM, "Holder, Shane" <address@hidden> wrote:

Hello All,
Is it possible to have a separate heartbeat frequency and service monitoring interval?  I have a low bandwidth situation and need to reduce the frequency of updates from Monit to MMonit.  This interaction is using roughly 5K per minute to transmit the XML payload.  I would like to reduce this to once or twice an hour but I need to keep the 60 second response to a service outage.  Also, are there any tips on reducing the size of the payload, JSON perhaps?
Shane Holder  |  address@hidden
Solutions Architect |  AmerisourceBergen Specialty Group
3101 Gaylord Parkway, 2W-E131  |  Frisco, TX 75034

CONFIDENTIALITY NOTICE. This electronic mail transmission may contain privileged, confidential and/or protected health information and is intended only for the review of the party to whom it is addressed.  Any unauthorized use or disclosure of the information contained herein may be a violation of federal law, including the Health Insurance Portability and Accountability Act (HIPAA). If you have received this transmission in error, please immediately return it to the sender, delete it  and destroy it without reading it. Unintended transmission shall not constitute the waiver of the attorney-client or any other privilege.


To unsubscribe:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]