The Script v2 sensor represents a step forward in monitoring flexibility and efficiency. As the successor to the Python Script Advanced sensor, it is designed to provide enhanced functionality, better integration, and a seamless experience for your custom monitoring needs.
Let's find out what makes the Script v2 sensor a valuable addition to your Paessler PRTG monitoring installation, along with important details about transitioning from the Python Script Advanced sensor, which will be deprecated soon.
The Script v2 sensor is a versatile tool that allows you to execute scripts written in Python and will replace the Python Script Advanced sensor. These scripts can perform custom monitoring tasks, process specific metrics, or handle unique configurations that standard sensors cannot address. With its updated architecture, the Script v2 sensor ensures more consistency.
*️⃣ Monitor unique devices or applications with non-standard protocols
*️⃣ Aggregate data from multiple sources into a single, comprehensive view
*️⃣ Automate complex monitoring scenarios through script logic
✅ Versioned script output format for reliable updates
The Script v2 sensor introduces a versioned script output format, ensuring that updates to the sensor do not disrupt your custom scripts. You decide when to switch to a new output format version, depending on whether you want to make use of additions to the output format. This design makes updates seamless and allows for the addition of new features without breaking backward compatibility. We guarantee that updates to the Script v2 sensor will not interfere with scripts written for a previous version, making it easier to maintain your monitoring setup.
✅ Enhanced error handling
The Script v2 sensor includes optimized error-handling features, making it easier to debug and maintain your scripts. While developing your script, you can easily test it without copying it to your probe, and avoid tediously examining sensor logs for errors.
Furthermore, the new output format is defined by a JSON Schema that can be used for validation. Therefore, you can execute the script and employ a schema validator to ensure that the resulting output is compatible with PRTG.
✅ Modern architecture
The updated design of the Script v2 sensor aligns with the latest standards in PRTG, ensuring compatibility with future updates and features. Its robust architecture supports complex and dynamic monitoring requirements.
With the release of PRTG version 25.x.106, the Python Script Advanced sensor will be deprecated. This means that you will no longer be able to add new instances of the Python Script Advanced sensor. Existing instances will remain functional until the release of version 25.x.110.
Please note: With release 25.x.110, existing Python Script Advanced sensors will no longer work, so it is recommended that you migrate to the Script v2 sensor sooner to avoid potential compatibility issues in the future.
➡️ Notification upon update: When you update to PRTG version 25.x.106, you will receive a corresponding to-do ticket in your PRTG environment if you have Python Script Advanced sensors.
➡️ Migration support: Comprehensive guides are available to assist in adapting your Python scripts for use with the Script v2 sensor.
➡️ Why switch now? Transitioning to the Script v2 sensor ensures access to its advanced features, better performance, and ongoing support in future PRTG versions.
1️⃣ Review the updated documentation: Detailed instructions for the Script v2 sensor are available in the PRTG knowledge base. This is your go-to resource for migration guidance and understanding the new output schema.
2️⃣ Validate with JSON schema tools: Use a JSON schema validator to ensure that your script’s output conforms to the expected format for the Script v2 sensor. This step helps catch errors early and guarantees compatibility.
3️⃣ Create and test a new sensor: Configure a new Script v2 sensor with your migrated script directly in your PRTG environment. This allows you to verify the script's functionality without requiring a full staging installation. Once the script behaves as expected, enable alerting for the sensor to integrate it into your monitoring
By transitioning to the Script v2 sensor, you can future-proof your monitoring setup while taking advantage of its improved capabilities. Whether you’re monitoring niche systems, aggregating complex metrics, or automating intricate processes, the Script v2 sensor offers the tools you need to succeed.
For more information about the Script v2 sensor and how to get started, visit the PRTG manual or explore these helpful knowledge base articles:
👉 What do deprecation and discontinuation in the context of sensors mean?
👉 Why should I use the Script v2 sensor?
👉 How can I make my Python scripts work with the Script v2 sensor?
Or reach out to our support team for further guidance.