<div dir="ltr">Just done a little digging and found the following in Xymon... it seems that it has worked for a day or so and then decided not to.<div>Weird...<br><br><div>Mon Aug 29 22:10:14 2016<span class="" style="white-space:pre">   </span>blue<span class="" style="white-space:pre">      </span>1 days 15:21:40</div><div>Mon Aug 29 10:58:17 2016<span class="" style="white-space:pre">    </span>red<span class="" style="white-space:pre">       </span>11:11:57</div><div>Sat Aug 27 10:58:13 2016<span class="" style="white-space:pre">   </span>green<span class="" style="white-space:pre">     </span>2 days 0:00:04</div><div>Wed Aug 24 17:19:56 2016<span class="" style="white-space:pre">     </span>blue<span class="" style="white-space:pre">      </span>2 days 17:38:17</div><div>Wed Aug 24 17:19:14 2016<span class="" style="white-space:pre">    </span>red<span class="" style="white-space:pre">       </span>0:00:42</div><div>Tue Aug 23 17:14:15 2016<span class="" style="white-space:pre">    </span>green<span class="" style="white-space:pre">     </span>1 days 0:04:59</div><div>Tue Aug 23 17:09:49 2016<span class="" style="white-space:pre">     </span>blue<span class="" style="white-space:pre">      </span>0:04:26</div><div>Tue Aug 23 17:09:12 2016<span class="" style="white-space:pre">    </span>red<span class="" style="white-space:pre">       </span>0:00:37</div><div>Tue Aug 23 17:04:11 2016<span class="" style="white-space:pre">    </span>green<span class="" style="white-space:pre">     </span>0:05:01</div><div>Tue Aug 23 16:43:42 2016<span class="" style="white-space:pre">    </span>blue<span class="" style="white-space:pre">      </span>0:20:29</div><div>Tue Aug 23 16:32:20 2016<span class="" style="white-space:pre">    </span>red<span class="" style="white-space:pre">       </span>0:11:22</div><div>Tue Aug 23 16:24:17 2016<span class="" style="white-space:pre">    </span>green<span class="" style="white-space:pre">     </span>0:08:03</div><br><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><table border="0" cellpadding="0" cellspacing="0" width="360" style="color:rgb(0,0,0);font-family:Helvetica"><tbody><tr><td style="border-top:1px solid rgb(153,153,153)"><font color="#FF8700" face="Helvetica, Arial, sans-serif" style="line-height:25px;font-size:12px"><strong>Rich Jones</strong> | Web Developer</font></td></tr><tr><td style="border-top:1px solid rgb(153,153,153);padding:10px 0px"><font color="#999999" face="Helvetica, Arial, sans-serif" style="line-height:15px;font-size:12px">Corporation Pop<br>21-23 Shudehill<br>Manchester M4 2AF<br>0161 838 0808</font></td></tr><tr><td style="border-top:1px solid rgb(153,153,153)"><font color="#999999" face="Helvetica, Arial, sans-serif" style="line-height:25px;font-size:12px"><a href="http://www.corporationpop.co.uk/" style="color:rgb(255,135,0);text-decoration:none" target="_blank">www.corporationpop.co.uk</a></font></td></tr><tr><td style="border-top:1px solid rgb(153,153,153);padding:10px 0px 0px"><span style="color:rgb(153,153,153);font-family:Helvetica,Arial,sans-serif;font-size:x-small;line-height:11px">This email message (and any attached file) is intended only for the use of the individual or entity to whom the sender intended it to be addressed and may contain information that constitutes a trade secret, or that is privileged, confidential or subject to copyright. No part of it may be circulated, quoted, or reproduced without prior written approval from Corporation Pop Ltd. The contents of this document are strictly confidential and owned by Corporation Pop Ltd. Copyright © Corporation Pop Ltd. All rights reserved. Corporation Pop is a limited company registered in England + Wales. Company number 4869229. VAT number 533 8932 26.</span><br></td></tr></tbody></table></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On 31 August 2016 at 09:04, Richard Jones <span dir="ltr"><<a href="mailto:rich@corporationpop.co.uk" target="_blank">rich@corporationpop.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Gave that a shot, and I get back the following:<div><br><div>whois <a href="http://problemdomain1.co.uk" target="_blank">problemdomain1.co.uk</a> | egrep -i "Expires.*:|Expiration.*:|<wbr>Renewal.*:|expir.*date:"<br></div><div><p><span>        Expiry date:  06-Nov-2016</span></p><p><span>whois <a href="http://okaydomain.co.uk" target="_blank">okaydomain.co.uk</a> | egrep -i "Expires.*:|Expiration.*:|<wbr>Renewal.*:|expir.*date:"</span></p><p><span>        Expiry date:  05-Jun-2018</span></p><p><span>whois <a href="http://problemdomain2.uk" target="_blank">problemdomain2.uk</a> | egrep -i "Expires.*:|Expiration.*:|<wbr>Renewal.*:|expir.*date:"</span></p><p><span>        Expiry date:  08-Mar-2017</span></p><p><br></p><p>Which I think is the expected result.</p></div></div></div><div class="gmail_extra"><span class=""><br clear="all"><div><div data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><table border="0" cellpadding="0" cellspacing="0" width="360" style="color:rgb(0,0,0);font-family:Helvetica"><tbody><tr><td style="border-top:1px solid rgb(153,153,153)"><font color="#FF8700" face="Helvetica, Arial, sans-serif" style="line-height:25px;font-size:12px"><strong>Rich Jones</strong> | Web Developer</font></td></tr><tr><td style="border-top:1px solid rgb(153,153,153);padding:10px 0px"><font color="#999999" face="Helvetica, Arial, sans-serif" style="line-height:15px;font-size:12px">Corporation Pop<br>21-23 Shudehill<br>Manchester M4 2AF<br>0161 838 0808</font></td></tr><tr><td style="border-top:1px solid rgb(153,153,153)"><font color="#999999" face="Helvetica, Arial, sans-serif" style="line-height:25px;font-size:12px"><a href="http://www.corporationpop.co.uk/" style="color:rgb(255,135,0);text-decoration:none" target="_blank">www.corporationpop.co.uk</a></font></td></tr><tr><td style="border-top:1px solid rgb(153,153,153);padding:10px 0px 0px"><span style="color:rgb(153,153,153);font-family:Helvetica,Arial,sans-serif;font-size:x-small;line-height:11px">This email message (and any attached file) is intended only for the use of the individual or entity to whom the sender intended it to be addressed and may contain information that constitutes a trade secret, or that is privileged, confidential or subject to copyright. No part of it may be circulated, quoted, or reproduced without prior written approval from Corporation Pop Ltd. The contents of this document are strictly confidential and owned by Corporation Pop Ltd. Copyright © Corporation Pop Ltd. All rights reserved. Corporation Pop is a limited company registered in England + Wales. Company number 4869229. VAT number 533 8932 26.</span><br></td></tr></tbody></table></div></div></div></div></div></div></div></div></div>
<br></span><div><div class="h5"><div class="gmail_quote">On 31 August 2016 at 01:13, Phil Crooker <span dir="ltr"><<a href="mailto:Phil.Crooker@orix.com.au" target="_blank">Phil.Crooker@orix.com.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">




<div dir="ltr" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Arial,Helvetica,sans-serif;background-color:rgb(255,255,255)">
<p>It looks like the EXPIRESTRING compilation is empty for those domains:</p>
<p><br>
</p>
<pre style="word-wrap:break-word;white-space:pre-wrap">EXPIRESTRING="`whois $DOMAIN | egrep -i "Expires.*:|Expiration.*:|Rene<wbr>wal.*:|expir.*date:" | head -n 1 | cut -d: -f2- | sed -e's/^[     ]*//'`"<br></pre>
<p><br>
</p>
<p><span style="font-size:12pt">Try running it manually with the various parts, eg: </span></p>
<pre style="font-size:16px;word-wrap:break-word;white-space:pre-wrap">whois <a href="http://somedomain.co.uk" target="_blank">somedomain.co.uk</a> | egrep -i "Expires.*:|Expiration.*:|Rene<wbr>wal.*:|expir.*date:"<br></pre>
<p><span style="font-size:12pt"></span>and see that at each pipe point (the '|') it actually returns something. Compare outputs between those domains that work and those that don't. Probably the whois output is different for the domains that don't work and
 you'll probably need to adjust the above filter.<br>
</p>
<p><br>
</p>
<p>cheers, Phil</p>
<p><br>
</p>
<div style="color:rgb(33,33,33)">
<hr style="display:inline-block;width:98%">
<div dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Xymon <<a href="mailto:xymon-bounces@xymon.com" target="_blank">xymon-bounces@xymon.com</a>> on behalf of Richard Jones <<a href="mailto:rich@corporationpop.co.uk" target="_blank">rich@corporationpop.co.uk</a>><br>
<b>Sent:</b> Tuesday, 30 August 2016 11:56 PM<br>
<b>To:</b> <a href="mailto:xymon@xymon.com" target="_blank">xymon@xymon.com</a><br>
<b>Subject:</b> [Xymon] Unusual dnsreg behaviour</font>
<div> </div>
</div><div><div>
<div>
<div dir="ltr">
<div>Hi all.</div>
<div><br>
</div>
<div>I have recently added in the dnsreg script from the <a href="http://xymon.com" target="_blank">
xymon.com</a> site <a href="https://www.xymon.com/xymon-cgi/viewconf.sh?dnsreg" target="_blank">https://www.xymon.com/xym<wbr>on-cgi/viewconf.sh?dnsreg</a> All appears to be working well apart from I am getting some strange behaviour for a couple of domains. </div>
<div><br>
</div>
<div>For some domains I am simply not receiving any data back, which is causing the test to show red with the following line of information:<br>
<br>
Domain <a href="http://somedomain.co.uk" target="_blank">somedomain.co.uk</a> expires on </div>
<div><br>
</div>
<div>Normally I would see the expiration date here, but it simply doesn't show. I have tested the domain using whois on the server, and this all returns fine. So I'm not too sure why this is happening. Any ideas?</div>
<br clear="all">
<div>
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<table border="0" cellpadding="0" cellspacing="0" width="360" style="color:rgb(0,0,0);font-family:Helvetica">
<tbody>
<tr>
<td style="border-top:1px solid rgb(153,153,153)"><font color="#FF8700" face="Helvetica, Arial, sans-serif" style="line-height:25px;font-size:12px"><strong>Rich Jones</strong> | Web Developer</font></td>
</tr>
<tr>
<td style="border-top:1px solid rgb(153,153,153);padding:10px 0px"><font color="#999999" face="Helvetica, Arial, sans-serif" style="line-height:15px;font-size:12px">Corporation Pop<br>
21-23 Shudehill<br>
Manchester M4 2AF<br>
0161 838 0808</font></td>
</tr>
<tr>
<td style="border-top:1px solid rgb(153,153,153)"><font color="#999999" face="Helvetica, Arial, sans-serif" style="line-height:25px;font-size:12px"><a href="http://www.corporationpop.co.uk/" style="color:rgb(255,135,0);text-decoration:none" target="_blank">www.corporationpop.co.uk</a></font></td>
</tr>
<tr>
<td style="border-top:1px solid rgb(153,153,153);padding:10px 0px 0px"><span style="color:rgb(153,153,153);font-family:Helvetica,Arial,sans-serif;font-size:x-small;line-height:11px">This email message (and any attached file) is intended only for the use
 of the individual or entity to whom the sender intended it to be addressed and may contain information that constitutes a trade secret, or that is privileged, confidential or subject to copyright. No part of it may be circulated, quoted, or reproduced without
 prior written approval from Corporation Pop Ltd. The contents of this document are strictly confidential and owned by Corporation Pop Ltd. Copyright © Corporation Pop Ltd. All rights reserved. Corporation Pop is a limited company registered in England + Wales.
 Company number 4869229. VAT number 533 8932 26.</span><br>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div></div></div>
</div>

-- 
<div style="width:650px;min-height:375px">

        <div style="float:left;width:185px;min-height:375px;background:url("http://www.orix.com.au/assets/images/logo.gif") left top no-repeat rgb(255,255,255)"></div>

        <div style="width:465px;min-height:30px;margin:10px 0px 15px;float:left;background-color:rgb(31,42,107)"></div>

        <div style="font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:9px;line-height:normal;font-family:Arial,Helvetica,sans-serif;color:rgb(148,148,148)">

        <p></p><h1 style="font-size:11px;font-weight:bold;padding:0px;margin:0px">Please consider the environment before printing this e-mail</h1><p></p>

        <p style="padding:0px;margin:0px;text-align:justify">This message from ORIX Australia may contain confidential and/or privileged information. If you are not the intended recipient, any use, disclosure or copying of this message (or of any attachments to it) is not authorised. If you have received this message in error, please notify the sender immediately and delete the message and any attachments from your system. Please inform the sender if you do not wish to receive further communications by email.</p> 



<p>The ORIX Australia Privacy Policy outlines what kinds of personal information we collect and hold, how we collect and handle it and your rights in regards to your personal information. Our Privacy Policy is available on our <a href="http://www.orix.com.au" style="color:rgb(148,148,148)" target="_blank">website</a>.</p>



<p>We do not accept liability for any loss or damage caused by any computer viruses or defects that may be transmitted with this message. We recommend you carry out your own checks for viruses or defects.</p>

        </div>

</div>

</blockquote></div><br></div></div></div>
</blockquote></div><br></div></div></div>