<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Drbd regex miss-match]]></title><description><![CDATA[<p dir="auto">Hello</p>
<p dir="auto">We are in the process of provisioning drbd and was looking to use nxagent to monitor it. It appears that the drbd status no longer matches with the expected regex strings in the agent.</p>
<p dir="auto">I will try see if I can find the correct implementation string.</p>
<p dir="auto">Regards</p>
<p dir="auto">Example from: <a href="http://www.drbd.org/users-guide-8.3/s-first-time-up.html" rel="nofollow ugc">http://www.drbd.org/users-guide-8.3/s-first-time-up.html</a></p>
<p dir="auto">cat /proc/drbd<br />
version: 8.3.0 (api:88/proto:86-89)<br />
GIT-hash: 9ba8b93e24d842f0dd3fb1f9b90e8348ddb95829 build by buildsystem@linbit, 2008-12-18 16:02:26<br />
 1: cs:Connected ro:Secondary/Secondary ds:Inconsistent/Inconsistent C r---<br />
    ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:200768</p>
<p dir="auto">Live from a deployment;<br />
cat /proc/drbd<br />
version: 8.3.11 (api:88/proto:86-96)<br />
srcversion: 21CA73FE6D7D9C67B0C6AB2</p>
<p dir="auto"> 1: cs:Connected ro:Primary/Secondary ds:UpToDate/UpToDate C r-----<br />
    ns:1081844 nr:0 dw:33336 dr:1051434 al:13 bm:64 lo:0 pe:0 ua:0 ap:0 ep:1 wo:f oos:0</p>
]]></description><link>https://forum.netxms.org/topic/2782/drbd-regex-miss-match</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 09:20:09 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/2782.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 10 Dec 2013 18:57:46 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Drbd regex miss-match on Thu, 12 Dec 2013 13:24:41 GMT]]></title><description><![CDATA[<p dir="auto">Hi!</p>
<p dir="auto">I've changed the drbd.cpp (protocol version should also work as expected). These changes are included in 1.2.10 release. Thank you for fixing it!</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/12146</link><guid isPermaLink="true">https://forum.netxms.org/post/12146</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Thu, 12 Dec 2013 13:24:41 GMT</pubDate></item><item><title><![CDATA[Reply to Drbd regex miss-match on Wed, 11 Dec 2013 12:31:41 GMT]]></title><description><![CDATA[<pre><code>       if (regcomp(&amp;pregVersion, "version: (.*) \\(api\\:([0-9].*)\\/proto\\:([0-9\\-].*)\\)", REG_EXTENDED) != 0)
                return false;


        if (regcomp(&amp;pregDevice, "^[[:space:]]*([0-9]+)\\: cs\\:(.*) ro\\:(.*)\\/(.*) ds\\:(.*)\\/(.*) ([A-Z]).*", REG_EXTENDED) != 0)
</code></pre>
<p dir="auto">This works with the exception of proto:86-89 reporting that it is 86. However trying to implement [//d-] or it does not seem to get the extended value. However to a large extent it is now working.</p>
]]></description><link>https://forum.netxms.org/post/12131</link><guid isPermaLink="true">https://forum.netxms.org/post/12131</guid><dc:creator><![CDATA[aron]]></dc:creator><pubDate>Wed, 11 Dec 2013 12:31:41 GMT</pubDate></item></channel></rss>