Hello there,
thank you for your KB-Post.
Did you check the sensor's documentation? There's a "how-to" section in the sensor's documentation:
But regarding your questions:
1. Our company already has a PRTG account, where can I find or generate my API key?
2. What is the data format of the submission?
The API key is a per-sensor key. You'll need to have a sensor created before you can push data to it. After the sensor's creation you will be able to review the API Key in the sensor's settings. As for the data format, it uses PRTG's XML/JSON custom-sensor API format. This format is documented under Setup > PRTG API in the web-interface. It's also described in this KB-Post:
You may also refer to:
Please keep in mind that the data pushed into a PRTG sensor should consist of one or more numerical values. You can also push text using the <text> tag, but this text will only be displayed in the interface, but won't be stored or produce alerts by itself.
3. what is the URL endpoint that I should submit the request to?
Your PRTG Server may have one or more so called "Probes" (Local or Remote). The URL will depend on the probe where it was deployed, it will be the address of the PRTG Probe. If the sensor is deployed on the local probe, it will be the same address as PRTG's web-interface, but on a different port. For instance a get request to Push data to a sensor on the local probe with token XYZ123 would look like this:
http: prtgserver.domain.tld:5050/XYZ123?content=<prtg><result><channel>MyChannel</channel><value>10</value></result><text>this%20is%20a%20message</text></prtg> |
I've just googled log4net and it appears to be Apache related. You might be interested to know that you can also use
the same API data format (XML/JSON) but instead of pushing the data to PRTG, publish it under a unique URL on your webserver (https://webserver/prtg_status.xml for instance) and then simply deploy an HTTP Data Advanced sensor in PRTG pointed at that URL.
PRTG will query the URL on every scanning interval and parse the XML/JSON as a sensor. This set-up may prove easier/faster to implement especially if you already have a webserver in place.
Best Regards,
Luciano Lingnau [Paessler Support]
Add comment