pmlogger: auto-reconnect to pmcd whenever possible
commit695da0b90ff32e53c080e7666d07cac1f3065af1
authorNathan Scott <nathans@redhat.com>
Fri, 24 Jun 2016 05:01:24 +0000 (24 15:01 +1000)
committerNathan Scott <nathans@redhat.com>
Fri, 24 Jun 2016 05:01:24 +0000 (24 15:01 +1000)
treea049be8c25a0f76f87eb8648a039e4ea2b3a5ef6
parent9613f182e9df099011a0531365b8a3df69119b8c
pmlogger: auto-reconnect to pmcd whenever possible

Extend Dave's consistency checking to also allow pmlogger
to reconnect automatically to pmcd (just like pmie always
has).

This is important for the common case of a pmcd restart on
a host monitored by a central pmlogger farm.  Previously,
we were open to some minutes of missed data until the cron
pmlogger_check kicked in - now it is instantaneous.

Its worth noting that we still always start a new pmlogger
with each new day, even with this change in place.

Verify the auto-reconnection and presence of a mark record
via the qa/389 test script.
qa/389
qa/389.out
src/pmlogger/src/check.c
src/pmlogger/src/fetch.c
src/pmlogger/src/logger.h
src/pmlogger/src/pmlogger.c