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

Ability to create / delete sensors from custom xml/exe script

Votes:

0

Hi,

Writing a monitoring solution for a storage array I want to monitor capacity / performance metrics at the volume level. Issue is that at this level, objects tend to be fluid and of high volume (i.e. there can be high numbers of objects exceeding the 50 channel limit per sensor and volumes can be deleted/renamed as normal operational process). I am looking at how I can address these considerations and thinking:

- Create a sensor dynamically per volume - Remove a sensor when a volume has been deleted - Remove channels within a sensor

Is there a way to control this level of sensor lifecycle within a custom script?

Thanks for the help!

custom-script-exe custom-sensor prtg script

Created on Sep 30, 2017 1:58:02 AM



2 Replies

Votes:

0

So I am using the Rest API to create a clone of an existing sensor then modifying it as required. I am also using the Rest API to delete sensors associated with deleted objects. It wold still be good to see the ability to delete channels within a sensor, is this possible?

Created on Oct 2, 2017 9:22:23 AM



Votes:

0

Hi there,

Another user posted here a quite capable powershell script that can be used to create sensors dynamically.

As for deleting sensors, it can be done by triggering an API call to delete the sensor as an HTTP notification: /api/deleteobject.htm?id=%sensorid&approve=1 %sensorid is a placeholder that will fill dynamically the id of the sensor that triggers the HTTP notification.

Kind regards,

Erhard

Created on Oct 2, 2017 12:12:52 PM by  Erhard Mikulik [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.