New Question
 
 
PRTG Network Monitor

Intuitive to Use.
Easy to manage.

200.000 administrators have chosen PRTG to monitor their network. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free PRTG
Download >>

 

What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general. You are invited to get involved by asking and answering questions!

Learn more

 

Top Tags


View all Tags


Monitoring an IPSec Tunnel on a Palo Alto Firewall

Votes:

0

Your Vote:

Up

Down

Hi all,

i'm trying to create new sensor to Monitoring an IPSec Tunnel on a Palo Alto Firewall. Unfortunately, when i run sensor receive the following error: --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Response not well-formed: "(Exception calling "SecureStringToBSTR" with "1" argument(s): "Value cannot be null. Parameter name: s" At C:\Program Files (x86)\PRTG Network Monitor\custom sensors\EXE\Script_VPN_PA.ps1:3 char:1 + $Bstr = $Marshal::SecureStringToBSTR($SecurePassword) + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : ArgumentNullException Cannot find an overload for "PtrToStringAuto" and the argument count: "1". At C:\Program Files (x86)\PRTG Network Monitor\custom sensors\EXE\Script_VPN_PA.ps1:4 char:1 + $Password = $Marshal::PtrToStringAuto($Bstr) + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodException + FullyQualifiedErrorId : MethodCountCouldNotFindBest Cannot convert argument "s", with value: "", for "ZeroFreeBSTR" to type "System.IntPtr": "Cannot convert null to type "System.IntPtr"." At C:\Program Files (x86)\PRTG Network Monitor\custom sensors\EXE\Script_VPN_PA.ps1:5 char:1 + $Marshal::ZeroFreeBSTR($Bstr) + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodException + FullyQualifiedErrorId : MethodArgumentConversionInvalidCastArgument invoke-restmethod : <response status = 'error' code = '403'><result><msg>Invalid credentials.</msg></result></response> At C:\Program Files (x86)\PRTG Network Monitor\custom sensors\EXE\Script_VPN_PA.ps1:46 char:26 + [xml]$CheckFW1StateXML = invoke-restmethod @CheckFW1State + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:Htt pWebRequest) [Invoke-RestMethod], WebException + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShe ll.Commands.InvokeRestMethodCommand invoke-restmethod : <response status = 'error' code = '403'><result><msg>Invalid credentials.</msg></result></response> At C:\Program Files (x86)\PRTG Network Monitor\custom sensors\EXE\Script_VPN_PA.ps1:52 char:26 + [xml]$CheckFW2StateXML = invoke-restmethod @CheckFW2State + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:Htt pWebRequest) [Invoke-RestMethod], WebException + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShe ll.Commands.InvokeRestMethodCommand <prtg> <result> <channel>FW_HA</channel> <value>1</value> <showChart>1</showChart> <showTable>1</showTable> <LimitMaxError>0</LimitMaxError> <LimitMode>1</LimitMode> </result> <result> <channel>Produzione-H3G</channel> <value>0</value> <showChart>1</showChart> <showTable>1</showTable> <LimitMaxError>0</LimitMaxError> <LimitMode>1</LimitMode> </result> </prtg> )" (code: PE132)

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Any idea to fix this ???

Thanks a lot

Roberto

custom-script-exe exexml palo-alto-networks

Created on Mar 29, 2018 9:31:18 AM by  raprile (0) 1



1 Reply

Votes:

0

Your Vote:

Up

Down

Which sensor are you using for this?

Created on Mar 30, 2018 5:37:10 PM by  Benjamin Day [Paessler Support]



Please log in or register to enter your reply.


Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.