Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "jsonrpc": "2.0",
- "method": "host.update",
- "params": [{
- "hostid": "10135",
- "host": "testhost",
- "ipmi_authtype": -1,
- "ipmi_password": "",
- "ipmi_privilege": 2,
- "ipmi_username": "",
- "jmx_available": 0,
- "jmx_disable_until": 0,
- "jmx_error": "",
- "jmx_errors_from": 0,
- "maintenance_from": 0,
- "maintenance_status": 0,
- "maintenance_type": 0,
- "maintenanceid": "0",
- "name": "testhost",
- "proxy_hostid": "0",
- "snmp_available": 0,
- "snmp_disable_until": 0,
- "snmp_error": "",
- "snmp_errors_from": 0,
- "status": 0,
- "inventory_mode": -1,
- "interfaces": [{
- "interfaceid": "29",
- "dns": "",
- "hostid": "10135",
- "ip": "127.0.0.1",
- "main": 1,
- "port": "10050",
- "type": 1,
- "useip": 1
- }],
- "groups": [{
- "groupid": "8",
- "name": "all"
- }],
- "parentTemplates": [{
- "templateid": "10073",
- "host": "Template_test",
- "name": "Template_test",
- "groups": [{
- "groupid": "1",
- "name": "Templates"
- }],
- "hosts": [],
- "templates": [],
- "parentTemplates": [],
- "items": [{
- "itemid": "22819",
- "delay": 60,
- "hostid": "10073",
- "interfaceid": "0",
- "key_": "mysql.ping",
- "name": "MySQL status",
- "type": 0,
- "value_type": 3,
- "authtype": 0,
- "data_type": 0,
- "delay_flex": "",
- "delta": 0,
- "description": "It requires user parameter mysql.ping, which is defined in userparameter_mysql.conf.\r\n\r\n0 - MySQL server is down\r\n1 - MySQL server is up",
- "formula": 1.0,
- "history": 7,
- "inventory_link": 0,
- "ipmi_sensor": "",
- "logtimefmt": "",
- "mtime": 0,
- "multiplier": 0,
- "params": "",
- "password": "",
- "port": "",
- "privatekey": "",
- "publickey": "",
- "snmp_community": "",
- "snmp_oid": "",
- "snmpv3_authpassphrase": "",
- "snmpv3_authprotocol": 0,
- "snmpv3_contextname": "",
- "snmpv3_privpassphrase": "",
- "snmpv3_privprotocol": 0,
- "snmpv3_securitylevel": 0,
- "snmpv3_securityname": "",
- "status": 0,
- "trapper_hosts": "",
- "trends": 365,
- "units": "",
- "username": "",
- "valuemapid": "1"
- }, {
- "itemid": "22830",
- "delay": 60,
- "hostid": "10073",
- "interfaceid": "0",
- "key_": "mysql.status[Bytes_received]",
- "name": "MySQL bytes received per second",
- "type": 0,
- "value_type": 0,
- "authtype": 0,
- "data_type": 0,
- "delay_flex": "",
- "delta": 1,
- "description": "The number of bytes received from all clients. \r\n\r\nIt requires user parameter mysql.status[*], which is defined in \r\nuserparameter_mysql.conf.",
- "formula": 1.0,
- "history": 7,
- "inventory_link": 0,
- "ipmi_sensor": "",
- "logtimefmt": "",
- "mtime": 0,
- "multiplier": 0,
- "params": "",
- "password": "",
- "port": "",
- "privatekey": "",
- "publickey": "",
- "snmp_community": "",
- "snmp_oid": "",
- "snmpv3_authpassphrase": "",
- "snmpv3_authprotocol": 0,
- "snmpv3_contextname": "",
- "snmpv3_privpassphrase": "",
- "snmpv3_privprotocol": 0,
- "snmpv3_securitylevel": 0,
- "snmpv3_securityname": "",
- "status": 0,
- "trapper_hosts": "",
- "trends": 365,
- "units": "Bps",
- "username": "",
- "valuemapid": "0"
- }, {
- "itemid": "22829",
- "delay": 60,
- "hostid": "10073",
- "interfaceid": "0",
- "key_": "mysql.status[Bytes_sent]",
- "name": "MySQL bytes sent per second",
- "type": 0,
- "value_type": 0,
- "authtype": 0,
- "data_type": 0,
- "delay_flex": "",
- "delta": 1,
- "description": "The number of bytes sent to all clients.\r\n\r\nIt requires user parameter mysql.status[*], which is defined in userparameter_mysql.conf.",
- "formula": 1.0,
- "history": 7,
- "inventory_link": 0,
- "ipmi_sensor": "",
- "logtimefmt": "",
- "mtime": 0,
- "multiplier": 0,
- "params": "",
- "password": "",
- "port": "",
- "privatekey": "",
- "publickey": "",
- "snmp_community": "",
- "snmp_oid": "",
- "snmpv3_authpassphrase": "",
- "snmpv3_authprotocol": 0,
- "snmpv3_contextname": "",
- "snmpv3_privpassphrase": "",
- "snmpv3_privprotocol": 0,
- "snmpv3_securitylevel": 0,
- "snmpv3_securityname": "",
- "status": 0,
- "trapper_hosts": "",
- "trends": 365,
- "units": "Bps",
- "username": "",
- "valuemapid": "0"
- }, {
- "itemid": "22827",
- "delay": 60,
- "hostid": "10073",
- "interfaceid": "0",
- "key_": "mysql.status[Com_begin]",
- "name": "MySQL begin operations per second",
- "type": 0,
- "value_type": 0,
- "authtype": 0,
- "data_type": 0,
- "delay_flex": "",
- "delta": 1,
- "description": "It requires user parameter mysql.status[*], which is defined in userparameter_mysql.conf.",
- "formula": 1.0,
- "history": 7,
- "inventory_link": 0,
- "ipmi_sensor": "",
- "logtimefmt": "",
- "mtime": 0,
- "multiplier": 0,
- "params": "",
- "password": "",
- "port": "",
- "privatekey": "",
- "publickey": "",
- "snmp_community": "",
- "snmp_oid": "",
- "snmpv3_authpassphrase": "",
- "snmpv3_authprotocol": 0,
- "snmpv3_contextname": "",
- "snmpv3_privpassphrase": "",
- "snmpv3_privprotocol": 0,
- "snmpv3_securitylevel": 0,
- "snmpv3_securityname": "",
- "status": 0,
- "trapper_hosts": "",
- "trends": 365,
- "units": "qps",
- "username": "",
- "valuemapid": "0"
- }, {
- "itemid": "22826",
- "delay": 60,
- "hostid": "10073",
- "interfaceid": "0",
- "key_": "mysql.status[Com_commit]",
- "name": "MySQL commit operations per second",
- "type": 0,
- "value_type": 0,
- "authtype": 0,
- "data_type": 0,
- "delay_flex": "",
- "delta": 1,
- "description": "It requires user parameter mysql.status[*], which is defined in userparameter_mysql.conf.",
- "formula": 1.0,
- "history": 7,
- "inventory_link": 0,
- "ipmi_sensor": "",
- "logtimefmt": "",
- "mtime": 0,
- "multiplier": 0,
- "params": "",
- "password": "",
- "port": "",
- "privatekey": "",
- "publickey": "",
- "snmp_community": "",
- "snmp_oid": "",
- "snmpv3_authpassphrase": "",
- "snmpv3_authprotocol": 0,
- "snmpv3_contextname": "",
- "snmpv3_privpassphrase": "",
- "snmpv3_privprotocol": 0,
- "snmpv3_securitylevel": 0,
- "snmpv3_securityname": "",
- "status": 0,
- "trapper_hosts": "",
- "trends": 365,
- "units": "qps",
- "username": "",
- "valuemapid": "0"
- }, {
- "itemid": "22828",
- "delay": 60,
- "hostid": "10073",
- "interfaceid": "0",
- "key_": "mysql.status[Com_delete]",
- "name": "MySQL delete operations per second",
- "type": 0,
- "value_type": 0,
- "authtype": 0,
- "data_type": 0,
- "delay_flex": "",
- "delta": 1,
- "description": "It requires user parameter mysql.status[*], which is defined in userparameter_mysql.conf.",
- "formula": 1.0,
- "history": 7,
- "inventory_link": 0,
- "ipmi_sensor": "",
- "logtimefmt": "",
- "mtime": 0,
- "multiplier": 0,
- "params": "",
- "password": "",
- "port": "",
- "privatekey": "",
- "publickey": "",
- "snmp_community": "",
- "snmp_oid": "",
- "snmpv3_authpassphrase": "",
- "snmpv3_authprotocol": 0,
- "snmpv3_contextname": "",
- "snmpv3_privpassphrase": "",
- "snmpv3_privprotocol": 0,
- "snmpv3_securitylevel": 0,
- "snmpv3_securityname": "",
- "status": 0,
- "trapper_hosts": "",
- "trends": 365,
- "units": "qps",
- "username": "",
- "valuemapid": "0"
- }, {
- "itemid": "22822",
- "delay": 60,
- "hostid": "10073",
- "interfaceid": "0",
- "key_": "mysql.status[Com_insert]",
- "name": "MySQL insert operations per second",
- "type": 0,
- "value_type": 0,
- "authtype": 0,
- "data_type": 0,
- "delay_flex": "",
- "delta": 1,
- "description": "It requires user parameter mysql.status[*], which is defined in userparameter_mysql.conf.",
- "formula": 1.0,
- "history": 7,
- "inventory_link": 0,
- "ipmi_sensor": "",
- "logtimefmt": "",
- "mtime": 0,
- "multiplier": 0,
- "params": "",
- "password": "",
- "port": "",
- "privatekey": "",
- "publickey": "",
- "snmp_community": "",
- "snmp_oid": "",
- "snmpv3_authpassphrase": "",
- "snmpv3_authprotocol": 0,
- "snmpv3_contextname": "",
- "snmpv3_privpassphrase": "",
- "snmpv3_privprotocol": 0,
- "snmpv3_securitylevel": 0,
- "snmpv3_securityname": "",
- "status": 0,
- "trapper_hosts": "",
- "trends": 365,
- "units": "qps",
- "username": "",
- "valuemapid": "0"
- }, {
- "itemid": "22825",
- "delay": 60,
- "hostid": "10073",
- "interfaceid": "0",
- "key_": "mysql.status[Com_rollback]",
- "name": "MySQL rollback operations per second",
- "type": 0,
- "value_type": 0,
- "authtype": 0,
- "data_type": 0,
- "delay_flex": "",
- "delta": 1,
- "description": "It requires user parameter mysql.status[*], which is defined in userparameter_mysql.conf.",
- "formula": 1.0,
- "history": 7,
- "inventory_link": 0,
- "ipmi_sensor": "",
- "logtimefmt": "",
- "mtime": 0,
- "multiplier": 0,
- "params": "",
- "password": "",
- "port": "",
- "privatekey": "",
- "publickey": "",
- "snmp_community": "",
- "snmp_oid": "",
- "snmpv3_authpassphrase": "",
- "snmpv3_authprotocol": 0,
- "snmpv3_contextname": "",
- "snmpv3_privpassphrase": "",
- "snmpv3_privprotocol": 0,
- "snmpv3_securitylevel": 0,
- "snmpv3_securityname": "",
- "status": 0,
- "trapper_hosts": "",
- "trends": 365,
- "units": "qps",
- "username": "",
- "valuemapid": "0"
- }, {
- "itemid": "22823",
- "delay": 60,
- "hostid": "10073",
- "interfaceid": "0",
- "key_": "mysql.status[Com_select]",
- "name": "MySQL select operations per second",
- "type": 0,
- "value_type": 0,
- "authtype": 0,
- "data_type": 0,
- "delay_flex": "",
- "delta": 1,
- "description": "It requires user parameter mysql.status[*], which is defined in userparameter_mysql.conf.",
- "formula": 1.0,
- "history": 7,
- "inventory_link": 0,
- "ipmi_sensor": "",
- "logtimefmt": "",
- "mtime": 0,
- "multiplier": 0,
- "params": "",
- "password": "",
- "port": "",
- "privatekey": "",
- "publickey": "",
- "snmp_community": "",
- "snmp_oid": "",
- "snmpv3_authpassphrase": "",
- "snmpv3_authprotocol": 0,
- "snmpv3_contextname": "",
- "snmpv3_privpassphrase": "",
- "snmpv3_privprotocol": 0,
- "snmpv3_securitylevel": 0,
- "snmpv3_securityname": "",
- "status": 0,
- "trapper_hosts": "",
- "trends": 365,
- "units": "qps",
- "username": "",
- "valuemapid": "0"
- }, {
- "itemid": "22824",
- "delay": 60,
- "hostid": "10073",
- "interfaceid": "0",
- "key_": "mysql.status[Com_update]",
- "name": "MySQL update operations per second",
- "type": 0,
- "value_type": 0,
- "authtype": 0,
- "data_type": 0,
- "delay_flex": "",
- "delta": 1,
- "description": "It requires user parameter mysql.status[*], which is defined in userparameter_mysql.conf.",
- "formula": 1.0,
- "history": 7,
- "inventory_link": 0,
- "ipmi_sensor": "",
- "logtimefmt": "",
- "mtime": 0,
- "multiplier": 0,
- "params": "",
- "password": "",
- "port": "",
- "privatekey": "",
- "publickey": "",
- "snmp_community": "",
- "snmp_oid": "",
- "snmpv3_authpassphrase": "",
- "snmpv3_authprotocol": 0,
- "snmpv3_contextname": "",
- "snmpv3_privpassphrase": "",
- "snmpv3_privprotocol": 0,
- "snmpv3_securitylevel": 0,
- "snmpv3_securityname": "",
- "status": 0,
- "trapper_hosts": "",
- "trends": 365,
- "units": "qps",
- "username": "",
- "valuemapid": "0"
- }, {
- "itemid": "22831",
- "delay": 60,
- "hostid": "10073",
- "interfaceid": "0",
- "key_": "mysql.status[Questions]",
- "name": "MySQL queries per second",
- "type": 0,
- "value_type": 0,
- "authtype": 0,
- "data_type": 0,
- "delay_flex": "",
- "delta": 1,
- "description": "It requires user parameter mysql.status[*], which is defined in userparameter_mysql.conf.",
- "formula": 1.0,
- "history": 7,
- "inventory_link": 0,
- "ipmi_sensor": "",
- "logtimefmt": "",
- "mtime": 0,
- "multiplier": 0,
- "params": "",
- "password": "",
- "port": "",
- "privatekey": "",
- "publickey": "",
- "snmp_community": "",
- "snmp_oid": "",
- "snmpv3_authpassphrase": "",
- "snmpv3_authprotocol": 0,
- "snmpv3_contextname": "",
- "snmpv3_privpassphrase": "",
- "snmpv3_privprotocol": 0,
- "snmpv3_securitylevel": 0,
- "snmpv3_securityname": "",
- "status": 0,
- "trapper_hosts": "",
- "trends": 365,
- "units": "qps",
- "username": "",
- "valuemapid": "0"
- }, {
- "itemid": "22832",
- "delay": 60,
- "hostid": "10073",
- "interfaceid": "0",
- "key_": "mysql.status[Slow_queries]",
- "name": "MySQL slow queries",
- "type": 0,
- "value_type": 3,
- "authtype": 0,
- "data_type": 0,
- "delay_flex": "",
- "delta": 0,
- "description": "It requires user parameter mysql.status[*], which is defined in userparameter_mysql.conf.",
- "formula": 1.0,
- "history": 7,
- "inventory_link": 0,
- "ipmi_sensor": "",
- "logtimefmt": "",
- "mtime": 0,
- "multiplier": 0,
- "params": "",
- "password": "",
- "port": "",
- "privatekey": "",
- "publickey": "",
- "snmp_community": "",
- "snmp_oid": "",
- "snmpv3_authpassphrase": "",
- "snmpv3_authprotocol": 0,
- "snmpv3_contextname": "",
- "snmpv3_privpassphrase": "",
- "snmpv3_privprotocol": 0,
- "snmpv3_securitylevel": 0,
- "snmpv3_securityname": "",
- "status": 0,
- "trapper_hosts": "",
- "trends": 365,
- "units": "",
- "username": "",
- "valuemapid": "0"
- }, {
- "itemid": "22820",
- "delay": 60,
- "hostid": "10073",
- "interfaceid": "0",
- "key_": "mysql.status[Uptime]",
- "name": "MySQL uptime",
- "type": 0,
- "value_type": 3,
- "authtype": 0,
- "data_type": 0,
- "delay_flex": "",
- "delta": 0,
- "description": "It requires user parameter mysql.status[*], which is defined in userparameter_mysql.conf.",
- "formula": 1.0,
- "history": 7,
- "inventory_link": 0,
- "ipmi_sensor": "",
- "logtimefmt": "",
- "mtime": 0,
- "multiplier": 0,
- "params": "",
- "password": "",
- "port": "",
- "privatekey": "",
- "publickey": "",
- "snmp_community": "",
- "snmp_oid": "",
- "snmpv3_authpassphrase": "",
- "snmpv3_authprotocol": 0,
- "snmpv3_contextname": "",
- "snmpv3_privpassphrase": "",
- "snmpv3_privprotocol": 0,
- "snmpv3_securitylevel": 0,
- "snmpv3_securityname": "",
- "status": 0,
- "trapper_hosts": "",
- "trends": 365,
- "units": "uptime",
- "username": "",
- "valuemapid": "0"
- }, {
- "itemid": "22821",
- "delay": 3600,
- "hostid": "10073",
- "interfaceid": "0",
- "key_": "mysql.version",
- "name": "MySQL version",
- "type": 0,
- "value_type": 1,
- "authtype": 0,
- "data_type": 0,
- "delay_flex": "",
- "delta": 0,
- "description": "It requires user parameter mysql.version, which is defined in userparameter_mysql.conf.",
- "formula": 1.0,
- "history": 7,
- "inventory_link": 0,
- "ipmi_sensor": "",
- "logtimefmt": "",
- "mtime": 0,
- "multiplier": 0,
- "params": "",
- "password": "",
- "port": "",
- "privatekey": "",
- "publickey": "",
- "snmp_community": "",
- "snmp_oid": "",
- "snmpv3_authpassphrase": "",
- "snmpv3_authprotocol": 0,
- "snmpv3_contextname": "",
- "snmpv3_privpassphrase": "",
- "snmpv3_privprotocol": 0,
- "snmpv3_securitylevel": 0,
- "snmpv3_securityname": "",
- "status": 0,
- "trapper_hosts": "",
- "trends": 0,
- "units": "",
- "username": "",
- "valuemapid": "0"
- }],
- "discoveries": [],
- "triggers": [{
- "triggerid": "13327",
- "description": "MySQL is down",
- "expression": "{13155}=0",
- "comments": "",
- "priority": 2,
- "status": 0,
- "type": 0,
- "url": ""
- }],
- "graphs": [{
- "graphid": "454",
- "height": 200,
- "name": "MySQL operations",
- "width": 900,
- "flags": 0,
- "graphtype": 0,
- "percent_left": 0.0,
- "percent_right": 0.0,
- "show_3d": 0,
- "show_legend": 1,
- "show_work_period": 1,
- "templateid": "0",
- "yaxismax": 100.0,
- "yaxismin": 0.0,
- "ymax_itemid": "0",
- "ymax_type": 0,
- "ymin_itemid": "0",
- "ymin_type": 0
- }, {
- "graphid": "455",
- "height": 200,
- "name": "MySQL bandwidth",
- "width": 900,
- "flags": 0,
- "graphtype": 0,
- "percent_left": 0.0,
- "percent_right": 0.0,
- "show_3d": 0,
- "show_legend": 1,
- "show_work_period": 1,
- "templateid": "0",
- "yaxismax": 100.0,
- "yaxismin": 0.0,
- "ymax_itemid": "0",
- "ymax_type": 0,
- "ymin_itemid": "0",
- "ymin_type": 0
- }],
- "applications": [{
- "applicationid": "251",
- "hostid": "10073",
- "name": "MySQL",
- "templateids": []
- }],
- "macros": [],
- "screens": [{
- "screenid": "15",
- "name": "MySQL performance",
- "hsize": 2,
- "vsize": 1
- }]
- }],
- "triggers": [],
- "items": [],
- "graphs": [],
- "applications": [],
- "httptests": []
- }],
- "id": "fbf7b6ea-ec1e-4728-b1d6-d00801a013e7",
- "auth": "6b11605bcbeecc750a7bab17c77c89fd"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement