[Top][All Lists]

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

Re: Get status of a single process using HTTP

From: Jan-Henrik Haukeland
Subject: Re: Get status of a single process using HTTP
Date: Thu, 12 Jul 2012 20:27:44 +0200

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=status 
> which can give me the status of a single process (text or xml)?

reply via email to

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