Hi,<br>   I have sizeable installation of nagios server.  I have two server with failover setup.  Since I am using ndo, my server takes a long time to start up.  While my primary servers doing initial insertion and deletion, my backup thinks primary is not in service so it starts notifications instead of primary.   <br>
<br>   I am trying to see how I can resolve this issue.  I have downloaded the newer version of ndo but it did not help.  I think it has to do with my indexing.  I have read the following thread which talks about reducing the table size by lowering the retention time. <br>
<br><a href="http://www.mail-archive.com/nagios-users@lists.sourceforge.net/msg23938.html">http://www.mail-archive.com/nagios-users@lists.sourceforge.net/msg23938.html</a><br><br>  However my requirement is that I have to keep most of hostchecks, servicechecks and events for longtime.  Also, in another post Jim Avery mentioned the following.<br>
<br>  innodb_flush_log_at_trx_commit = 2<br>
<br>What does innodb flush means when it comes to master-master replication between primary and secondary. Please advise on this.  Thanks<br><br><br><br><br>Following are my current indexes --<br><br>mysql> show indexes from nagios_objects;<br>
+----------------+------------+---------------+--------------+---------------+-----------+-------------+----------+--------+------+------------+---------+<br>| Table          | Non_unique | Key_name      | Seq_in_index | Column_name   | Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comment |<br>
+----------------+------------+---------------+--------------+---------------+-----------+-------------+----------+--------+------+------------+---------+<br>| nagios_objects |          0 | PRIMARY       |            1 | object_id     | A         |       26095 |     NULL | NULL   |      | BTREE      |         | <br>
| nagios_objects |          1 | objecttype_id |            1 | objecttype_id | A         |           3 |     NULL | NULL   |      | BTREE      |         | <br>| nagios_objects |          1 | objecttype_id |            2 | name1         | A         |       26095 |     NULL | NULL   |      | BTREE      |         | <br>
| nagios_objects |          1 | objecttype_id |            3 | name2         | A         |       26095 |     NULL | NULL   | YES  | BTREE      |         | <br>+----------------+------------+---------------+--------------+---------------+-----------+-------------+----------+--------+------+------------+---------+<br>
4 rows in set (0.01 sec)<br><br><br><br>mysql> show indexes from nagios_hostchecks;<br>+-------------------+------------+-------------+--------------+-----------------+-----------+-------------+----------+--------+------+------------+---------+<br>
| Table             | Non_unique | Key_name    | Seq_in_index | Column_name     | Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comment |<br>+-------------------+------------+-------------+--------------+-----------------+-----------+-------------+----------+--------+------+------------+---------+<br>
| nagios_hostchecks |          0 | PRIMARY     |            1 | hostcheck_id    | A         |    12532724 |     NULL | NULL   |      | BTREE      |         | <br>| nagios_hostchecks |          0 | instance_id |            1 | instance_id     | A         |          16 |     NULL | NULL   |      | BTREE      |         | <br>
| nagios_hostchecks |          0 | instance_id |            2 | host_object_id  | A         |          16 |     NULL | NULL   |      | BTREE      |         | <br>| nagios_hostchecks |          0 | instance_id |            3 | start_time      | A         |    12532724 |     NULL | NULL   |      | BTREE      |         | <br>
| nagios_hostchecks |          0 | instance_id |            4 | start_time_usec | A         |    12532724 |     NULL | NULL   |      | BTREE      |         | <br>+-------------------+------------+-------------+--------------+-----------------+-----------+-------------+----------+--------+------+------------+---------+<br>
5 rows in set (0.14 sec)<br><br><br>mysql> show indexes from nagios_servicechecks;<br>+----------------------+------------+-------------+--------------+-------------------+-----------+-------------+----------+--------+------+------------+---------+<br>
| Table                | Non_unique | Key_name    | Seq_in_index | Column_name       | Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comment |<br>+----------------------+------------+-------------+--------------+-------------------+-----------+-------------+----------+--------+------+------------+---------+<br>
| nagios_servicechecks |          0 | PRIMARY     |            1 | servicecheck_id   | A         |    19555522 |     NULL | NULL   |      | BTREE      |         | <br>| nagios_servicechecks |          0 | instance_id |            1 | instance_id       | A         |          17 |     NULL | NULL   |      | BTREE      |         | <br>
| nagios_servicechecks |          0 | instance_id |            2 | service_object_id | A         |          17 |     NULL | NULL   |      | BTREE      |         | <br>| nagios_servicechecks |          0 | instance_id |            3 | start_time        | A         |    19555522 |     NULL | NULL   |      | BTREE      |         | <br>
| nagios_servicechecks |          0 | instance_id |            4 | start_time_usec   | A         |    19555522 |     NULL | NULL   |      | BTREE      |         | <br>+----------------------+------------+-------------+--------------+-------------------+-----------+-------------+----------+--------+------+------------+---------+<br>
5 rows in set (0.32 sec)<br><br><br><br><br> show indexes from nagios_timedevents;<br>+--------------------+------------+-------------+--------------+----------------+-----------+-------------+----------+--------+------+------------+---------+<br>
| Table              | Non_unique | Key_name    | Seq_in_index | Column_name    | Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comment |<br>+--------------------+------------+-------------+--------------+----------------+-----------+-------------+----------+--------+------+------------+---------+<br>
| nagios_timedevents |          0 | PRIMARY     |            1 | timedevent_id  | A         |           0 |     NULL | NULL   |      | BTREE      |         | <br>| nagios_timedevents |          0 | instance_id |            1 | instance_id    | A         |           0 |     NULL | NULL   |      | BTREE      |         | <br>
| nagios_timedevents |          0 | instance_id |            2 | event_type     | A         |           0 |     NULL | NULL   |      | BTREE      |         | <br>| nagios_timedevents |          0 | instance_id |            3 | scheduled_time | A         |           0 |     NULL | NULL   |      | BTREE      |         | <br>
| nagios_timedevents |          0 | instance_id |            4 | object_id      | A         |           0 |     NULL | NULL   |      | BTREE      |         | <br>+--------------------+------------+-------------+--------------+----------------+-----------+-------------+----------+--------+------+------------+---------+<br>
5 rows in set (0.00 sec)<br><br><br><br><br><br>  <br clear="all"><br>-- <br>Cordially,<br>Shadhin Rahman<br>