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

Average PING: Packet Loss with a Custom EXE/Script Sensor

Votes:

0

Has anyone using PRTG been able to get average results for the packet loss channel on a PING sensor?

I have been trying to use a SENSORSXML from PRTG Tools Family. I am using the the SensorAverageXML custom sensor, under the EXE/Script Advanced, the parameter I am using are the followings:

-pu=mydomain\david -pp=PASSWORD -ps=192.168.1.1:8080 -s=4512 [-m=5]

Parameters Template:

-pu=domain\username -pp=password -ps=server -s=sensorID [-m=minutes]

The error will output: "Unable to connect to the remote server" ???

Are the other ways to average the packet loss values to 5 minutes? The plan is to get an email alert when the Packet Loss channel in a PING sensor hits more than 5%.

email exe-script-advanced notification-email packet-loss ping sensoraveragexml sensorsxml

Created on May 4, 2016 2:21:28 PM

Last change on May 5, 2016 10:37:46 AM by  Luciano Lingnau [Paessler]



15 Replies

Votes:

0

Usually, PRTG usernames don't have the domain name in them. Can you leave it out (the backslash as well) - can you check if it works then?

Created on May 6, 2016 7:38:38 AM by  Stephan Linke [Paessler Support]



Votes:

0

I have removed the domain name as well. I was using the credentials to the server but didn't work. I also used the PRTG admin username and password and still get the error "<prtg><error>1</error><text>The remote server returned an error: (401) Unauthorized.</text></prtg>" and "Unable to connect to the remote server" ???

Created on May 6, 2016 1:06:15 PM



Votes:

0

Are you 100% sure that the password is correct? Can you try an administrative account with a rather simple password and check it again?

Created on May 9, 2016 6:20:04 AM by  Stephan Linke [Paessler Support]



Votes:

0

I tried the PRTG administrative web login password, and I still get the error: "Unable to connect to the remote server"

I also tried the PRTG server login admin password and get the same error.

Created on May 10, 2016 1:58:48 PM



Votes:

0

Are you really sure that the credentials and connection data are correct?

Created on May 11, 2016 6:39:32 AM by  Stephan Linke [Paessler Support]



Votes:

0

I am positive the credentials are correct. Maybe some step-by-step info on how to setup the SensorAverageXML would be great? I am note sure what i am doing wrong if is the credentials or the way the probes need to be setup.

Created on May 11, 2016 12:40:55 PM



Votes:

0

Argh it just hit me ... are you really using [-m=5] in the parameters? Please discard it :) On the other hand, the output of the sensor is always 0, no matter what sensor I use. It may or may not work correctly with current PRTG versions after all.

Created on May 12, 2016 11:43:39 AM by  Stephan Linke [Paessler Support]



Votes:

0

So you are saying only use:

-pu=mydomain\david -pp=PASSWORD -ps=192.168.1.1:8080 -s=4512

Remove the [-m=minutes]. What/Where should I set the amount of minute to average the packet lost ?

Created on Jun 16, 2016 5:22:59 PM

Last change on Jun 17, 2016 6:13:35 AM by  Luciano Lingnau [Paessler]



Votes:

0

Sorry, I put this wrong - I meant if you're literally using [-m=5] instead of -m=5? :)

Created on Jun 17, 2016 7:09:56 AM by  Stephan Linke [Paessler Support]



Votes:

0

okay! so this is what I am trying these parameters now:

.\SensorAverageXML.exe -pu='prtgadminuser' -pp='317231298' -ps='https://prtg.mydomain.com/' -s=9234 -m=5

I am testing it with web PRTG admin credentials and its passhash (these are not actual credentials, but similar concept).

I get the error message that outputs will say: <prtg><error>1</error><text>No channels in XML result</text></prtg>

Any thoughts???

Created on Jul 1, 2016 2:00:41 PM



Votes:

0

You might want to drop [email protected] a mail :) Feel free to share the actual solution :)

Created on Jul 4, 2016 6:35:28 AM by  Stephan Linke [Paessler Support]



Votes:

0

Alright Thanks! I will definitely post the solution! Been working with PRTG for almost 2 years now. I enjoy this network monitor software.

Created on Jul 6, 2016 8:01:20 PM



Votes:

0

Glad to hear :)

Created on Jul 7, 2016 6:41:34 AM by  Stephan Linke [Paessler Support]



Votes:

0

We found the solution. The best advice is create a read only user (similar to SNMP community users) and then follow this page to correctly transmitted to my script : https://kb.paessler.com/en/topic/11283-how-can-i-test-if-parameters-are-correctly-transmitted-to-my-script-when-using-an-exe-script-sensor

For example:

-pu='prtgadminuser' -pp='317231298' -ps='https://prtg.mydomain.com/' -s=9234 -m=10

Also try to use the try the passhashtool and generate a hash password instead of having the plain text password broadcast. http://prtgtoolsfamily.com/us/products/tools/passhashtool

Created on Aug 4, 2016 4:18:56 PM



Votes:

0

Thanks for sharing! :)

Created on Aug 5, 2016 6:14:27 AM by  Stephan Linke [Paessler Support]




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.