[Linux-ha-dev] Re: [PATCH] ldirectord: Add continuous logging of
service checks
Simon Horman
horms at verge.net.au
Wed Mar 26 22:10:37 MDT 2008
On Wed, Mar 26, 2008 at 04:15:10PM +0100, Julius Volz wrote:
> Hi,
>
> This patch (already reviewed by Horms) implements a continuous logging
> mechanism for real service checks in ldirectord. This is useful for
> analyzing when and why real services were down or for statistical purposes.
>
> A log file may be specified for each virtual section using a new
> "monitorfile = <filename>" directive. Default is no logging. The log format
> is as follows:
>
> <unix timestamp>|<pid>|<real_service_id>|<status>|<received / message>
>
> The "<received / message>" part is service-type specific and may contain the
> contents received from the service or an error message. Currently, only
> check_http() sets this field to something useful, default is "-". Adding
> useful messages for other service checks is encouraged ;)
>
> An example of a log line:
> 1206443690|16083|negotiate:http:tcp:172.xx.xx.xx
> :8001:::1:gate:\/ok\.html:OK|up|OK
Thanks, this change looks good to me. I will merge it.
--
Horms
More information about the Linux-HA-Dev
mailing list