Migrating SimpleJSON to Infinity for Plesk Server Monitoring

We use a Grafana dashboard to monitor CPU from 10 servers. Everything worked perfectly with the old SimpleJSON data source plugin. But we recently migrated to a new server and now the entire dashboard is broken.

I discovered that SimpleJSON is deprecated, so we installed Infinity and tried adding the same data sources, but it doesn’t work.

“error while performing the infinity query. unable to parse response body as JSON. unexpected end of JSON input”

This is the guide I followed to build the dashboard, but it’s outdated and still says to use the old Simple JSON data source

Plesk – 3 May 23

How to monitor several Plesk servers with Grafana extension - Support Cases…

How to monitor several Plesk servers with Grafana extension - Support Cases - Plesk Knowledge Base

If I understand correctly, Plesk monitoring endpoint is in RRD format (Round Robin Database API endpoint), because the command to get the token is “SELECT value FROM params WHERE name = ‘rrd_api_auth_token’”

After following the guide, I get a URL like this:
https://ns654656.ip-124-117-21.net:8443/modules/monitoring/public/index.php/jsdgh645HDjkfsdkhfHKD456fsdhkfjsSKDJFhFKDS

If I open this URL in my browser, it’s a blank page without any JSON. It was working with the SimpleJSON data plugin, but it seems like Infinity is expecting a raw JSON on this URL and I don’t know how to get this from the remote Plesk server.

Any help would be much appreciated.

Reposting because the last time yosiasz closed the topic for no reason after providing no help (please don’t post on this topic, I don’t want to talk to you)

Hi @webtek000,

I would probably not have chosen to close the thread in Migration SimpleJSON to Infinity for Plesk Server Monitoring myself, but I can understand it based on your behavior and the lack of reply to Migration SimpleJSON to Infinity for Plesk Server Monitoring - #4 by yosiasz

At the same time, I can understand your frustration at not having been able to resolve your issue on your own over the last ~3 months.

It’s your privilege not to want to talk to any specific person or group of people.
At the same time, it’s our privilege, and duty, to ask you to help us maintain a friendly tone on this forum, so ideally make those choices privately without potentially making them a point of discussion in and as of themselves.

Good luck with your servers, no matter if you choose to accept our help or not,
best,
Richard

3 Likes