Hi,

I need a way to create Factory Sensor automatically. These Factory Sensors will be an aggregation of traffic sensors of a specific group.

Is there a way to verify all traffic sensor on a group, verify which of then are up and then create a Factory Sensor automatically with these informations?

Is it possible using PRTG API?

Thank you!


Article Comments

Attention: This article is a record of a conversation with the Paessler support team. The information in this conversation is not updated to preserve the historical record. As a result, some of the information or recommendations in this conversation might be out of date.

Dear Bruno,

that might be possible, but will probably be quite an effort in scripting:

  • get all sensors from a certain group
  • check the types of these sensors
  • filter only for traffic sensors
  • then filter out the IDs of those
  • clone an existing Sensor Factory Sensor
  • change its Channel definition using the IDs from the traffic Sensors above

Best Regards.


Feb, 2011 - Permalink

and do you think it´s possible to check which source sensors are up (like "if sensorA_status==up then ..."; or "select from sensor where status=up ...")? I would like to create a Factory sensor that will be never in down/error state because of the source sensors.

Thanks.


Feb, 2011 - Permalink