looking for guidance.  I am trying to create a Poller for Monitoring VPN
Tunnels Tunnels on a PaloAlto Firewall.

Palo has an API that will query the state of a tunnel

https://hostname/api/?type=op&key=authkey&cmd=
<show><vpn><flow><name>TUNNELNAME<%2Fname><%2Fflow><%2Fvpn><%2Fshow>

response  is an xml document
formatted like so:  (This not all of the xml tree)
<response>
        <result>
                <dp>dp0</dp>
                <IPSEC>
                    <entry>
                        <monitor>
                                <status>False</status>
                        </monitor>
                        *<state>active</state>*
                        <pkt-lifesize>0</pkt-lifesize>
                        <type>IPSec</type>
                    </entry>
                </IPSec>
        </result>
</response>

the key attribute I am trying to capture is state.

I know there is a http Poller, but I was looking for one dealing
specifically with one expecting XML as a response, so I can possibly grab
multiple parameters.  If I must  I can probably use the HTTP poller with a
regular expression, but I was just looking for something a little more
elegant.

Thanks

Kirk
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-devel mailing list

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

Reply via email to