HI
I need to be able to do some Dynamic routing alerting via solarwinds for Palo Alto firewalls in particular bgp peers if the it drops or flaps. Is there a method of doing this via Solarwinds?
Specifically for the BGP peer status you might consider a HTTP/HTTPS monitor in Solarwinds and use the Palo Alto API. Then if it does not return the peer-status you expect in the XML response trigger an alert in SolarWinds.
Start on this page: Get Started with the PAN-OS XML API
You can construct a query that looks like this:
https://firewall.foobar.com/api/?type=op&cmd=%3Cshow%3E%3Crouting%3E%3Cprotocol%3E%3Cbgp%3E%3Cpeer%3E%3Cvirtual-router%3E[virtual router name]%3C%2Fvirtual-router%3E%3C%2Fpeer%3E%3C%2Fbgp%3E%3C%2Fprotocol%3E%3C%2Frouting%3E%3C%2Fshow%3E&key=[account api key]
The response I get on my system is this because I have no peers:
The routing table can be retrieved similarly although I do not know of a good way to parse the XML and use it in SolarWInds. I am still looking into that. Mostly I have used this in other prorams I write to output the XML into a spreadsheet for others to use.
Here is the routing table API query:
https://firewall.foobar.com/api/?type=op&cmd=&%3Cshow%3E%3Crouting%3E%3Croute%3E%3Cvirtual-router%3E[virutal router name]%3C%2Fvirtual-router%3E%3C%2Froute%3E%3C%2Frouting%3E%3C%2Fshow%3Ekey=[account api key]
The partial result looks like this:
Hi , Thanks for your post but still this is not resolving our issue to get monitor on BGP status and Power supply status of Palo alto devices by using API call from solarwinds. As we do not have SAM module we have only network monitoring modules in solarwinds.
How can we monitor by using API
SolarWinds solutions are rooted in our deep connection to our user base in the THWACK® online community. More than 195,000 members are here to solve problems, share technology and best practices, and directly contribute to our product development process.