<div dir="ltr">Gave that a shot, and I get back the following:<div><br><div>whois <a href="http://problemdomain1.co.uk">problemdomain1.co.uk</a> | egrep -i "Expires.*:|Expiration.*:|Renewal.*:|expir.*date:"<br></div><div><p class=""><span class="">        Expiry date:  06-Nov-2016</span></p><p class=""><span class="">whois <a href="http://okaydomain.co.uk">okaydomain.co.uk</a> | egrep -i "Expires.*:|Expiration.*:|Renewal.*:|expir.*date:"</span></p><p class=""><span class="">        Expiry date:  05-Jun-2018</span></p><p class=""><span class="">whois <a href="http://problemdomain2.uk">problemdomain2.uk</a> | egrep -i "Expires.*:|Expiration.*:|Renewal.*:|expir.*date:"</span></p><p class=""><span class="">        Expiry date:  08-Mar-2017</span></p><p class=""><br></p><p class="">Which I think is the expected result.</p></div></div></div><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-width:1px;border-top-style:solid;border-top-color: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-width:1px;border-top-style:solid;border-top-color: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-width:1px;border-top-style:solid;border-top-color: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-width:1px;border-top-style:solid;border-top-color: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 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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr" style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<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.*:|<wbr>Renewal.*:|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.*:|<wbr>Renewal.*:|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 class="h5">
<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/<wbr>xymon-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;background:#ffffff url(http://www.orix.com.au/assets/images/logo.gif) top left no-repeat;width:185px;min-height:375px"></div>

        <div style="background-color:#1f2a6b;width:465px;min-height:30px;margin:10px 0 15px 0;float:left"></div>

        <div style="font:normal 9px Arial,Helvetica,Sans-serif;color:#949494">

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

        <p style="padding:0;margin:0;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:#949494" 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>