As a result of issue
#202, we can ask for the status for members of a specific service group since Monit 5.14.
I'd like to be able to do the same from the API.
curl --user admin:monit -s -X GET 'Accept: application/xml' 'http://localhost:2812/_status?format=xml&level=full&group=www'
As it is now, the group parameter is ignored.
With tcpdump I can observe that
&group=www does have the desired effect for
format=text, which is what the monit cli tool sends to the back-end when running
monit -g www status
Curiously, the same command line tool does not communicate the group to the back-end for the start action.
monit -g www start, I can see individual start commands being sent to the HTTP back-end, instead of passing a single start command with the name of the group.
monit -g nosuchgroup start replies with "Group 'nosuchgroup' not found", without sending a single request to the HTTP back-end.
I'm puzzled as to how the cli tool knows the members of a group.