Ad Widget

Collapse

Update the "Monitored by proxy" value via API

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MartinM
    Junior Member
    • Mar 2016
    • 2

    #1

    Update the "Monitored by proxy" value via API

    Hi,

    I'm creating a monitoring for environment in AWS and I'm using the "Auto registration" feature, which calls a script with API calls for adding the host to the right group, assigns some templates, creates macros and add some new JMX interfaces.

    I'm able to do all this, but since we decided to use for different environments zabbix proxy, I'm stuck, because, I don't know how to change the "proxy_hostid" using host.update method or use proxy.update to add the hostid.

    In first case the stopper was "Invalid request" message and in the second case the "No permissions to referred object or it does not exist!" appeared.

    Could you please point me to the right direction?

    Thanks
  • jan.garaj
    Senior Member
    Zabbix Certified Specialist
    • Jan 2010
    • 506

    #2
    Zapix example

    10084 -> id of my host
    10107 -> id of my proxy
    Be sure that ids are correct.
    Devops Monitoring Expert advice: Dockerize/automate/monitor all the things.
    My DevOps stack: Docker / Kubernetes / Mesos / ECS / Terraform / Elasticsearch / Zabbix / Grafana / Puppet / Ansible / Vagrant

    Comment

    Working...