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

[dev.icinga.com #1667] add a check for status data freshness into cgis #665

Closed
icinga-migration opened this issue Jun 20, 2011 · 6 comments

Comments

@icinga-migration
Copy link

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

Created by mfriedrich on 2011-06-20 16:41:36 +00:00

Assignee: ricardo
Status: Resolved (closed on 2011-06-21 01:46:10 +00:00)
Target Version: 1.5
Last Update: 2014-12-08 09:32:35 +00:00 (in Redmine)


sometimes it may happen that the daemon remains dead, or the status.dat is still there (sigsegv). it would be worthwile having that checked during the refresh interval and telling the user if it is outdated (cfg option with value to be set, e.g. 500 sec).

Attachments

Changesets

2011-06-20 20:25:40 +00:00 by ricardo 487cdaa

add a check for status data freshness into cgis #1667

fixes: #1667

* gives a warining of outdated status data with a 10 second delay

2011-06-28 07:09:50 +00:00 by ricardo 8cc0b64

add a check for status data freshness into cgis #1667

fixes: #1667

* gives a warining of outdated status data with a 10 second delay
@icinga-migration
Copy link
Author

Updated by mfriedrich on 2011-06-20 17:05:36 +00:00

info {
        created=1308589064
        version=1.4.0
        }

case XSDDEFAULT_INFO_DATA:
break;

can be adapted, but needs another global variable (status_file_creation_time).

or like others scripts do, use the first 'last_check' from the hoststatus entries, which might not be sufficient ofc.

@icinga-migration
Copy link
Author

Updated by ricardo on 2011-06-20 20:31:52 +00:00

  • Assigned to set to ricardo
  • Done % changed from 0 to 90

sounds very good.

added to "test/cgis"

@icinga-migration
Copy link
Author

Updated by ricardo on 2011-06-20 20:58:14 +00:00

  • Status changed from New to Feedback

@icinga-migration
Copy link
Author

Updated by ricardo on 2011-06-21 01:46:10 +00:00

  • Status changed from Feedback to Resolved
  • Done % changed from 90 to 100

Applied in changeset 487cdaa.

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2011-06-24 08:11:03 +00:00

  • File added icinga_classicui_status_data_outdated.png

works like a charm, thanks!

icinga_classicui_status_data_outdated.png

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2014-12-08 09:32:35 +00:00

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

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