Handle multiple `-g` options correctly

Issue #975 new
Ulrich Windl created an issue

When using multiple -g options, like in monit -g server -g network status only the last group (network) is selected.

So either:

  • Output an error if multiple -g options were found, or
  • combine them (“any of”)

Possible enhancement request: Allow flexible combinations of groups, like -g !network meaning everything but group network, -g A -g+B meaning checks in either “group A or group B, -g A -g-B meaning “those checks in group A, but not those in group B ”.

Comments (0)

  1. Log in to comment