[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Automate removal of hosts and all data from m/monit with a python sc

From: Martin Pala
Subject: Re: Automate removal of hosts and all data from m/monit with a python script
Date: Tue, 7 Feb 2012 09:54:16 +0100

Hi David,

you can use the M/Monit JSON interface to collect the informations about the 
Monit hosts: The host can be deleted 
via POST to http(s)://<mmonit_ip>:<mmonit_port>/admin/host/ … the content: 

The M/Monit mass removal of old hosts in the EC2 seems to be quite frequent 
request - we can extend M/Monit to automate the removal. Please can you 
describe your use case in more detail? When the host is no longer used, does it 
stop correctly (i.e. becomes "Inactive" in M/Monit) or is it simply killed 
(will have heartbeat error in M/Monit as it will be no longer responding). It 
will be probably better to switch the communication to our support email: 
address@hidden to not disclose details about your services and setup.

Best regards,

On Feb 6, 2012, at 3:58 PM, David Montgomery wrote:

> Hi,
> I am booting up and terminating ec2 instances quit frequently and I do
> not need to save reports.  I instances automatically register with
> m/monit  What can I do to remove all data for the host with a script?
> I assume the data is stored in sqllite?  If to complicate then maybee
> worth writing a script to do it but if pretty straight forward then
> beneficial. As of now I am manually removing the inactive hosts.
> Thanks
> --
> To unsubscribe:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]