fix type of useip  and main parameter, it is  an int not bool https://www.zabbix.com/documentation/2.0/manual/appendix/api/hostinterface/definitions#host_interface