Curtis-
I think it depends on the scope of your status monitoring. For instance, with
my uPortal server, I wanted to test not only if uPortal was up, but if people
could actually log into CAS and see the uPortal main tab. This was fairly easy
to accomplish using the HttpUnit library in Java. The code to login to CAS is
fairly trivial:
final HtmlForm casform = (HtmlForm)caspage.getElementById("fm1");
if(casform!=null)
{
final HtmlTextInput username_form = casform.getInputByName("username");
final HtmlPasswordInput password_form =
casform.getInputByName("password");
final HtmlSubmitInput submitbutton = casform.getInputByValue("LOGIN");
username_form.setValueAttribute(Username);
password_form.setValueAttribute(Password);
final HtmlPage MainPage = submitbutton.click();
... continue with testing your app using MainPage...
}
The advantage of this approach is that it tests if your Apps behind CAS are
down and if CAS itself is down.
-----Original Message-----
From: Curtis W. Ruck [mailto:[email protected]]
Sent: Monday, January 14, 2013 11:25 AM
To: [email protected]
Subject: [cas-user] Monitoring CASified applications
Has anyone setup a monitoring solution (i.e. Nagios, Zabbix, Icinga, etc...) to
monitor page content for CAS secured applications? We've got a few CASified
web applications that have their own status pages, that we'd like to start
monitoring, but most solutions can't authenticate to CAS enabled urls.
--
You are currently subscribed to [email protected] as:
[email protected] To unsubscribe, change settings or access archives,
see http://www.ja-sig.org/wiki/display/JSG/cas-user
--
You are currently subscribed to [email protected] as:
[email protected]
To unsubscribe, change settings or access archives, see
http://www.ja-sig.org/wiki/display/JSG/cas-user