I just compiled Zabbix 1.8 from source on a Debian box and I can't get the service to start from the init script. I get a bunch of SQL errors in /var/log/zabbix-server/zabbix-server.log. All of them mention the same unknown column. I've followed the install instructions and have added the schema to my DB (MySQL). What am I missing? Here is an excerpt of the log.
Code:
16767:20100517:104825 Query::select count(*),min(nextcheck) from items i,hosts h where h.status=0 and h.disable_until<1274111305 and h.errors_from=0 and h.hostid=i.hostid and i.status in (0,3) and i.type not in (2,7,9) and mod(i.itemid,5)=1 and i.key_ not in ('status','icmpping','icmppingsec','zabbix[log]') and h.hostid>=100000000000000*0 and h.hostid<=(100000000000000*0+99999999999999)
16767:20100517:104825 Query failed:Unknown column 'nextcheck' in 'field list' [1054]
16768:20100517:104825 Query::select i.itemid,i.key_,h.host,h.port,i.delay,i.description,i.nextcheck,i.type,i.snmp_community,i.snmp_oid,h.useip,h.ip,i.history,i.lastvalue,i.prevvalue,i.hostid,h.status,i.value_type,h.errors_from,i.snmp_port,i.delta,i.prevorgvalue,i.lastclock,i.units,i.multiplier,i.snmpv3_securityname,i.snmpv3_securitylevel,i.snmpv3_authpassphrase,i.snmpv3_privpassphrase,i.formula,h.available,i.status,i.trapper_hosts,i.logtimefmt,i.valuemapid,i.delay_flex,h.dns from hosts h, items i where i.nextcheck<=1274111305 and i.status in (0,3) and i.type not in (2,7,9) and h.status=0 and h.disable_until<=1274111305 and h.errors_from=0 and h.hostid=i.hostid and mod(i.itemid,5)=2 and i.key_ not in ('status','icmpping','icmppingsec','zabbix[log]') and h.hostid>=100000000000000*0 and h.hostid<=(100000000000000*0+99999999999999) order by i.nextcheck
16768:20100517:104825 Query failed:Unknown column 'i.nextcheck' in 'field list' [1054]
16768:20100517:104825 Query::select count(*),min(nextcheck) from items i,hosts h where h.status=0 and h.disable_until<1274111305 and h.errors_from=0 and h.hostid=i.hostid and i.status in (0,3) and i.type not in (2,7,9) and mod(i.itemid,5)=2 and i.key_ not in ('status','icmpping','icmppingsec','zabbix[log]') and h.hostid>=100000000000000*0 and h.hostid<=(100000000000000*0+99999999999999)
16768:20100517:104825 Query failed:Unknown column 'nextcheck' in 'field list' [1054]
16766:20100517:104825 Query::select i.itemid,i.key_,h.host,h.port,i.delay,i.description,i.nextcheck,i.type,i.snmp_community,i.snmp_oid,h.useip,h.ip,i.history,i.lastvalue,i.prevvalue,i.hostid,h.status,i.value_type,h.errors_from,i.snmp_port,i.delta,i.prevorgvalue,i.lastclock,i.units,i.multiplier,i.snmpv3_securityname,i.snmpv3_securitylevel,i.snmpv3_authpassphrase,i.snmpv3_privpassphrase,i.formula,h.available,i.status,i.trapper_hosts,i.logtimefmt,i.valuemapid,i.delay_flex,h.dns from hosts h, items i where i.nextcheck<=1274111305 and i.status in (0,3) and i.type not in (2,7,9) and h.status=0 and h.disable_until<=1274111305 and h.errors_from=0 and h.hostid=i.hostid and mod(i.itemid,5)=0 and i.key_ not in ('status','icmpping','icmppingsec','zabbix[log]') and h.hostid>=100000000000000*0 and h.hostid<=(100000000000000*0+99999999999999) order by i.nextcheck
16766:20100517:104825 Query failed:Unknown column 'i.nextcheck' in 'field list' [1054]
16766:20100517:104825 Query::select count(*),min(nextcheck) from items i,hosts h where h.status=0 and h.disable_until<1274111305 and h.errors_from=0 and h.hostid=i.hostid and i.status in (0,3) and i.type not in (2,7,9) and mod(i.itemid,5)=0 and i.key_ not in ('status','icmpping','icmppingsec','zabbix[log]') and h.hostid>=100000000000000*0 and h.hostid<=(100000000000000*0+99999999999999)
16766:20100517:104825 Query failed:Unknown column 'nextcheck' in 'field list' [1054]
16769:20100517:104825 Query::select i.itemid,i.key_,h.host,h.port,i.delay,i.description,i.nextcheck,i.type,i.snmp_community,i.snmp_oid,h.useip,h.ip,i.history,i.lastvalue,i.prevvalue,i.hostid,h.status,i.value_type,h.errors_from,i.snmp_port,i.delta,i.prevorgvalue,i.lastclock,i.units,i.multiplier,i.snmpv3_securityname,i.snmpv3_securitylevel,i.snmpv3_authpassphrase,i.snmpv3_privpassphrase,i.formula,h.available,i.status,i.trapper_hosts,i.logtimefmt,i.valuemapid,i.delay_flex,h.dns from hosts h, items i where i.nextcheck<=1274111305 and i.status in (0,3) and i.type not in (2,7,9) and h.status=0 and h.disable_until<=1274111305 and h.errors_from=0 and h.hostid=i.hostid and mod(i.itemid,5)=3 and i.key_ not in ('status','icmpping','icmppingsec','zabbix[log]') and h.hostid>=100000000000000*0 and h.hostid<=(100000000000000*0+99999999999999) order by i.nextcheck
16769:20100517:104825 Query failed:Unknown column 'i.nextcheck' in 'field list' [1054]
16769:20100517:104825 Query::select count(*),min(nextcheck) from items i,hosts h where h.status=0 and h.disable_until<1274111305 and h.errors_from=0 and h.hostid=i.hostid and i.status in (0,3) and i.type not in (2,7,9) and mod(i.itemid,5)=3 and i.key_ not in ('status','icmpping','icmppingsec','zabbix[log]') and h.hostid>=100000000000000*0 and h.hostid<=(100000000000000*0+99999999999999)
16769:20100517:104825 Query failed:Unknown column 'nextcheck' in 'field list' [1054]
16770:20100517:104825 Query::select i.itemid,i.key_,h.host,h.port,i.delay,i.description,i.nextcheck,i.type,i.snmp_community,i.snmp_oid,h.useip,h.ip,i.history,i.lastvalue,i.prevvalue,i.hostid,h.status,i.value_type,h.errors_from,i.snmp_port,i.delta,i.prevorgvalue,i.lastclock,i.units,i.multiplier,i.snmpv3_securityname,i.snmpv3_securitylevel,i.snmpv3_authpassphrase,i.snmpv3_privpassphrase,i.formula,h.available,i.status,i.trapper_hosts,i.logtimefmt,i.valuemapid,i.delay_flex,h.dns from hosts h, items i where i.nextcheck<=1274111305 and i.status in (0,3) and i.type not in (2,7,9) and h.status=0 and h.disable_until<=1274111305 and h.errors_from=0 and h.hostid=i.hostid and mod(i.itemid,5)=4 and i.key_ not in ('status','icmpping','icmppingsec','zabbix[log]') and h.hostid>=100000000000000*0 and h.hostid<=(100000000000000*0+99999999999999) order by i.nextcheck
16770:20100517:104825 Query failed:Unknown column 'i.nextcheck' in 'field list' [1054]
16770:20100517:104825 Query::select count(*),min(nextcheck) from items i,hosts h where h.status=0 and h.disable_until<1274111305 and h.errors_from=0 and h.hostid=i.hostid and i.status in (0,3) and i.type not in (2,7,9) and mod(i.itemid,5)=4 and i.key_ not in ('status','icmpping','icmppingsec','zabbix[log]') and h.hostid>=100000000000000*0 and h.hostid<=(100000000000000*0+99999999999999)
16770:20100517:104825 Query failed:Unknown column 'nextcheck' in 'field list' [1054]
16782:20100517:104825 Query::select h.hostid,min(i.itemid) from hosts h,items i where mod(h.hostid,1)=0 and i.nextcheck<=1274111305 and i.status in (0) and i.type not in (2,7,9) and h.status=0 and h.disable_until<=1274111305 and h.errors_from!=0 and h.hostid=i.hostid and i.key_ not in ('status','icmpping','icmppingsec','zabbix[log]') and h.hostid>=100000000000000*0 and h.hostid<=(100000000000000*0+99999999999999) group by h.hostid
16782:20100517:104825 Query failed:Unknown column 'i.nextcheck' in 'where clause' [1054]
16782:20100517:104825 Query::select count(*),min(nextcheck) as nextcheck from items i,hosts h where mod(h.hostid,1)=0 and i.nextcheck<=1274111305 and i.status in (0) and i.type not in (2,7,9) and h.status=0 and h.disable_until<=1274111305 and h.errors_from!=0 and h.hostid=i.hostid and i.key_ not in ('status','icmpping','icmppingsec','zabbix[log]') and h.hostid>=100000000000000*0 and h.hostid<=(100000000000000*0+99999999999999) order by nextcheck
16782:20100517:104825 Query failed:Unknown column 'nextcheck' in 'field list' [1054]
Comment