Hi,
Came across an old post with a powershell script to monitor link / skype server. https://helpdesk.paessler.com/en/support/solutions/articles/63184-how-to:-lync-2013-monitoring
I saved the "prtg-lyncuser.ps1" script in my C:\Program Files (x86)\PRTG Network Monitor\Custom Sensors\EXEXML folder and set execution policy to unrestricted on the prtg server.
if i run the script manually just by calling the ps1 file i am getting
Start PRTG Sensor Server: lync1.corp.local Serverlist count: 1 Server: lync1.corp.local End: ExitCode 0 Sending Result to output pipeline <prtg> <result> <channel>SIPClients(lync1.corp.local)</channel> <value>116</value> <unit>Count</unit> <mode>Absolute</mode> </result> <text>LyncUsers:</text> </prtg
however if I add it as a custom exe sensor in prtg i am getting No "result" or "error" in XML response.
Could anyone suggest what I am missing ?
Article Comments
Hi Sasa,
Yes I did try to Use Windows credentials of parent device. The error message does not go away.
Sep, 2022 - Permalink
Hi,
Did you make sure to use a Exe/Script Advanced sensor? Have you checked the troubleshooting steps suggested in the KB article where the scripts are shared?
Kind regards,
Sasa Ignjatovic, Tech Support Team
Sep, 2022 - Permalink
Yes, Exe/Script Advanced sensor is exactly what I used.
Yes, I tried everything that was suggested. The only result I get from the sensor is No "result" or "error" in XML response.
Sep, 2022 - Permalink
I would suggest that you open a support ticket regarding this issue, so that we can have a closer look at it.
Kind regards,
Sasa Ignjatovic, Tech Support Team
Sep, 2022 - Permalink
When you've properly secured your webserver, TLS1.2 should be enabled in the script. You can add:
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Before downloading the web result.
Mar, 2023 - Permalink
Hello,
Did you try using the option "Use Windows credentials of parent device" in the sensor?
The Windows credentials that the sensor should use can be specified in the Settings tab of the device in the section "Credentials for Windows Systems".
Kind regards,
Sasa Ignjatovic, Tech Support Team
Sep, 2022 - Permalink