Closed gzcwnk closed 6 years ago
When I re-try setting up the database I get,
root@ininga-001:~# !115
mysql -u root icingadb -p < /usr/share/icinga2-ido-mysql/schema/mysql.sql
Enter password:
ERROR 1060 (42S21) at line 1436: Duplicate column name 'endpoint_object_id'
root@ininga-001:~#
So around line 1436 I see,
CREATE TABLE IF NOT EXISTS icinga_zonestatus (
zonestatus_id bigint(20) unsigned NOT NULL AUTO_INCREMENT,
instance_id bigint unsigned default 0,
zone_object_id bigint(20) unsigned DEFAULT '0',
status_update_time timestamp NULL DEFAULT NULL,
parent_zone_object_id bigint(20) unsigned DEFAULT '0',
PRIMARY KEY (zonestatus_id)
) ENGINE=InnoDB COMMENT='Zone status';
line 1436--> ALTER TABLE icinga_servicestatus ADD COLUMN endpoint_object_id bigint default NULL;
ALTER TABLE icinga_hoststatus ADD COLUMN endpoint_object_id bigint default NULL;
ALTER TABLE icinga_contactstatus ADD COLUMN endpoint_object_id bigint default NULL;
ALTER TABLE icinga_programstatus ADD COLUMN endpoint_object_id bigint default NULL;
Not sure what you are doing here. Sounds like a problem with importing the database schema at first glance. Debian provides a popup configuration mechanism to do so, nothing you would need to do manually.
Please also use Markdown formatting as suggested by the issue template.
Closing as no feedback was received.
Attempted to install icinga
Expected Behavior
icinga2 should be running but it is not
Current Behavior
Possible Solution
Steps to Reproduce (for bugs)
Context
make icinga2 work.
Your Environment
icinga2 --version
):icinga2 feature list
):icinga2 daemon -C
):zones.conf
file (oricinga2 object list --type Endpoint
andicinga2 object list --type Zone
) from all affected nodes.