Details
Description
Hello,
I am trying to add devices to Observium using API.
I also want to pass the corresponding poller_id, because we have 2x Observium Poller in our environment.
I saw in the official documentation that this is possible, but it doesn't work for me.
The device can be added, but no matter what poller ID I specify, it is ignored, the device is added and has poller_id 0 / default configured.
My call looks something like this.
curl -u <USER>:<PASSWORD> https://<OBSERVIUM_DNS_NAME>/api/v0/devices/ -H "Content-Type: application/json" -X POST -d '{"hostname":"<DEVICE_DNS_NAME>", "snmp_community":"<SNMP_COMMUNITY_STRING>", "poller_id":"1"}' |
Where is my failure?