new check_XML functionality help please
Posted: Wed Jul 15, 2020 1:22 pm
Hi all,
I have been trying to get the new Check_XML wizard to work with pulling information out of a firewall API
the URL I have on a HTTPS page returns this in a browser
<response status="success">
<result>
<Gateway>
<name>VPN-Gateway</name>
<CurrentUsers>55</CurrentUsers>
<PreviousUsers>933</PreviousUsers>
</Gateway>
<TotalCurrentUsers>55</TotalCurrentUsers>
<TotalPreviousUsers>933</TotalPreviousUsers>
</result>
</response>
after running the wizard it -u 'https://URL' -k '/result/Gateway/CurrentUsers' -w 1900 -c 1950
The Run check command says:
UNKNOWN - Could not find the key or the value is not numeric
I think the way I put the syntax for drilling into the XML tree needs to be different from '/result/Gateway/CurrentUsers'
I have tried with Square brackets around each level, with double quotes etc...
Could anyone point out what I am doing wrong please?
The tooltip isn't great as it assumes I have more coding knowledge (And time on my hands to fill in the gaps)
I have been trying to get the new Check_XML wizard to work with pulling information out of a firewall API
the URL I have on a HTTPS page returns this in a browser
<response status="success">
<result>
<Gateway>
<name>VPN-Gateway</name>
<CurrentUsers>55</CurrentUsers>
<PreviousUsers>933</PreviousUsers>
</Gateway>
<TotalCurrentUsers>55</TotalCurrentUsers>
<TotalPreviousUsers>933</TotalPreviousUsers>
</result>
</response>
after running the wizard it -u 'https://URL' -k '/result/Gateway/CurrentUsers' -w 1900 -c 1950
The Run check command says:
UNKNOWN - Could not find the key or the value is not numeric
I think the way I put the syntax for drilling into the XML tree needs to be different from '/result/Gateway/CurrentUsers'
I have tried with Square brackets around each level, with double quotes etc...
Could anyone point out what I am doing wrong please?
The tooltip isn't great as it assumes I have more coding knowledge (And time on my hands to fill in the gaps)