Hi,
I create new EXE/Script advanced sensor
PS script (ok):
# XML Output for PRTG
Write-Host "<prtg>"
Write-Host "<result>"
"<channel>Sessions</channel>"
"<float>0</float>"
"<value>10</value>"
"</result>"
Write-Host "</prtg>"
PS script edited (fail)
%i = 10
# XML Output for PRTG
Write-Host "<prtg>"
Write-Host "<result>"
"<channel>Sessions</channel>"
"<float>0</float>"
"<value>%i</value>"
"</result>"
Write-Host "</prtg>"
Output: This sensor has not received data for x minutes x seconds.
No output to PRTG Network Monitor\Logs (Sensors)
I tried to restart server, services. Error still persist.
Thank You
Article Comments
Attention: This article is a record of a conversation with the Paessler support team. The information in this conversation is not updated to preserve the historical record. As a result, some of the information or recommendations in this conversation might be out of date.
What output do you get when you execute the script manually? Do other powershell based EXE/Script sensors work, if existing?
Nov, 2016 - Permalink