<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<div class="moz-cite-prefix">On 9/02/2015 23:50, SebA wrote:<br>
</div>
<blockquote
cite="mid:!&!AAAAAAAAAAAuAAAAAAAAAL60wriLM9cRsTVojW0AAAABAFEdQVQs6tMRsLEAoMxarIMAAAABk2cAABAAAAC+Qa5Q0RLfSaZcUqR5uOp1AQAAAAA=@syntec.co.uk"
type="cite">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<meta name="GENERATOR" content="MSHTML 9.00.8112.16584">
<div dir="ltr" align="left"><font size="2" face="Arial"><span
class="602313812-09022015">Hi Adam,</span></font></div>
<div> </div>
<div><span class="602313812-09022015"><font size="2" face="Arial">We
are using Cambridge University's DRBD Xymon script from
here:</font></span></div>
<div><span class="602313812-09022015"><font size="2" face="Arial"><a
moz-do-not-send="true"
href="http://www.ch.cam.ac.uk/computing/drbd-xymon-script">http://www.ch.cam.ac.uk/computing/drbd-xymon-script</a></font></span></div>
<div><span class="602313812-09022015"></span> </div>
<div><span class="602313812-09022015"><font size="2" face="Arial">It
works well for status colours, but it does not do graphing
as far as I know.</font></span></div>
<div><span class="602313812-09022015"></span> </div>
<div><span class="602313812-09022015"><font size="2" face="Arial">Output
is simple, like this:</font></span></div>
<div><span class="602313812-09022015"></span> </div>
<div><span class="602313812-09022015">
<h3>Mon Feb 9 12:46:14 2015 - drbd OK</h3>
<pre>version: 8.3.10 (api:88/proto:86-96)
<img moz-do-not-send="true" alt="green" src="http://89.222.2.9/xymon/gifs/green.gif" height="16" width="16" border="0"> cluster_metadata [/dev/drbd0] is happy
<img moz-do-not-send="true" alt="green" src="http://89.222.2.9/xymon/gifs/green.gif" height="16" width="16" border="0"> vg0_drbd [/dev/drbd1] is happy
</pre>
</span></div>
</blockquote>
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).<br>
<br>
<blockquote
cite="mid:!&!AAAAAAAAAAAuAAAAAAAAAL60wriLM9cRsTVojW0AAAABAFEdQVQs6tMRsLEAoMxarIMAAAABk2cAABAAAAC+Qa5Q0RLfSaZcUqR5uOp1AQAAAAA=@syntec.co.uk"
type="cite">
<div><span class="602313812-09022015">
<pre>
<font face="Arial">Which is probably just as well, as I wouldn't know what dw was! What is it, and why should we be monitoring it?</font></pre>
</span></div>
<!-- Converted from text/rtf format --><br>
</blockquote>
<tt>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.<br>
<br>
You can see the full meaning of each statistic at:<br>
<a class="moz-txt-link-freetext" href="https://drbd.linbit.com/users-guide/ch-admin.html">https://drbd.linbit.com/users-guide/ch-admin.html</a><br>
<br>
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.<br>
<br>
Regards,<br>
Adam<br>
</tt>
</body>
</html>