Feature #1667

add a check for status data freshness into cgis

Added by dnsmichi about 4 years ago. Updated 9 months ago.

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

100%

Category:Classic UI
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 about 4 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 about 4 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 about 4 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 about 4 years ago

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

sounds very good.

added to "test/cgis"

#3 Updated by ricardo about 4 years ago

  • Status changed from New to Feedback

#4 Updated by ricardo about 4 years ago

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

#5 Updated by dnsmichi about 4 years ago

works like a charm, thanks!

#6 Updated by dnsmichi 9 months ago

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

Also available in: Atom PDF