New Question
 
 
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 PRTG
Download >>

 

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

 

Top Tags


View all Tags


how i can i add new sensors with curl

Votes:

0

Your Vote:

Up

Down

Hi,

i want to add new sensors using a linux system.

So i wanted to use curl doing some api calling.

Is this even possible ? I found nothing about that in your docs.

Regars, Robert

api curl http

Created on Jun 25, 2020 11:44:45 AM by  Florian Wöhrl (0) 1



5 Replies

Votes:

0

Your Vote:

Up

Down

Hello Robert,

What are you trying to monitor exactly using the curl api call? You can use the SSH Script Sensor to execute the script of your choice. You need to copy the script to the target host in the directory /var/prtg/scripts. You can find the required syntax on the Setup > PRTG API > Custom Sensors page. The result needs to look like that: returncode:value:message, where the return code looks as follows:

0	OK
1	WARNING
2	System Error (e.g. a network/socket error)
3	Protocol Error (e.g. web server returns a 404)
4	Content Error (e.g. a web page does not contain a required word)

Kind Regards,
Timo Dambach
Paessler Tech Support

Created on Jun 26, 2020 6:40:54 AM by  Timo Dambach [Paessler Support]



Votes:

0

Your Vote:

Up

Down

All i want todo is to add some new sensors to new provisioned system. I don't want to do this manually so i wondered if this is possible via api call.

For example add a http sensor or TLS certifiacte sensor to a service.

Created on Jun 29, 2020 7:28:30 AM by  Florian Wöhrl (0) 1



Votes:

0

Your Vote:

Up

Down

You can either:
- Use device templates to deploy multiple sensors add once.
- It is possible to clone sensors via API. The documentation can be found directly in PRTG, menu Setup > PRTG API, tab "Object Manipulation".
- Use the Powershell API from LordMilko (a third party supplier; therefore not supported by Paessler) Also see: https://kb.paessler.com/en/topic/79033

Created on Jun 29, 2020 9:02:27 AM by  Timo Dambach [Paessler Support]



Votes:

0

Your Vote:

Up

Down

thanks for your answer - i know theres a powershell api.

my questions are:

- is this also possible without powershell just using curl for example - do i always need to have device template or can i simply add completely new sensors

Created on Jul 2, 2020 8:11:50 AM by  Florian Wöhrl (0) 1



Votes:

0

Your Vote:

Up

Down

You could use curl for http requests and use the API-calls mentioned here: "Setup > PRTG API, tab "Object Manipulation". I'm afraid it's not possible to add completely new sensors, you can however clone a sensor and change its settings.

Created on Jul 2, 2020 10:30:46 AM by  Timo Dambach [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.