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

I want to use the Script v2 sensor example scripts. What do I need to know?

Votes:

0

You deliver four example scripts with the Script v2 sensor. What do I need to know to run them?

prtg python script

Created on Jan 12, 2023 2:43:08 PM by  Florian Weik (1,927) 2 2



1 Reply

Accepted Answer

Votes:

0

This article applies as of PRTG 23


Script v2 sensor example scripts

Updates as of PRTG 23.x.82 contain the Script v2 sensor and four example Python scripts for the sensor.

The script files are stored in the \Custom Sensors\scripts\examples\python subfolder of the PRTG program directory on the probe system on Windows systems or in the /opt/paessler/share/doc/examples/scripts/python directory on the probe system on Linux systems.

To use the scripts, copy them to the \Custom Sensors\scripts subfolder of the PRTG program directory on the probe system on Windows systems or in the /opt/paessler/share/scripts directory on the probe system on Linux systems. On Linux system, you must also remove the .sample extension from the file name.


The following scripts are available:

  • hybrid_parameters_ping.py: A script that can be used interactively via command line and as sensor script.
    • This script requires the ping3 package. For more information, see the script file.
  • dice_roll.py: A simple example that shows you how to take a parameter from PRTG and output the result to PRTG.
  • dropbox_space_free.py: A script that uses a third-party package to monitor the free space on a Dropbox file share.
    • This script requires the dropbox package.
  • remote_ssh_linux_system_load.py: A script that shows you how to monitor a remote system via SSH.
    • This script requires the fabric package.

You can find more information about the scripts and the requirements in the readme.md in the example script folder.

Created on Jan 16, 2023 2:47:13 PM by  Florian Weik (1,927) 2 2

Last change on Jul 19, 2023 1:32:53 PM by  Jacqueline Conforti [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.