NETWAYS / check_logstash

Icinga check plugin to check the status of Logstash
GNU General Public License v3.0
22 stars 11 forks source link

Add check for pipeline configuration reload #70

Closed martialblog closed 1 year ago

martialblog commented 1 year ago

Adds new subcheck for pipelines to validate the last successful reload time.

I thought using a subcheck was a cleaner solution than to mix it with the inflight event checks.

Fixes #49

Code can be optimized in the future, there is some duplication. But better than wrongs abstraction.

Examples:

$ check_logstash pipeline reload
OK - Configuration successfully reloaded
 \_[OK] Configuration successfully reloaded for pipeline Foobar for on 2021-01-01T02:07:14Z

$ check_logstash pipeline reload --pipeline Example
CRITICAL - Configuration reload failed
 \_[CRITICAL] Configuration reload for pipeline Example failed on 2021-01-01T02:07:14Z
martialblog commented 1 year ago

@widhalmt FYI