atc0005 / go-nagios

Shared Golang package for Nagios plugins
MIT License
8 stars 3 forks source link

Explicitly provide state prefixes to emitted threshold values #38

Closed atc0005 closed 4 years ago

atc0005 commented 4 years ago

In the Long Service Output or "DETAILED INFO" block, go ahead and add the state prefix.

For example, instead of having the user provide this:

OK: support@example.com: No messages found in folders: Inbox, rejected_emails, Junk Email, automated_tickets_allow_overrides

Accept this instead:

support@example.com: No messages found in folders: Inbox, rejected_emails, Junk Email, automated_tickets_allow_overrides

and just append OK: ourselves.

atc0005 commented 4 years ago

Note: Technically this isn't a breaking change, but it will clash with a few projects that I maintain which depend on this package, so marking this issue as such for later quick reference.