KevinKrumbiegel / check_gitlab

Nagios plugin for doing a GitLab health check
GNU General Public License v3.0
6 stars 5 forks source link

Allow missing health checks w/o flagging as unknown #4

Open kfiresmith opened 1 year ago

kfiresmith commented 1 year ago

This is probably beyond me as a Python dabbler, but I think it may be nice to make the check more flexible in how --check-all behaves.

Currently if a statically defined check does not have a matching GitLab health API subject, that check is flagged w/ UNKNOWN status as a monitoring plugin should do when it cannot parse output.

My proposal would be to either by default, or as an option setting (eg --ignore-missing), allow --check-all to skip any checks that don't map to a health API subject.

Perhaps as part of the 'OK' response, it could also return something like 'API doesn't include checks foo, and bar'. And to help flag for future health API changes, it could also return something like 'API includes unmonitored subject foo' when it discovers a health subject that we don't already check for.