What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general.

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
More than 500,000 users rely on Paessler PRTG every day. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags


View all Tags

XML: The returned xml does not match the expected schema. (code: PE233) -- JSON: The returned json d

Votes:

0

I write the vbscript that kill excel.exe

but it shows the error message as title.

Could you please help me to solve it.

thx.

Set ArgObj = WScript.Arguments
strComputer = ArgObj(0)

strUser = strComputer & "\" & ArgObj(1)
rem strComputer & "\" & ArgObj(1)
strPassword = ArgObj(2)
strNamespace = "root/cimv2"
str = ""

Dim objWMIService, colProcessList
Set objLocator = CreateObject("WbemScripting.SWbemLocator")
Set objWMIService = objLocator.ConnectServer(strComputer,strNamespace,strUser,strPassword)
Set colProcessList = objWMIService.ExecQuery("SELECT * FROM Win32_Process WHERE Name = 'excel.exe'")
For Each objProcess in colProcessList 
   objProcess.Terminate() 
Next  


wscript.echo "no result yet"

prttg snmp wmi

Created on Sep 14, 2016 6:44:28 AM

Last change on Sep 14, 2016 1:33:22 PM by  Arne Seifert [Paessler Support]



1 Reply

Votes:

0

Dear orientorient

The script output must adhere to the PRTG custom sensor API. If you use the Exe/Scipt Advanced sensor, the script must provide a compatible XML or JSON. If a single channel is enough, the Exe/Scipt sensor (the non-Advanced version) should be sufficient.

The output format of that sensor is

value:message

for example

0:no results yet

Please find the custom sensor documentation in the PRTG webinterface, menu Setup | PRTG API, tab "Custom Sensors".

Created on Sep 14, 2016 1:36:59 PM by  Arne Seifert [Paessler Support]




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.