zc

Documentation
Login

Documentation

ZC-HOST-ADD(1) - General Commands Manual

NAME

zc-host-add - create a new host

SYNOPSIS

zc host add [-d dns] [-g hostgroupid] [-i ip] [-p port] [-t template] hostname

DESCRIPTION

The zc-host-add sub-command, create a host named after the hostname operand in a zabbix server. The id of the created host will be printed on standard output.

Options are as follow:

-d dns

Specify an optional DNS name for the host. The name is added to the default interface during host creation.

-g hostgroupid

Add the new host to the specified hostgroup. More -g flags may be specified for additional hostgroups.

-i ip

ip address of the host zabbix agent interface. Default to 127.0.0.1

-p port

port specified for the default interface. Default to 10050.

-t templateid

Link the new host to the specified template. More -t may be specified for linking additional templates.

EXIT STATUS

The zc-host-add utility exits 0 on success, and >0 if an error occurs.

SEE ALSO

zc-host(1), zc-host-get(1), zc-host-rm(1)

AUTHORS

Andrea Biscuola <a@abiscuola.com>

OpenBSD 6.9 - May 5, 2020