I'm trying to add a new host for the first time since upgraded from 1.6.7 to 1.8. I'm adding only the basic elements for name, group, dns and connect to settings. There are no IPMI settings being added to the host. We're running on an Oracle 10.2 database.
Details
When we applied the 1.8 patch for Oracle we did receive errors on NULL settings:
When we checked the Oracle tables other items were set to accept NULL so we quick fixed these entries by removing the NOT NULL settings.
Is this an acceptable quick fix for the errors above as well?
Details
Code:
ERROR: Cannot add host
* SQL error [ORA-01400: cannot insert NULL into ("ZABBIX"."HOSTS"."IPMI_IP")] in [INSERT INTO hosts (hostid, proxy_hostid, host, port, status, useip, dns, ip, disable_until, available,useipmi,ipmi_port,ipmi_authtype,ipmi_privilege,ipmi_username,ipmi_password,ipmi_ip) VALUES (10118,0,'test',10050,0,1,'test','0.0.0.0',0,0,0,623,-1,2,'','','')]
* SQL error [ORA-01400: cannot insert NULL into ("ZABBIX"."HOSTS"."IPMI_IP")] in [INSERT INTO hosts (hostid, proxy_hostid, host, port, status, useip, dns, ip, disable_until, available,useipmi,ipmi_port,ipmi_authtype,ipmi_privilege,ipmi_username,ipmi_password,ipmi_ip) VALUES (10118,0,'test',10050,0,1,'test','0.0.0.0',0,0,0,623,-1,2,'','','')]
Code:
alter table hosts add ipmi_error nvarchar2(128) DEFAULT '' NOT NULL alter table hosts add snmp_error nvarchar2(128) DEFAULT '' NOT NULL alter table items add username nvarchar2(64) DEFAULT '' NOT NULL alter table items add password nvarchar2(64) DEFAULT '' NOT NULL alter table items add publickey nvarchar2(64) DEFAULT '' NOT NULL alter table items add privatekey nvarchar2(64) DEFAULT '' NOT NULL
Is this an acceptable quick fix for the errors above as well?
Comment