[Xymon] Monitor Salesforce?
Steve Anderson
steve.anderson at bipsolutions.com
Tue May 17 19:46:14 CEST 2011
Attached should be a very basic version of a test script. It's not fully tested, but I think it /should/ work.
Steve Anderson.
From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf Of Steve Anderson
Sent: 17 May 2011 18:03
To: Jason Chambers; 'xymon at xymon.com'
Subject: Re: [Xymon] Monitor Salesforce?
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
STATUS=`curl -s http://trust.salesforce.com/status-data/status.jsp|grep NA1-head -A5|tail -1|cut -f 4 -d"\""|cut -c 8-|cut -f1 -d"."|tr '[:lower:]' '[:upper:]'`
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.
Steve Anderson.
From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf Of Jason Chambers
Sent: 17 May 2011 16:46
To: 'xymon at xymon.com'
Subject: [Xymon] Monitor Salesforce?
Does anyone know how we could implement a monitor for the Salesforce status site?
It's here http://trust.salesforce.com/status-data/status.jsp but I was wondering if there was a way to make sure a checkmark existed in the Current Status column for NA1 for example.
Jason Chambers
IT Help Desk Associate
GEOSOFT INC.
freedom to explore
T +1 416.369.0111 #344
F +1 416.369.9599
Visit our site at www.geosoft.com<http://www.geosoft.com>
________________________________
This email has been scanned by Netintelligence
http://www.netintelligence.com/email
________________________________
________________________________
BiP Solutions Limited is a company registered in Scotland with Company
Number SC086146 and VAT number 383030966 and having its registered
office at Medius, 60 Pacific Quay, Glasgow, G51 1DZ.
****************************************************************************
This e-mail (and any attachment) is intended only for the attention of
the addressee(s). Its unauthorised use, disclosure, storage or copying
is not permitted. If you are not the intended recipient, please destroy
all copies and inform the sender by return e-mail.
This e-mail (whether you are the sender or the recipient) may be
monitored, recorded and retained by BiP Solutions Ltd.
E-mail monitoring/ blocking software may be used, and e-mail content may
be read at any time.You have a responsibility to ensure laws are not
broken when composing or forwarding e-mails and their contents.
****************************************************************************
________________________________
This email has been scanned by Netintelligence
http://www.netintelligence.com/email
________________________________
________________________________
BiP Solutions Limited is a company registered in Scotland with Company
Number SC086146 and VAT number 383030966 and having its registered
office at Medius, 60 Pacific Quay, Glasgow, G51 1DZ.
****************************************************************************
This e-mail (and any attachment) is intended only for the attention of
the addressee(s). Its unauthorised use, disclosure, storage or copying
is not permitted. If you are not the intended recipient, please destroy
all copies and inform the sender by return e-mail.
This e-mail (whether you are the sender or the recipient) may be
monitored, recorded and retained by BiP Solutions Ltd.
E-mail monitoring/ blocking software may be used, and e-mail content may
be read at any time.You have a responsibility to ensure laws are not
broken when composing or forwarding e-mails and their contents.
****************************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20110517/c7ec9d6e/attachment.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: initialperl.txt
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20110517/c7ec9d6e/attachment.txt>
More information about the Xymon
mailing list