Feature #1667

add a check for status data freshness into cgis

Added by dnsmichi almost 3 years ago. Updated almost 3 years ago.

Status:ResolvedStart date:06/20/2011
Priority:NormalDue date:
Assignee:ricardo% Done:

100%

Category:-
Target version:Icinga 1.x - 1.5

Description

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).

icinga_classicui_status_data_outdated.png (2.62 KB) dnsmichi, 06/24/2011 10:11 am

Associated revisions

Revision 487cdaab
Added by ricardo almost 3 years ago

add a check for status data freshness into cgis #1667

fixes: #1667

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

Revision 8cc0b64d
Added by ricardo almost 3 years ago

add a check for status data freshness into cgis #1667

fixes: #1667

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

History

#1 Updated by dnsmichi almost 3 years ago

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.

#2 Updated by ricardo almost 3 years ago

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

sounds very good.

added to "test/cgis"

#3 Updated by ricardo almost 3 years ago

  • Status changed from New to Feedback

#4 Updated by ricardo almost 3 years ago

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

Applied in changeset commit:487cdaab9e72fe7b4f48dd7a2c37f22b8e2cb690.

#5 Updated by dnsmichi almost 3 years ago

works like a charm, thanks!

Also available in: Atom PDF