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
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
A content check for the filename of the checkmark GIF would probably work, but I guess then the question is how to make sure that it's in the right column. In the content test documentation (or was it elsewhere on the web -- can't recall), there is some information about testing with curl and getting the content and looking it over so you can find what you want to test against.
On 05/17/2011 11:46 AM, Jason Chambers wrote:
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
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
- ---- _ _ _ _ ___ _ _ _ |Y#| | | |\/| | \ |\ | | |Ryan Novosielski - Sr. Systems Programmer |$&| |__| | | |__/ | \| _| |novosirj at umdnj.edu - 973/972.0922 (2-0922) \__/ Univ. of Med. and Dent.|IST/CST-Academic Svcs. - ADMC 450, Newark -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk3SoZQACgkQmb+gadEcsb7hfQCguUuCG5eFgWuLKq+FywHiIFbC 4IQAmwWW2/yKZveaszt+WZ3kSx2+9jMh =gxc1 -----END PGP SIGNATURE-----
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.
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.
Thanks for this.
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
From: Steve Anderson [mailto:steve.anderson at bipsolutions.com] Sent: May-17-11 1:46 PM To: Jason Chambers; 'xymon at xymon.com' Subject: RE: Monitor Salesforce?
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.
participants (3)
-
Jason.Chambers@geosoft.com
-
novosirj@umdnj.edu
-
steve.anderson@bipsolutions.com