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

Ability to pass ping sensor variables

Votes:

0

Would like the ability to pass windows variables to ping sensors. In my case I want to set the source (-S IP address) on a probe with multiple IPs/NICs, but I could see where other users would want to use other variables such as size, don't fragment, etc..

add-feature ping-sensor variables

Created on Aug 6, 2020 1:56:09 PM



1 Reply

Votes:

0

I have written a EXE/Script type sensor batch which manually gives me the ability to do what I have asked. Maybe Paessler could modify it and streamline/standardize it? Note the ping command in the script, which can be modified just like any windows ping command:

  • @echo off
  • for /f "tokens=3 delims=," %%# in ('ping -S source_interface_IP destination_IP 2^>nul^| findstr /i "loss average"') do (set "%%#")
  • for /f "tokens=1 delims= " %%a in ("%Average %") do SET _test=%%a
  • SET _result=%_test:0,-2%
  • ECHO %_result%:OK

Created on Aug 12, 2020 4:52:21 PM




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.