<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Arial Narrow";
        panose-1:2 11 6 6 2 2 2 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";
        mso-fareast-language:EN-US;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";
        mso-fareast-language:EN-US;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Attached should be a very basic version of a test script. It’s not fully tested, but I think it /should/ work.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Steve Anderson.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";mso-fareast-language:EN-GB">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";mso-fareast-language:EN-GB"> xymon-bounces@xymon.com
 [mailto:xymon-bounces@xymon.com] <b>On Behalf Of </b>Steve Anderson<br>
<b>Sent:</b> 17 May 2011 18:03<br>
<b>To:</b> Jason Chambers; 'xymon@xymon.com'<br>
<b>Subject:</b> Re: [Xymon] Monitor Salesforce?<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">You’ll want to wrap this up in a shell script, but here’s what will get you the current status of the NA1 server. Just refer to $STATUS<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">STATUS=`curl -s <a href="http://trust.salesforce.com/status-data/status.jsp|grep">
http://trust.salesforce.com/status-data/status.jsp|grep</a> NA1-head -A5|tail -1|cut -f 4 -d"\""|cut -c 8-|cut -f1 -d"."|tr '[:lower:]' '[:upper:]'`<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Of course, it depends on salesforce not changing their layout. You could probably work something out with an xml or html parser to get the NA1-head block, then look for the image tag within that, but that’s a
 little more complex.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Steve Anderson.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";mso-fareast-language:EN-GB">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";mso-fareast-language:EN-GB"> xymon-bounces@xymon.com
 [mailto:xymon-bounces@xymon.com] <b>On Behalf Of </b>Jason Chambers<br>
<b>Sent:</b> 17 May 2011 16:46<br>
<b>To:</b> 'xymon@xymon.com'<br>
<b>Subject:</b> [Xymon] Monitor Salesforce?<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-CA">Does anyone know how we could implement a monitor for the Salesforce status site?
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">It’s here <a href="http://trust.salesforce.com/status-data/status.jsp">
http://trust.salesforce.com/status-data/status.jsp</a>     but I was wondering if there was a way to make sure a checkmark existed in the Current Status column for NA1 for example.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-bottom:10.0pt;line-height:115%"><b><span lang="EN-CA" style="font-size:10.0pt;line-height:115%;font-family:"Arial","sans-serif";color:#004891;mso-fareast-language:EN-CA">Jason Chambers<br>
</span></b><span lang="EN-CA" style="font-size:10.0pt;line-height:115%;font-family:"Arial","sans-serif";color:#004891;mso-fareast-language:EN-CA">IT Help Desk Associate<br>
<br>
</span><b><span lang="EN-CA" style="font-size:12.0pt;line-height:115%;font-family:"Arial Narrow","sans-serif";color:#004891;mso-fareast-language:EN-CA">GEOSOFT INC.<br>
</span></b><b><span lang="EN-CA" style="font-size:10.0pt;line-height:115%;font-family:"Arial","sans-serif";color:#82B000;mso-fareast-language:EN-CA">freedom to explore<br>
</span></b><span lang="EN-CA" style="font-size:9.0pt;line-height:115%;font-family:"Arial","sans-serif";color:#004891;mso-fareast-language:EN-CA">T +1 416.369.0111 #344<br>
F +1 416.369.9599<br>
<br>
Visit our site at <a href="http://www.geosoft.com">www.geosoft.com</a><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA" style="font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:EN-GB"><o:p> </o:p></span></p>
<div class="MsoNormal" align="center" style="text-align:center"><span lang="EN-CA" style="font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:EN-GB">
<hr size="2" width="100%" align="center">
</span></div>
<p class="MsoNormal"><span lang="EN-CA" style="font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:EN-GB">This email has been scanned by Netintelligence<br>
<a href="http://www.netintelligence.com/email">http://www.netintelligence.com/email</a><o:p></o:p></span></p>
<div class="MsoNormal" align="center" style="text-align:center"><span lang="EN-CA" style="font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:EN-GB">
<hr size="2" width="100%" align="center">
</span></div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:EN-GB"><o:p> </o:p></span></p>
<div class="MsoNormal" align="center" style="text-align:center"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:EN-GB">
<hr size="2" width="100%" align="center">
</span></div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:gray;mso-fareast-language:EN-GB">BiP Solutions Limited is a company registered in Scotland with Company<br>
Number SC086146 and VAT number 383030966 and having its registered<br>
office at Medius, 60 Pacific Quay, Glasgow, G51 1DZ.<br>
<br>
****************************************************************************<br>
This e-mail (and any attachment) is intended only for the attention of<br>
the addressee(s). Its unauthorised use, disclosure, storage or copying<br>
is not permitted. If you are not the intended recipient, please destroy<br>
all copies and inform the sender by return e-mail.<br>
This e-mail (whether you are the sender or the recipient) may be<br>
monitored, recorded and retained by BiP Solutions Ltd.<br>
E-mail monitoring/ blocking software may be used, and e-mail content may<br>
be read at any time.You have a responsibility to ensure laws are not<br>
broken when composing or forwarding e-mails and their contents.<br>
****************************************************************************</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:EN-GB"><o:p></o:p></span></p>
<div class="MsoNormal" align="center" style="text-align:center"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:EN-GB">
<hr size="2" width="100%" align="center">
</span></div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:EN-GB">This email has been scanned by Netintelligence<br>
<a href="http://www.netintelligence.com/email">http://www.netintelligence.com/email</a><o:p></o:p></span></p>
<div class="MsoNormal" align="center" style="text-align:center"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:EN-GB">
<hr size="2" width="100%" align="center">
</span></div>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="1">BiP Solutions Limited is a company registered in Scotland with Company<br>
Number SC086146 and VAT number 383030966 and having its registered<br>
office at Medius, 60 Pacific Quay, Glasgow, G51 1DZ.<br>
<br>
****************************************************************************<br>
This e-mail (and any attachment) is intended only for the attention of<br>
the addressee(s). Its unauthorised use, disclosure, storage or copying<br>
is not permitted. If you are not the intended recipient, please destroy<br>
all copies and inform the sender by return e-mail.<br>
This e-mail (whether you are the sender or the recipient) may be<br>
monitored, recorded and retained by BiP Solutions Ltd.<br>
E-mail monitoring/ blocking software may be used, and e-mail content may<br>
be read at any time.You have a responsibility to ensure laws are not<br>
broken when composing or forwarding e-mails and their contents.<br>
****************************************************************************<br>
</font>
</body>
</html>