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



1 Reply

Accepted Answer

Votes:

0

This article applies as of PRTG 24


Script v2 sensor example scripts

Updates as of PRTG 23.x.82 contain the Script v2 sensor and Python script examples 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:

Windows

  • 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.

Linux

  • remote_ssh_linux_network.py: A script that fetches statistics of network interfaces from a Linux system via SSH.
    • This script requires the fabric 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 and in the script file themselves.

Created on Jan 16, 2023 2:47:13 PM

Last change on Jun 3, 2024 9:45:41 AM 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.