PaloAlto API key generator / verifier DataSource
What:
A DataSource that takes paloalto.user and paloalto.pass credentials and uses them to generate the paloalto.apikey.pass property necessary for monitoring.
Why:
As per our PaloAlto documentation page (https://www.logicmonitor.com/support/monitoring/networking-firewalls/palo-alto-firewalls), for API monitoring you need to create an API key using user+pass credentials via an https call, the dig out a key value from the returned XML, then finally set that key in a new property on the resource in LogicMonitor.
This is OK if you have one PaloAlto, but is a bit tedious if you have more, and, recently, I was in discussion with a customer who...
...well, let's just say they have a significant number of PaloAlto resources.
However, your LogicMonitor Collector can make https calls and parse the resultant XML, and the LM API enables you to PATCH properties to Resources, which means this can be automated.
You will need:
LogicMonitor API credentials set as Resource Properties for your PaloAlto resources, for an API user with the rights to manage these Resources. These modules will accept lmaccess.id or logicmonitor.access.id for the API token ID; and lmaccess.key or logicmonitor.access.key for the token key (in those orders of preference).
The script will take the account name directly from collector settings.
You'll also need to set paloalto.user and paloalto.pass properties for your PaloAlto resources in LogicMonitor.
Then what?
In short, this DataSource will attempt to create and set the necessary API key if the resource doesn't currently have a working one.
The DataSource has this logic:
There are various diagnostic datapoints to show either successful operation, or failure reasons, which can be alerted on.
Note that, even in the absence of LM API credentials, this DataSource will still check for the presence and validity of a paloalto.apikey.pass property value.
DataSource Name: PaloAlto_KeyGen_and_Verification
v1.5 published with lmLocator: DL37ZT
michaeld
·3 years agoOdd, Manuel’s reply didn’t show up till I replied. Well my initial reply is mostly irrelevant now.
But I’ll reiterate it’d be most excellent to have this functionality as part of the main Palo Alto module.
Manuel_Medellin
·3 years agoI found the DataSource in Modules Exchange
Dan
·3 years agoI was not able to find this either. Is it still available?
Caleb
·3 years agoWas this datasource removed, I couldn’t find a datasource or propertysource named “PaloAlto_KeyGen_and_Verification” ?