[Top][All Lists]

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

Re: FYI: monit status output

From: Martin Pala
Subject: Re: FYI: monit status output
Date: Mon, 16 Feb 2004 23:35:10 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040122 Debian/1.6-1

Jan-Henrik Haukeland wrote:
As mentioned, I plan to hack the status output and add XML output. In
the process I suggest that the status is simplified quite a bit,
actually it *needs* to be simplified to a common denominator. This
means that only the following common attributes are considered when
status is printed for each service:
    type {process, file, device, directory, host}, name, status {0,1}
    and monitor status {0,1}.

Where 0 means FALSE, i.e. either the service is down or an IF-test
failed for the service. 1 means that that the service is up and
everything is ok.

The XML output will look like this:

<?xml version="1.0" encoding="ISO-8859-1"?>
<uptime>String</uptime> </monit-server>

and running "monit status" from the command line can produce this
simplified text output: (If a service is not monitored, the text "not
monitored" is printed *instead* of the status (which is unknown))

  The monit daemon uptime: 28d 12m

  Process 'apache':       running
  Process 'sybase':       not running
  File 'httpd.bin':       not monitored
  Host '':  available
  Host '':  not available or has errors
  Device hda5:            accessible
  Directory /etc:         not accessible or has errors

Finally the current URL: http://localhost:2812/name?action=status
which prints the text status for the service 'name' is replaced with
this url: http://localhost:2812/_status?output=<type> where <type> is
either xml or text (at the moment). The new URL prints the status for
all monitored services.

Unless there are comments or objections to this proposal, I'm going to
implement the changes outlined above.

Looks good. The html output will be default, when the specifier is ommited?


reply via email to

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