Uploaded image for project: 'Observium'
  1. Observium
  2. OBS-3798

Add device via API and set specific poller_id

Details

    • Help
    • Resolution: Fixed
    • Major
    • None
    • Professional Edition
    • API
    • Observium 21.6.11399

      1x Observium Web / Poller instance (Ubuntu Server 16.04.7 LTS)
      1x Observium DB instance (Ubuntu Server 18.04.5 LTS | MySQL 5.7.34)
      1x Observium Poller instance (Ubuntu Server 20.04.2 LTS)

    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

          [OBS-3798] Add device via API and set specific poller_id
          landy Mike Stupalov made changes -
          Issue Type Original: Task [ 3 ] New: Help [ 10200 ]
          bot Observium Bot made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]
          adama Adam Armstrong made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Pending Response [ 10000 ] New: Resolved [ 5 ]
          landy Mike Stupalov made changes -
          Status Original: In Review [ 10101 ] New: Pending Response [ 10000 ]
          landy Mike Stupalov made changes -
          Status Original: Pending Response [ 10000 ] New: In Review [ 10101 ]
          landy Mike Stupalov made changes -
          Assignee Original: Adam Armstrong [ adama ] New: Mike Stupalov [ landy ]
          landy Mike Stupalov made changes -
          Status Original: Open [ 1 ] New: Pending Response [ 10000 ]
          mknorr Markus Knorr created issue -

          People

            landy Mike Stupalov
            mknorr Markus Knorr
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: