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

PRTG Network Monitor

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

Free Download

Top Tags


View all Tags

Need help with Custom EXE/Script Sensor in Powershell, anyone?

Votes:

0

Your Vote:

Up

Down

Now i try with custom EXE/SCRIPT sensor and no luck... I use modpoll.exe program ( https://www.modbusdriver.com/modpoll.html ) I don't know how to program script to run a program and read values.

In windows cmd i use command: modpoll.exe -c 1 -r 1 -f -t 3:float -p 4001 -m enc 192.168.5.87 and I get the answer :

-- Polling slave... (Ctrl-C to stop)
[1]: 234.171463

This is Phase 1 VOLT

If i use modpoll.exe -c 1 -r 1 -f -t 3:float -p 4001 -m enc 192.168.5.87 and I get the answer : -- Polling slave... (Ctrl-C to stop) [7]: 5.705577 This is Current of L1

Now have problem with writing script in Windows PowerShell ISE....

Can someone can help me ?

Thank you!

Damjan

custom custom-sensor powershell

Created on Feb 18, 2021 7:05:41 AM by  Chan Siau Hen [Paessler Technical Support]



Replies

Nobody has replied yet

Why not be the first?

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.