Hello Adam,

adding an option to Monit configuration would be tricky - the hostgroups are 
managed on M/Monit side, so if you’ll want for example to rename the hostgroup 
or delete it, you’ll have to change configuration of all Monit agents which 
refer to it first (it could be even hundreds of hosts).

Instead we recommend the HTTP-API, which can be used to implement simple script 
for automatic hostgroup extension when new host is deployed: 
http://mmonit.com/documentation/http-api/Methods/Admin_Groups 
<http://mmonit.com/documentation/http-api/Methods/Admin_Groups>

Regards,
Martin


> On 19 Nov 2014, at 04:54, K. Adam Wolfe <[email protected]> wrote:
> 
> sorry if this has already been covered.  I've read quite a bit of the mmonit 
> documentation but i'm not seeing anyway to have a node tell mmonit it is in a 
> server group.
> 
> is it possible to do?  something like:
> 
> "set mmonit http://monit:[email protected]:8080/collector
>   mmonit-group apache_servers"
> 
> in the end what I am trying to do is simply avoid manually adding and 
> managing groups from the mmonit gui.
> 
> --
> To unsubscribe:
> https://lists.nongnu.org/mailman/listinfo/monit-general

--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general

Reply via email to