Hello,
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:
--8<--
wait.tv_sec = time(NULL) + Run.polltime;
--8<--
You can modify it to run once per hour this way:
--8<--
wait.tv_sec = time(NULL) + 3600;
--8<--
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)
Regards,
Martin
On Apr 16, 2013, at 2:17 PM, "Holder, Shane" <[email protected]> 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?
>
> Thanks,
>
> Shane Holder | [email protected]
> Solutions Architect | AmerisourceBergen Specialty Group
> 3101 Gaylord Parkway, 2W-E131 | Frisco, TX 75034
> (469)365-7727
>
> 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:
> https://lists.nongnu.org/mailman/listinfo/monit-general
--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general