Hi David, you can use the M/Monit JSON interface to collect the informations about the Monit hosts: http://mmonit.com/wiki/MMonit/HTTP-API. The host can be deleted via POST to http(s)://<mmonit_ip>:<mmonit_port>/admin/host/ … the content: "id=<hostid>&Delete=1"
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: [email protected] to not disclose details about your services and setup. Best regards, Martin 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: > https://lists.nongnu.org/mailman/listinfo/monit-general -- To unsubscribe: https://lists.nongnu.org/mailman/listinfo/monit-general
