[Xymon] DRBD monitoring
SebA
spah at syntec.co.uk
Mon Feb 9 14:59:09 CET 2015
Hi Adam,
OK, thanks for the extra info. It certainly looks like your script is an
improvement in several ways. It would certainly be preferable to avoid
using sudo, especially if one is monitoring the sudolog. We do not have
problems with our drbd device performance (touch wood!), but thanks for
sharing your script with us. If we are setting up any new servers for drbd
I will try your script first.
Kind regards,
SebA
_____
From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of Adam Goryachev
Sent: 09 February 2015 13:13
To: xymon at xymon.com
Subject: Re: [Xymon] DRBD monitoring
On 9/02/2015 23:50, SebA wrote:
Hi Adam,
We are using Cambridge University's DRBD Xymon script from here:
http://www.ch.cam.ac.uk/computing/drbd-xymon-script
It works well for status colours, but it does not do graphing as far as I
know.
Output is simple, like this:
Mon Feb 9 12:46:14 2015 - drbd OK
version: 8.3.10 (api:88/proto:86-96)
green <http://89.222.2.9/xymon/gifs/green.gif> cluster_metadata
[/dev/drbd0] is happy
green <http://89.222.2.9/xymon/gifs/green.gif> vg0_drbd [/dev/drbd1] is
happy
While this script is probably very useful, it seems to make three calls to
the command drbdadm for each resource, while you could simply read all of
the information from /proc/drbd without a single external program call.
(would also mean you don't need sudo access).
Which is probably just as well, as I wouldn't know what dw was! What is it,
and why should we be monitoring it?
dw is for Disk Write, dr is Disk Read, etc, these graphs can show you how
busy your DRBD devices are. Some of the other stats will show how much data
is sent/received to/from the DRBD peer, also, how often the data is outside
of the active DRBD area (which might assist with tuning DRBD for better
performance but increasing the size of the active area, or splitting your
DRBD into multiple parts), etc.
You can see the full meaning of each statistic at:
https://drbd.linbit.com/users-guide/ch-admin.html
Of course, I'm not trying to convince you that my script/work is any better
or more reliable than what you are using, I didn't know that script even
existed. I am hoping that either my script will be helpful to somebody else,
and/or that someone might find a problem or improvement to my script and
share that.
Regards,
Adam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20150209/cf3d9c29/attachment.html>
More information about the Xymon
mailing list