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

Add device via API and set specific poller_id

    XMLWordPrintable

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

          People

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

            Dates

              Created:
              Updated:
              Resolved: