Hi,
I'm updating this week from zabbix 1.8 to 2.0. In my custom dashboard I get in trigger.get the IP into the host. Now in the version 2.0 I don't have ip. Any idea parameter? I check the doc but nothing explain about the IP.
This is my zabbix 2 host[] info.
'hosts': [
{
'available': '1',
'maintenance_type': '0',
'maintenances': [
],
'ipmi_username': u'',
'snmp_disable_until': '0',
'ipmi_authtype': '-1',
'ipmi_disable_until': '0',
'lastaccess': '0',
'snmp_error': u'',
'ipmi_privilege': '2',
'jmx_error': u'',
'jmx_available': '0',
'ipmi_errors_from': '0',
'maintenanceid': '0',
'snmp_available': '0',
'status': '0',
'host': 'test1',
'disable_until': '0',
'ipmi_password': u'',
'ipmi_available': '0',
'maintenance_status': '0',
'snmp_errors_from': '0',
'ipmi_error': u'',
'proxy_hostid': '0',
'hostid': '10084',
'name': 'test1',
'jmx_errors_from': '0',
'jmx_disable_until': '0',
'error': u'',
'maintenance_from': '0',
'errors_from': '0'
}
]
And my call to the system with python lib.
triggers = zapi.trigger.get(
only_true=1,
active=1,
output='extend',
sortorder='DESC',
monitored=1,
selectHosts = 'extend',
maintenance= 0,
min_severity=2,
skipDependent=1
)
Any idea?
Cheers!
Eloy Coto
I'm updating this week from zabbix 1.8 to 2.0. In my custom dashboard I get in trigger.get the IP into the host. Now in the version 2.0 I don't have ip. Any idea parameter? I check the doc but nothing explain about the IP.
This is my zabbix 2 host[] info.
'hosts': [
{
'available': '1',
'maintenance_type': '0',
'maintenances': [
],
'ipmi_username': u'',
'snmp_disable_until': '0',
'ipmi_authtype': '-1',
'ipmi_disable_until': '0',
'lastaccess': '0',
'snmp_error': u'',
'ipmi_privilege': '2',
'jmx_error': u'',
'jmx_available': '0',
'ipmi_errors_from': '0',
'maintenanceid': '0',
'snmp_available': '0',
'status': '0',
'host': 'test1',
'disable_until': '0',
'ipmi_password': u'',
'ipmi_available': '0',
'maintenance_status': '0',
'snmp_errors_from': '0',
'ipmi_error': u'',
'proxy_hostid': '0',
'hostid': '10084',
'name': 'test1',
'jmx_errors_from': '0',
'jmx_disable_until': '0',
'error': u'',
'maintenance_from': '0',
'errors_from': '0'
}
]
And my call to the system with python lib.
triggers = zapi.trigger.get(
only_true=1,
active=1,
output='extend',
sortorder='DESC',
monitored=1,
selectHosts = 'extend',
maintenance= 0,
min_severity=2,
skipDependent=1
)
Any idea?
Cheers!
Eloy Coto
Comment