What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general. You are invited to get involved by asking and answering questions!

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
300.000 administrators have chosen PRTG to monitor their network. 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

Votes:

0

Your Vote:

Up

Down

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 by  gjones010 (0) 1



1 Reply

Votes:

0

Your Vote:

Up

Down

Hello,

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

  1. Duplicate the existing sensor:
/api/duplicateobject.htm?id=id_of_sensor_to_clone&name=new_name&targetid=id_of_target_device
  1. Then use the setobjectproperty API-Call to change the Accesskey & Instance ID:
/api/setobjectproperty.htm?id=10214&name=PROPERTY&value= 

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]



Please log in or register to enter your reply.


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.