Good afternoon,

I have a fuel cell which is monitored online by a 4g modem from Udomi. I can log in to a web environment and see the status and consumption of the fuel cell. Udomi also has a report API. But I do not understand much about this. https://www.m2mgate.de/udomi/rest/#!/fuelcell/cellsPost

How can I display this data in PRTG? Perhaps more importantly, can I do something with this?

Tim


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.

What's the actual output of that API call?


Kind regards,
Stephan Linke, Tech Support Team


Aug, 2018 - Permalink

Hi,

I think this is the output.

Response Body { "imei": "***", "alias": "Brandstofcel modem 1", "timestamp": "2018-08-29 11:12:51", "battery_voltage_efoy": 14.24, "output_current_efoy": 6.58, "operation_time_efoy": 1450.7, "operating_state_efoy": "auto on", "operating_mode_efoy": "auto", "cumulative_output_energy_efoy": 119767, "cartridge_efoy": "1", "cartridge_low_efoy": 0, "methanol_consumed_efoy": 1.48, "error_efoy": "no error", "warning_efoy": "no warning" } Response Code 200 Response Headers { "date": "Wed, 29 Aug 2018 09:50:39 GMT", "server": "WildFly/9", "connection": "Keep-Alive", "x-powered-by": "Undertow/1", "content-length": "405", "keep-alive": "timeout=5, max=100", "content-type": "application/json" }

Tim


Aug, 2018 - Permalink

The REST Custom Sensor is specifically made for that :) The Autodiscovery template should be entirely sufficient here.


Kind regards,
Stephan Linke, Tech Support Team


Aug, 2018 - Permalink

Good morning,

I'm trying the Rest Custom Beta sensor. I can fill in the token there. But must also fill in a Query, I do not understand this. Who knows which query to fill in?

When I enter the Curl in linux I get the correct data. Is there a sensor where you can enter a curl?

Tim


Aug, 2018 - Permalink

Basically, PRTG puts together the query from the device address and the query configured in the sensor settings page. So, if you have the following CURL:

https://my.awesome.host/this.is.my/api/endpoint

...you'll need to configure it like this:

  1. Device my.awesome.host
  2. Query /this.is.my/api/endpoint

The query in the template file is just for documentation purposes :)


Kind regards,
Stephan Linke, Tech Support Team


Aug, 2018 - Permalink

Stephan,

Thanks for your quick response! I am a bit closer to the solution. But I now get this error message Can not load endpoint https://m2mgate.de/udomi/rest/api/fuelcell/devices: expected status 200 OK but got 405 Method Not Allowed.

What am I doing wrong here?

Tim


Aug, 2018 - Permalink

Not really sure ;/ Do you need to login anywhere before querying the API? If so, do you receive a token we could use?


Kind regards,
Stephan Linke, Tech Support Team


Aug, 2018 - Permalink

Yes I have a token. I entered this at Authentication Method.


Aug, 2018 - Permalink

Hello there,

Could you please open the settings page of the sensor in PRTG and enable the option "Write sensor result to disk (Filename: "Result of Sensor [ID].txt")". The results will be written into the log file directory of the probe, where the sensor is configured:

  • "C:\ProgramData\Paessler\PRTG Network Monitor\Logs (Sensors)"

Please zip and forward the files to support@paessler.com for further investigation. The ID of the sensor is part of the web browser URL and is also displayed on the sensor's overview page.

Additionally, kindly provide a screenshot of the device's settings page as well as of the settings page of the sensor.


Kind regards,
Felix Saure, Tech Support Team


Sep, 2018 - Permalink

Hi there I have also 3 devices on a udomi website. Have you got a solution to integreate in prtg? Whats the udomi api path?


Jan, 2021 - Permalink

Hi,

you create a device with this api url: www.m2mgate.de/udomi/rest/api/

Then a custom sensor Request Method post: token = "your token"

REST Query: fuelcell / "imei"

This works for me.


Jan, 2021 - Permalink