Skip to content
This repository has been archived by the owner on Jan 15, 2019. It is now read-only.

[dev.icinga.com #1106] do not clear host|service status tables on core restart/reload #506

Closed
icinga-migration opened this issue Jan 12, 2011 · 3 comments

Comments

@icinga-migration
Copy link

This issue has been migrated from Redmine: https://dev.icinga.com/issues/1106

Created by mfriedrich on 2011-01-12 13:43:44 +00:00

Assignee: mfriedrich
Status: Resolved (closed on 2011-01-19 15:15:24 +00:00)
Target Version: 1.3
Last Update: 2014-12-08 14:34:47 +00:00 (in Redmine)


this patch would mean:

  • reload/restart icinga
  • no cleanup of status tables
  • icinga-web would not recognize that
  • if config is not active/there, the selects will ignore it

https://secure.opsera.com/wsvn/wsvn/opsview/trunk/opsview-base/patches/ndoutils\_stop\_logging\_retained\_states\_to\_ndo.patch

                /* clear realtime data */
                ndo2db_db_clear_table(idi,ndo2db_db_tablenames[NDO2DB_DBTABLE_PROGRAMSTATUS]);
-               ndo2db_db_clear_table(idi,ndo2db_db_tablenames[NDO2DB_DBTABLE_HOSTSTATUS]);
-               ndo2db_db_clear_table(idi,ndo2db_db_tablenames[NDO2DB_DBTABLE_SERVICESTATUS]);
+               /* Because of disabling the sending of the retained host/service status, we can't
+                * clear this table on a load any more, otherwise a nagios reload necessitates an entire
+                * cycle of each check to get status. This means deleted hosts and services might still exist
+                * in this table over time, but will not be in the config tables, so will be ignored. */
+               /* ndo2db_db_clear_table(idi,ndo2db_db_tablenames[NDO2DB_DBTABLE_HOSTSTATUS]);  */
+               /* ndo2db_db_clear_table(idi,ndo2db_db_tablenames[NDO2DB_DBTABLE_SERVICESTATUS]); */
                ndo2db_db_clear_table(idi,ndo2db_db_tablenames[NDO2DB_DBTABLE_CONTACTSTATUS]);
                ndo2db_db_clear_table(idi,ndo2db_db_tablenames[NDO2DB_DBTABLE_TIMEDEVENTQUEUE]);
                ndo2db_db_clear_table(idi,ndo2db_db_tablenames[NDO2DB_DBTABLE_COMMENTS]);

Changesets

2011-01-19 13:57:15 +00:00 by mfriedrich d8be7c8

idoutils: do not clear host|service status tables on core restart/reload (inspired by Opsview) #1106

fixes #1106

Relations:

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2011-01-19 13:44:34 +00:00

  • Subject changed from do not clear status tables on core restart/reload to do not clear host|service status tables on core restart/reload

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2011-01-19 15:15:24 +00:00

  • Status changed from Assigned to Resolved
  • Done % changed from 0 to 100

Applied in changeset commit:"d8be7c8476dd93694578a662cdd5ed96e16be5ef".

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2014-12-08 14:34:47 +00:00

  • Project changed from 18 to Core, Classic UI, IDOUtils
  • Category set to IDOUtils

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant