Page 1 of 1

Nagios 4.1.1 dummy check and pendig status

Posted: Fri Jun 24, 2016 12:06 pm
by emi65
Hi

With nagios core 4.1.1 I define this dummy check

Code: Select all

define service {
        #NAGIOSQL_CONFIG_NAME           INSTA4-SQLC05W8
        host_name                       INSTA4-SQLC05W8
        service_description             Nagios_Graph
        check_command                   check_dummy!0!Nagios Graph
        is_volatile                     0
        initial_state                   o
        max_check_attempts              3
        check_interval                  0
        retry_interval                  5
        active_checks_enabled           1
        passive_checks_enabled          1
        check_period                    24x7
        obsess_over_service             0
        check_freshness                 1
        freshness_threshold             45
        event_handler_enabled           1
        flap_detection_enabled          1
        process_perf_data               0
        retain_status_information       1
        retain_nonstatus_information    1
        notification_interval           720
        notification_period             24x7
        notification_options            w,c,r
        notifications_enabled           1
        contact_groups                  INFR-MSSQL
        action_url                      http://nagiostest.intranet.servizi/nagiosgraph/cgi-bin/show.cgi?host=$HOSTNAME$&service=WIN_Check_CPU
        register                        1
}
When I insert this check goes in PENDING STATUS

with the directive freshness_threshold 45
I exepect this service goes to OK after 45 seconds but this doesn't happens

Why ?
Could help me to solve this problem

regards
Emilio

Re: Nagios 4.1.1 dummy check and pendig status

Posted: Fri Jun 24, 2016 12:29 pm
by scottwilkerson
What are these set to in your nagios.cfg

Code: Select all

check_service_freshness
service_freshness_check_interval
additional_freshness_latency
These will determine how often the freshness checks are calculated

Re: Nagios 4.1.1 dummy check and pendig status

Posted: Mon Jun 27, 2016 9:49 am
by emi65
here the values

check_service_freshness=1
service_freshness_check_interval=60
additional_freshness_latency=15

Re: Nagios 4.1.1 dummy check and pendig status

Posted: Mon Jun 27, 2016 3:32 pm
by tgriep
I tried to duplicate the issue you are having and couldn't get it to fail.
Can you check your nagios.log file and see if that service is receiving warnings that the check is stale and post them here?

Re: Nagios 4.1.1 dummy check and pendig status

Posted: Tue Jun 28, 2016 5:12 am
by emi65
Hi

I solved ... but it was my problem ,
the script had due to restart nagios after configuration changes didnt'work

So I chanhed the service config but I didnt' restart nagios unix service

I clean this error and now all works fine

Thanks for the help and exscuse me for my error
Emilio

Re: Nagios 4.1.1 dummy check and pendig status

Posted: Tue Jun 28, 2016 10:17 am
by mcapra
Is it alright if we lock this thread and mark the issue as resolved?

Re: Nagios 4.1.1 dummy check and pendig status

Posted: Tue Jun 28, 2016 10:44 am
by emi65
of course !!!