|Mohamed Sadok Ben Jazia
|Re: Monit Output
|Mon, 13 Feb 2017 16:55:46 +0100
Thanks guys, these give me some great options!LorneOn Mon, Feb 13, 2017 at 6:05 AM, Smith, Graham - Computing Technical Officer <address@hidden> wrote:--
A dirty hack if you just want output in raw html, you could leverage a few command
line utilities like such as ccze to colourise output and aha to wrap that in html.
Something like this:
monit status servername | egrep ‘load|memory’ | ccze | aha > /vaw/www/html/servername.html
And then just run that on a cron every 5 minutes or whatever you need.
It’s not a graph per se but it’s quick and easy and you can use stylesheets with aha.
Although the xml output as already mentioned looks like a better place to start for a
full graphical output. You’d probably need to feed that data into something like rrdtool:
or Grafana which is very popular at the moment:
Department of Computing
Institute of Technology Tallaght
From: monit-general [mailto:monit-general-bounces+
graham.smith=address@hidden ngnu.org] On Behalf Of Lorne Wanamaker
Sent: 11 February 2017 11:09
To: This is the general mailing list for monit <address@hidden>
Subject: Monit Output
Trying to find some documentation on Monit output. What i would like to do is have our client portal fetch monit output and than graph it so it is visible in the clients service area.
Specifically load, ram, cpu, and disk use.
Anybody know the best way to accomplish this, or a doc on it?
The contents and any attachment of this e-mail are private and confidential.
They are intended only for the use of the intended addressee. If you are not the intended addressee, or the person responsible for delivering it to the intended addressee, you are notified that any copying, forwarding, publication, review or delivery of this e-mail or any attachments to anyone else or any other use of its contents is strictly prohibited. You are prohibited from reading any part of this e-mail or any attachments. If you have received this e-mail in error, please notify the system manager. Unauthorised disclosure or communication or other use of the contents of this e-mail or any part thereof may be prohibited by law and may constitute a criminal offence. Internet e-mails are not necessarily secure. The Institute does not accept responsibility for changes made to this message after it was sent. Unless stated to the contrary, any opinions expressed in this message are personal to the author and may not be attributed to the Institute.
|[Prev in Thread]
|[Next in Thread]