{"action":"created","issue":{"url":"https://api.github.com/repos/naparuba/shinken/issues/1301","labels_url":"https://api.github.com/repos/naparuba/shinken/issues/1301/labels{/name}","comments_url":"https://api.github.com/repos/naparuba/shinken/issues/1301/comments","events_url":"https://api.github.com/repos/naparuba/shinken/issues/1301/events","html_url":"https://github.com/naparuba/shinken/issues/1301","id":40349466,"number":1301,"title":"State retention and freshness checks","user":{"login":"Corbyn","id":8446952,"avatar_url":"https://avatars.githubusercontent.com/u/8446952?v=3","gravatar_id":"","url":"https://api.github.com/users/Corbyn","html_url":"https://github.com/Corbyn","followers_url":"https://api.github.com/users/Corbyn/followers","following_url":"https://api.github.com/users/Corbyn/following{/other_user}","gists_url":"https://api.github.com/users/Corbyn/gists{/gist_id}","starred_url":"https://api.github.com/users/Corbyn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Corbyn/subscriptions","organizations_url":"https://api.github.com/users/Corbyn/orgs","repos_url":"https://api.github.com/users/Corbyn/repos","events_url":"https://api.github.com/users/Corbyn/events{/privacy}","received_events_url":"https://api.github.com/users/Corbyn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/naparuba/shinken/milestones/10","html_url":"https://github.com/naparuba/shinken/milestones/Not%20prioritized","labels_url":"https://api.github.com/repos/naparuba/shinken/milestones/10/labels","id":164737,"number":10,"title":"Not prioritized","description":"If you need a feature in this milestone, please assign yourself the ticket and propose a patch. Thank you :)","creator":{"login":"naparuba","id":445325,"avatar_url":"https://avatars.githubusercontent.com/u/445325?v=3","gravatar_id":"","url":"https://api.github.com/users/naparuba","html_url":"https://github.com/naparuba","followers_url":"https://api.github.com/users/naparuba/followers","following_url":"https://api.github.com/users/naparuba/following{/other_user}","gists_url":"https://api.github.com/users/naparuba/gists{/gist_id}","starred_url":"https://api.github.com/users/naparuba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naparuba/subscriptions","organizations_url":"https://api.github.com/users/naparuba/orgs","repos_url":"https://api.github.com/users/naparuba/repos","events_url":"https://api.github.com/users/naparuba/events{/privacy}","received_events_url":"https://api.github.com/users/naparuba/received_events","type":"User","site_admin":false},"open_issues":41,"closed_issues":78,"state":"open","created_at":"2012-08-23T13:25:11Z","updated_at":"2015-04-28T14:27:26Z","due_on":"2015-12-25T08:00:00Z","closed_at":null},"comments":5,"created_at":"2014-08-15T13:54:33Z","updated_at":"2015-05-18T12:25:14Z","closed_at":null,"body":"Hi,\r\n\r\nif state retention is active and passive checks have 'check_freshness' option enabled, all these checks will be stale when shinken was down longer than the freshness_threshold value.\r\nThis can result in a huge list of WARNINGS after a shinken restart, because mostly the 'check_dummy' command for passive checks will be configured to alert a WARNING when passive check results are stale.\r\n\r\nI think after a shinken (re-)start it would be better to count the freshness value since program start, independet of state retention.\r\n\r\n\r\nThe schedulerd.log looks like this:\r\n\r\n[1408108707] PASSIVE SERVICE CHECK: node1;system_log_errors;OK;HARD;1;Fri Aug 15 15:18:26 CEST 2014 OK - no errors or warnings\r\n[1408108733] WARNING: [Shinken] Received a SIGNAL 15\r\n[1408108733] INFO: [Shinken] Updating retention_file /tmp/retention_scheduler.dat\r\n[1408108733] INFO: [Shinken] [scheduler] Stopping all network connections\r\n[1408109098] INFO: [Shinken] Using the local log file '/var/log/shinken/schedulerd.log'\r\n[1408109098] WARNING: [Shinken] Printing stored debug messages prior to our daemonization\r\n[1408109098] INFO: [Shinken] Modules directory: /var/lib/shinken/modules\r\n[1408109098] INFO: [Shinken] [scheduler] General interface is at: http://0.0.0.0:7768\r\n[1408109098] INFO: [Shinken] Waiting for initial configuration\r\n[1408109098] INFO: [Shinken] Starting HTTP daemon\r\n[1408109098] INFO: [Shinken] Using a 8 http pool size\r\n[1408109100] INFO: [Shinken] New configuration received\r\n[1408109100] INFO: [Shinken] Trying to init module: pickle-retention-scheduler\r\n[1408109100] INFO: [Shinken] I correctly loaded the modules: [pickle-retention-scheduler]\r\n[1408109100] INFO: [Shinken] Loading configuration.\r\n[1408109100] INFO: [Shinken] New configuration loaded\r\n[1408109100] INFO: [Shinken] [PickleRetentionGeneric] Retention objects loaded successfully.\r\n[1408109100] INFO: [Shinken] [scheduler-1] First scheduling launched\r\n[1408109100] INFO: [Shinken] [scheduler-1] First scheduling done\r\n[1408109101] INFO: [Shinken] A new broker just connected : broker-1\r\n[1408109101] INFO: [Shinken] [scheduler-1] Created 157 initial Broks for broker broker-1\r\n[1408109110] WARNING: [Shinken] The results of service 'system_log_errors' on host 'node1' are stale by 0d 0h 6m 43s (threshold=16297d 13h 19m 40s).  I'm forcing an immediate check of the service.\r\n[1408109113] SERVICE ALERT: node1;system_log_errors;WARNING;HARD;1;WARNING: Freshness for passive checks has exceeded threshold\r\n[1408109402] PASSIVE SERVICE CHECK: node1;system_log_errors;0;Fri Aug 15 15:30:01 CEST 2014 OK - no errors or warnings\t\r\n\r\n\r\nThe passive check results are submitted every five minutes and the freshness_threshold is set to 330.\r\n(PS: I dunno why the log puts the time in days since unix epoch as value for threshold.)"},"comment":{"url":"https://api.github.com/repos/naparuba/shinken/issues/comments/103041740","html_url":"https://github.com/naparuba/shinken/issues/1301#issuecomment-103041740","issue_url":"https://api.github.com/repos/naparuba/shinken/issues/1301","id":103041740,"user":{"login":"Corbyn","id":8446952,"avatar_url":"https://avatars.githubusercontent.com/u/8446952?v=3","gravatar_id":"","url":"https://api.github.com/users/Corbyn","html_url":"https://github.com/Corbyn","followers_url":"https://api.github.com/users/Corbyn/followers","following_url":"https://api.github.com/users/Corbyn/following{/other_user}","gists_url":"https://api.github.com/users/Corbyn/gists{/gist_id}","starred_url":"https://api.github.com/users/Corbyn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Corbyn/subscriptions","organizations_url":"https://api.github.com/users/Corbyn/orgs","repos_url":"https://api.github.com/users/Corbyn/repos","events_url":"https://api.github.com/users/Corbyn/events{/privacy}","received_events_url":"https://api.github.com/users/Corbyn/received_events","type":"User","site_admin":false},"created_at":"2015-05-18T12:25:14Z","updated_at":"2015-05-18T12:25:14Z","body":"Update: still same behaviour with Shinken 2.4.\r\nWhat about excluding freshness values from state retention? Would this be an acceptable solution?"}}