[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Restarting monit services through an API
From: |
Callum Macdonald |
Subject: |
Restarting monit services through an API |
Date: |
Mon, 20 Aug 2012 17:06:14 +0100 |
Holamigos,
I'd like to be able to restart a service that's managed by monit,
programmatically, from a remote host.
I was imagining something along the lines of:
https://host.domain.tld:2082/_status?format=xml
I'd like to use something like that to restart a service, rather than
simply retrieve status information. Is that possible?
I'm guessing I could generate a POST submission to the appropriate URL
based on the HTML of the status interface, but I wondered if there was a
more elegant solution. Any thoughts?
Cheers - Callum.
==
Callum Macdonald
UK mobile: +44 7968 378 810
Norway mobile: +47 9346 4422
Desk: +44 845 126 0875
www.callum-macdonald.com
- Restarting monit services through an API,
Callum Macdonald <=