I love the nagios plugin API. It is easy and successful.
The exit-status of the check can have these values:
- 0: ok
- 1: WARN
- 2: ERR
- 3: Unkown
See: https://assets.nagios.com/downloads/nagioscore/docs/nagioscore/3/en/pluginapi.html
AFAIK there is a way that a single check script can return several results in one call.
Up to now I could not find docs for this API.
Or is there no official API for "one call returns several results"?