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?
Attachments
Activity
Issue Type | Original: Task [ 3 ] | New: Help [ 10200 ] |
Status | Original: Resolved [ 5 ] | New: Closed [ 6 ] |
Resolution | New: Fixed [ 1 ] | |
Status | Original: Pending Response [ 10000 ] | New: Resolved [ 5 ] |
Status | Original: In Review [ 10101 ] | New: Pending Response [ 10000 ] |
Status | Original: Pending Response [ 10000 ] | New: In Review [ 10101 ] |
The API doesn't (yet? who knows) have access to the remote pollers, so has to insert into a queue in the database for remote pollers to pick up. Didn't realise this was already added to the API!