New Question
 
 
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 PRTG
Download >>

 

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

 

Top Tags


View all Tags


Ability to pass ping sensor variables

Votes:

0

Your Vote:

Up

Down

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 by  jasonwoolver (0) 1



1 Reply

Votes:

0

Your Vote:

Up

Down

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 by  jasonwoolver (0) 1



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.