Hi

i have a bunch of cloud devices that i'd like to have monitored by PRTG. They will alert e.g. when CPU/Mem/Disk threshold is reached.

I've implemented the push data sensor before.. and in all cases you need to create the sensor first before you can send data to it using the webook.

Is it possible to create the sensor as part of the webhook?

The reason is that manually creating each sensor is very error-prone - it's very easy to miss that new service that you have configured etc etc.

It would be much easier if i just configure each new service to hit PRTG with the webhook, and the sensor is created if its not there already..


Article Comments

Unfortunately not, it's always create first. You could create a catalogue file containing the corresponding hosts and always check if a Sensor with that token/host already exists and create / push, depending on that. Would that be a feasible approach?


Jan, 2020 - Permalink

Thanks for the suggestion! I've already implemented what you've suggested above with a windows scheduled task. it's a bit brittle and tends to fail a lot. so was hoping that i could get a webhook that would do create/update all at once

No worries i may go back to the solution above.


Jan, 2020 - Permalink

In this case, you might want to force a scan at least once after creating it, as it may take some time for the corresponding listener socket to come up. Triggering a scan will likely bring it up quicker. Perhaps that helps :)


Jan, 2020 - Permalink