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

Command Line add new sensor



I'm trying to add new amazon cloudwatch sensors using the prtg api from the command line. For example when a new EC2 instance is generated in Amazon, I want to add the new instance to PRTG. I have the access keys and can sample the Amazon API for the instance ID, but I'm not sure how to add it into PRTG automatically. Any ideas?

amazon api command-line script sensor

Created on Sep 27, 2012 8:18:58 PM

1 Reply




you can do this with the PRTG API, see "Setup"->"PRTG API"->"Object Manipulation":

  1. Duplicate the existing sensor:
  1. Then use the setobjectproperty API-Call to change the Accesskey & Instance ID:

The properties for the Amazon Cloudwatch sensor are:

  • Accesskeyid
  • Secretaccesskeyid
  • Location
  • Service (static, cannot be changed on existing/cloned sensors)
  • instance

So it is important to only clone sensors for the same types of Amazon instances best regards.

Created on Sep 28, 2012 1:10:33 PM by  Torsten Lindner [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.