Page-Sequence-Monitor documentation and questions

"silvio mink" <[email protected]> Wed, 5 Mar 2014 15:59:53 +0100
Newsgroups gmane.network.opennms.install
Message-ID <trinity-c633c3d7-2430-473d-a934-7ba9bb285b70-1394031592968@3capp-webde-bs12>
Hi,

i am trying to setup the PSM, but there are many many questions...And the most of it, are not covered by http://www.opennms.org/wiki/Page_Sequence_Monitor_(PSM)_Setup :-(

My first problem: how is the syntax of the XML structure? I was trying to save a session variable:

<page scheme="https" host="${ipaddr}" port="443"

path="/rest/service/0"

virtual-host="www.example.de"

successMatch="Weiter" http-version="1.1">

<session-variable name="JSESSIONID" match-group="1" />

<session-variable name="_idp_session" match-group="1" />

</page>

then :

<page scheme="https" method="POST"

host="${ipaddr}" port="443"

path="/idp/Authn/UserPassword"

virtual-host="www.example.de"

successMatch=""

failureMessage="Login failed: ${1}"

http-version="1.1">

<parameter key="JSESSIONID" value="${JSESSIONID}" />

<parameter key="_idp_session" value="${_idp_session}" />

</page>

But this results in:

logs/daemon/stds.log:

java.lang.IndexOutOfBoundsException: No group 1

at java.util.regex.Matcher.group(Matcher.java:487)

at org.opennms.netmgt.poller.monitors.PageSequenceMonitor$HttpPage.updateSequenceProperties(PageSequenceMonitor.java:451)

at org.opennms.netmgt.poller.monitors.PageSequenceMonitor$HttpPage.execute(PageSequenceMonitor.java:412)

at org.opennms.netmgt.poller.monitors.PageSequenceMonitor$HttpPageSequence.execute(PageSequenceMonitor.java:207)

Why? The only sentence i found to the session-variable match-group parameter is:

"The match groups correspond to the parenthesized sub-expressions in the expression, highlighted here:

(?s)User:.*&lt;strong&gt;(.*?)&lt;/strong&gt;.*?Password:.*?&lt;strong&gt;(.*?)&lt;/strong&gt;"

But i dont understand this..... Why im getting a "no group 1", where I must define this group? In the example of http://www.opennms.org/wiki/Page_Sequence_Monitor_%28PSM%29_Setup is no group defined...Only a "failureMessage="Login Failed: ${1}" but only for group one, if this reference "${1}" is correspond to match-group="1"...I think the example of the wiki page is working?

The goal of this is a sign-in in a SSO ring with schibboleth (to test the service and identity-provider).

Regards

------------------------------------------------------------------------------
Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works. 
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk

_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-install mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-install