Monit has a feature called "service groups" (https://mmonit.com/monit/documentation/monit.html#SERVICE-GROUPS). It allows you to filter by groups using the CLI. But is it possible to use this filter on the web frontend?
Asked
Active
Viewed 35 times
1 Answers
2
The Webfrontend does not handle groups, but is available via the CLI with "monit -g NAME COMMAND" for some commands.
![](../../users/profiles/974017.webp)
lutzmad
- 71
- 3
-
I just stumbled across these lines in the source code, which seem to handle a `group` HTTP parameter: https://bitbucket.org/tildeslash/monit/src/master/src/http/cervlet.c#lines-2619. But I don't know how to pass that parameter. Passing by query (`?group=xyz`) doesn't work. – thomas.mc.work Jul 13 '22 at 18:51
-
You see groups the service is assigned to in the Webfrontend, but there is no way to query the services are assigned to a group via the group name. The CLI (the monit command) can do this by using "-g" only. – lutzmad Jul 15 '22 at 10:44
-
Check the issues list, this is a requested function but not available yet. Feel free to vote for https://bitbucket.org/tildeslash/monit/issues/1007/output-result-not-filtered-by-group-when. A suggestion only. – lutzmad Jul 15 '22 at 10:48