MAJOR: agent: rework the response processing and support additional actions
authorWilly Tarreau <w@1wt.eu>
Mon, 9 Dec 2013 19:51:51 +0000 (20:51 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 23 May 2014 13:42:49 +0000 (15:42 +0200)
commit81f5d94a0be1341c9d1dd9be8358d064bcb25ac5
tree1d9c9d37c4707378d35d188c2a85cc2210096329
parentcf2924bc2537bb08cca81a3d9261ddb3293b1410
MAJOR: agent: rework the response processing and support additional actions

We now retrieve a lot of information from a single line of response, which
can be made up of various words delimited by spaces/tabs/commas. We try to
arrange all this and report whatever unusual we detect. The agent now supports :
  - "up", "down", "stopped", "fail" for the operational states
  - "ready", "drain", "maint" for the administrative states
  - any "%" number for the weight
  - an optional reason after a "#" that can be reported on the stats page

The line parser and processor should move to its own function so that
we can reuse the exact same one for http-based agent checks later.
doc/configuration.txt
src/checks.c