Ad Widget

Collapse

API: Trouble adding host

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • weaselmode
    Junior Member
    • Feb 2017
    • 1

    #1

    API: Trouble adding host

    Hi all,

    I have version 3 Zabbix Server installed on localhost and I am attempting to create a host.

    The JSON which I am posting is;

    {"jsonrpc":"2.0","method":"host.create","params":{ "host":"10.10.0.15","groups":[],"interfaces":[],"templates":["10001"]},"id":1,"auth":"72cf13bb3227bb154a42be2ccbfd36e8" }

    Template id 10001 relates to Template OS Linux

    Although I am getting a 200 response from this API call I am not seeing a new host in the hosts mysql table or in the web GUI.

    Any suggestions?
  • jan.garaj
    Senior Member
    Zabbix Certified Specialist
    • Jan 2010
    • 506

    #2
    Example: http://monitoringartist.github.io/za...20%20%5D%0A%7D

    Parameters groups and interfaces are required.
    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...