Los siguientes objetos estan directamenre relacionados con la API del host
El objeto Host tiene las siguientes propiedades.
| Propiedad | Tipo | Descripción |
|---|---|---|
| hostid | string | (readonly) ID del host. |
| host (required) |
string | Nombre técnico del host. |
| available | integer | (readonly) Disponibilidad de agente Zabbix. Valores posibles: 0 - (defecto) unknown; 1 - disponible 2 - nodisponible |
| description | text | Descripción del host. |
| disable_until | timestamp | (readonly) Tiempo del nuevo intento de conexión cuando el agente Zabbix no está disponible. |
| error | string | (readonly) Texto del error si el agente Zabbix no está disponible. |
| errors_from | timestamp | (readonly) Cuando quedó el agente Zabbix no disponible. |
| flags | integer | (readonly) Origen del host. Valores posibles: 0 - un simple host; 4 - un host descubierto. |
| inventory_mode | integer | Como se completa el inventario del host. Valores posibles: -1 - desabilitado 0 - (defecto) manual 1 - automático |
| ipmi_authtype | integer | Algoritmo de autenticación IPMI. Valores posibles: -1 - (defecto) defecto 0 - ninguno 1 - MD2; 2 - MD5 4 - straight 5 - OEM; 6 - RMCP+. |
| ipmi_available | integer | (readonly) Disponibilidad del agente IPMI. Valores posibles : 0 - (defecto) desconocido 1 - disponible 2 - no disponible |
| ipmi_disable_until | timestamp | (readonly) Tiempo del nuevo intento de conexión cuando el agente IPMI no está disponible. |
| ipmi_error | string | (readonly) Texto del error si el agente IPMI no está disponible |
| ipmi_errors_from | timestamp | (readonly) Cuando quedó el agente IPMI no disponible. |
| ipmi_password | string | Clave IPMI |
| ipmi_privilege | integer | Nivel de privilegio IPMI. Valores posibles: 1 - callback; 2 - (defecto) user; 3 - operator; 4 - admin; 5 - OEM. |
| ipmi_username | string | Nombre de usuario IPMI |
| jmx_available | integer | (readonly) Disponibilidad de agente JMX Valores posibles: 0 - (defecto) desconocido 1 - disponible 2 - no disponible |
| jmx_disable_until | timestamp | (readonly) Tiempo del nuevo intento de conexión cuando el agente JMX no está disponible. |
| jmx_error | string | (readonly) Texto del error si el agente JMX no está disponible . |
| jmx_errors_from | timestamp | (readonly) Cuando quedó el agente JMX no disponible. |
| maintenance_from | timestamp | (readonly) Hora de inicio de mantenimiento |
| maintenance_status | integer | (readonly) Estado del mantenimiento. Valores posibles: 0 - (defecto) no esta en maitenimiento 1 - en mantenimiento |
| maintenance_type | integer | (readonly) Tipo de mantenimiento Valores posibles: 0 - (defecto) mantenimiento con cosecha de datos 1 - mantenimiento sin cosecha de datos |
| maintenanceid | string | (readonly) ID del mantenimiento actual del host |
| name | string | Nombre visible del host. Defecto: valore de la propiedad host |
| proxy_hostid | string | ID del proxy usado para monitorear el host. |
| snmp_available | integer | (readonly) Disponibilidad de agente SNMP. Valores posibles: 0 - (defecto) desconocido 1 - disponible 2 - no disponible |
| snmp_disable_until | timestamp | (readonly) The next polling time of an unavailable SNMP agent. |
| snmp_error | string | (readonly) Error text if SNMP agent is unavailable. |
| snmp_errors_from | timestamp | (readonly) Tiempo del nuevo intento de conexión cuando el agente SNMP no está disponible. |
| status | integer | Estado y funcionamiento del host. Valores posibles: 0 - (defecto) host monitoreado 1 - host no monitoreado. |
| tls_connect | integer | Conexiones al host. Valores posibles: 1 - (defecto) Sin encriptación 2 - PSK; 4 - certificado. |
| tls_accept | integer | Conexiones desde el host Valores posibles: 1 - (defecto) Sin encriptación 2 - PSK; 4 - certificado |
| tls_issuer | string | Emisor del certificado |
| tls_subject | string | Asunto del certificado |
| tls_psk_identity | string | Identidad PSK. Se requiere si '' tls_connect '' o '' tls_accept '' tienen PSK habilitado. |
| tls_psk | string | La clave previamente compartida, al menos 32 dígitos hexadecimales. Se requiere si '' tls_connect '' o '' tls_accept '' tiene PSK habilitado. |
The host inventory object has the following properties.
Each property has it's own unique ID number, which is used to associate host inventory fields with items.
| ID | Property | Type | Description |
|---|---|---|---|
| 4 | alias | string | Alias. |
| 11 | asset_tag | string | Asset tag. |
| 28 | chassis | string | Chassis. |
| 23 | contact | string | Contact person. |
| 32 | contract_number | string | Contract number. |
| 47 | date_hw_decomm | string | HW decommissioning date. |
| 46 | date_hw_expiry | string | HW maintenance expiry date. |
| 45 | date_hw_install | string | HW installation date. |
| 44 | date_hw_purchase | string | HW purchase date. |
| 34 | deployment_status | string | Deployment status. |
| 14 | hardware | string | Hardware. |
| 15 | hardware_full | string | Detailed hardware. |
| 39 | host_netmask | string | Host subnet mask. |
| 38 | host_networks | string | Host networks. |
| 40 | host_router | string | Host router. |
| 30 | hw_arch | string | HW architecture. |
| 33 | installer_name | string | Installer name. |
| 24 | location | string | Location. |
| 25 | location_lat | string | Location latitude. |
| 26 | location_lon | string | Location longitude. |
| 12 | macaddress_a | string | MAC address A. |
| 13 | macaddress_b | string | MAC address B. |
| 29 | model | string | Model. |
| 3 | name | string | Name. |
| 27 | notes | string | Notes. |
| 41 | oob_ip | string | OOB IP address. |
| 42 | oob_netmask | string | OOB host subnet mask. |
| 43 | oob_router | string | OOB router. |
| 5 | os | string | OS name. |
| 6 | os_full | string | Detailed OS name. |
| 7 | os_short | string | Short OS name. |
| 61 | poc_1_cell | string | Primary POC mobile number. |
| 58 | poc_1_email | string | Primary email. |
| 57 | poc_1_name | string | Primary POC name. |
| 63 | poc_1_notes | string | Primary POC notes. |
| 59 | poc_1_phone_a | string | Primary POC phone A. |
| 60 | poc_1_phone_b | string | Primary POC phone B. |
| 62 | poc_1_screen | string | Primary POC screen name. |
| 68 | poc_2_cell | string | Secondary POC mobile number. |
| 65 | poc_2_email | string | Secondary POC email. |
| 64 | poc_2_name | string | Secondary POC name. |
| 70 | poc_2_notes | string | Secondary POC notes. |
| 66 | poc_2_phone_a | string | Secondary POC phone A. |
| 67 | poc_2_phone_b | string | Secondary POC phone B. |
| 69 | poc_2_screen | string | Secondary POC screen name. |
| 8 | serialno_a | string | Serial number A. |
| 9 | serialno_b | string | Serial number B. |
| 48 | site_address_a | string | Site address A. |
| 49 | site_address_b | string | Site address B. |
| 50 | site_address_c | string | Site address C. |
| 51 | site_city | string | Site city. |
| 53 | site_country | string | Site country. |
| 56 | site_notes | string | Site notes. |
| 55 | site_rack | string | Site rack location. |
| 52 | site_state | string | Site state. |
| 54 | site_zip | string | Site ZIP/postal code. |
| 16 | software | string | Software. |
| 18 | software_app_a | string | Software application A. |
| 19 | software_app_b | string | Software application B. |
| 20 | software_app_c | string | Software application C. |
| 21 | software_app_d | string | Software application D. |
| 22 | software_app_e | string | Software application E. |
| 17 | software_full | string | Software details. |
| 10 | tag | string | Tag. |
| 1 | type | string | Type. |
| 2 | type_full | string | Type details. |
| 35 | url_a | string | URL A. |
| 36 | url_b | string | URL B. |
| 37 | url_c | string | URL C. |
| 31 | vendor | string | Vendor. |