Ad Widget

Collapse

How to create two hosts with the API and only login and logout once?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Sandra
    Junior Member
    • Jun 2020
    • 10

    #1

    How to create two hosts with the API and only login and logout once?

    Dear all =)


    I am new to NodeJS (and Zabbix), and would like to make a small command line program in NodeJS to create, update, and delete hosts.

    The NodeJS package that seams to be the most maintained for controlling Zabbix is https://github.com/sumitgoelpw/zabbix-promise and it have some really nice examples. However since there is a session concept, it is not obvious (to me =) ) how to create two hosts, and only `login` and `logout` once...

    Question

    Can someone create an example that creates two hosts, but only does one login and one logout?

    Hugs,
    Sandra =)





Working...