On Fri, Jul 13, 2012 at 7:15 PM, Moshe Elisha
<address@hidden> wrote:
Thanks! I will look into it.
Please add this is a feature request for future releases so I won't need to patch every time I upgrade Monit.
Thanks again!
On Fri, Jul 13, 2012 at 7:00 PM,
<address@hidden> wrote:
Send monit-general mailing list submissions to
address@hidden
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.nongnu.org/mailman/listinfo/monit-general
or, via email, send a message with subject or body 'help' to
address@hidden
You can reach the person managing the list at
address@hidden
When replying, please edit your Subject line so it is more specific
than "Re: Contents of monit-general digest..."
Today's Topics:
1. Re: Get status of a single process using HTTP
(Jan-Henrik Haukeland)
----------------------------------------------------------------------
Message: 1
Date: Thu, 12 Jul 2012 20:27:44 +0200
From: Jan-Henrik Haukeland <address@hidden>
To: This is the general mailing list for monit
<address@hidden>
Subject: Re: Get status of a single process using HTTP
Message-ID: <address@hidden>
Content-Type: text/plain; charset=iso-8859-1
It is all or nothing. But if you know a little bit of C it is easy to add this. See src/http/cervlet.c and the function print_status. As you can see we currently loop through the service-list and print all services by calling status_service_txt. Support for getting the status of a single service is a matter of adding an extra "service" parameter to the URL and check for the presence of this parameter and then call status_service_txt directly ala;
status_service_txt(Util_getService(get_parameter(req, "service")), res, 0)
On Jul 12, 2012, at 5:04 PM, Moshe Elisha wrote:
> Hello,
>
> I know I can get the status of all Monit processes by executing a request to http://MONIT_HOST:MONIT_PORT/_status and even pass format=xml.
>
> I have a Monit with many many many processes. I am interested in the status of an individual process but I would like to avoid requesting the status of all processes and than find the one process I am interested in.
>
> Is there something like http://MONIT_HOST:MONIT_PORT/MY_PROCESS?action="" which can give me the status of a single process (text or xml)?
------------------------------
_______________________________________________
monit-general mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/monit-general
End of monit-general Digest, Vol 114, Issue 10
**********************************************