<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 9.00.8112.16584"></HEAD>
<BODY bgColor=#ffffff text=#000000>
<DIV dir=ltr align=left><SPAN class=535245013-09022015><FONT size=2
face=Arial>Hi Adam,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=535245013-09022015><FONT size=2
face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=535245013-09022015><FONT size=2 face=Arial>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.</FONT></SPAN></DIV><!-- Converted from text/rtf format -->
<P align=left><SPAN lang=en-gb><FONT size=2 face=Arial>Kind
regards,</FONT></SPAN> </P>
<P><SPAN lang=en-gb><FONT size=2 face=Arial>Seb<SPAN
class=535245013-09022015>A</SPAN> </FONT></SPAN> <BR></P>
<DIV> </DIV><BR>
<BLOCKQUOTE
style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
<DIV dir=ltr lang=en-us class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>From:</B> Xymon [mailto:xymon-bounces@xymon.com]
<B>On Behalf Of </B>Adam Goryachev<BR><B>Sent:</B> 09 February 2015
13:13<BR><B>To:</B> xymon@xymon.com<BR><B>Subject:</B> Re: [Xymon] DRBD
monitoring<BR></FONT><BR></DIV>
<DIV></DIV><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 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
href="http://www.ch.cam.ac.uk/computing/drbd-xymon-script"
moz-do-not-send="true">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 border=0 alt=green src="http://89.222.2.9/xymon/gifs/green.gif" width=16 height=16 moz-do-not-send="true" NOSEND="1"> cluster_metadata [/dev/drbd0] is happy
<IMG border=0 alt=green src="http://89.222.2.9/xymon/gifs/green.gif" width=16 height=16 moz-do-not-send="true" NOSEND="1"> 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></BLOCKQUOTE></TT></BODY></HTML>