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

Sensor uptime robot

Votes:

0

Is there a sensor to monitor uptimerobot data?

api prtg uptimerobot

Created on Feb 3, 2022 10:23:13 PM



7 Replies

Votes:

0

Hello Thor,

At this time, no. We do not have a sensor for Uptime Robot.

Benjamin Day
[Paessler Suppport]

Created on Feb 4, 2022 7:02:03 PM by  Benjamin Day [Paessler Support] (1,441) 2 1



Votes:

0

Hello Thor,

At this time, no. We do not have a sensor for Uptime Robot.

Benjamin Day
[Paessler Suppport]

Created on Feb 4, 2022 7:02:04 PM by  Benjamin Day [Paessler Support] (1,441) 2 1



Votes:

0

and do you have any example of api access to a provider that is easy to implement?

Created on Feb 4, 2022 8:06:49 PM



Votes:

0

Hi Benjamin

With PS script I have been able to access UptimeRobot with this result:

$APIKeyWrite = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
$APIUrl = "https://api.uptimerobot.com/v2/"
$listMonitors = "getMonitors"
$urlRequest = $APIUrl+$listMonitors
$contentType = "application/x-www-form-urlencoded"
$headers = @{"cache-control"="no-cache"}
$params = @{"api_key"=$APIKeyWrite;
            }

$contentWrite = (Invoke-WebRequest -Uri $urlRequest -Method POST -Headers $headers -body $params).content



<?xml version="1.0"?>
<monitors stat="ok">
    <pagination>
        <offset>0</offset>
        <limit>50</limit>
        <total>40</total>
    </pagination>
    <monitor id="790047106" friendly_name="SENSOR01" url="https://sensor01.com" type="1" sub_type="" keyword_type="null" keyword_case_type="null" keyword_value="" http_username="" http_password="" port="" interval="900" timeout="30" status="2" create_datetime="1639410071"/>
    <monitor id="789857369" friendly_name="SENSOR02" url="https://sensor02.com" type="1" sub_type="" keyword_type="null" keyword_case_type="null" keyword_value="" http_username="" http_password="" port="" interval="60" timeout="30" status="0" create_datetime="1637861689"/>
    <monitor id="787115031" friendly_name="SENSOR03" url="https://sensor03.com" type="1" sub_type="" keyword_type="null" keyword_case_type="0" keyword_value="" http_username="" http_password="" port="" interval="60" timeout="30" status="2" create_datetime="1612286255"/>
</monitors>

I would be interested in a sensor that shows 'friendly_name' and 'status', being status=2 OK and another value DOWN (alert)

Created on Feb 6, 2022 12:54:08 PM

Last change on Feb 7, 2022 5:42:07 AM by  Felix Wiesneth [Paessler Support]



Votes:

0

Thor,

OK, so with that output, you just need to come up with a script to take that data, and form it into a format that PRTG is OK with. Here is the definitions for our custom sensors.

Advanced Script, HTTP Data, and REST Custom Sensors

Benjamin Day
[Paessler Support]

Created on Feb 7, 2022 6:19:32 PM by  Benjamin Day [Paessler Support] (1,441) 2 1



Votes:

0

Benjamin,

Can you give me an example, please?

Created on Feb 8, 2022 7:59:45 AM



Votes:

0

Thor,

I do not have any examples, as this would be custom sensor work. At this time, we do not support or assist with custom sensor work. I can introduce you to some of our partners who can assist with this if you would like.

Benjamin Day
[Paessler Support]

Created on Feb 8, 2022 5:56:33 PM by  Benjamin Day [Paessler Support] (1,441) 2 1




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.