Nagios 4.1.1 dummy check and pendig status

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
emi65
Posts: 129
Joined: Fri Aug 17, 2012 3:41 am

Nagios 4.1.1 dummy check and pendig status

Post 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
Last edited by mcapra on Tue Jun 28, 2016 10:50 am, edited 2 times in total.
Reason: Please use [code][/code] tags around config file output
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios 4.1.1 dummy check and pendig status

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
emi65
Posts: 129
Joined: Fri Aug 17, 2012 3:41 am

Re: Nagios 4.1.1 dummy check and pendig status

Post by emi65 »

here the values

check_service_freshness=1
service_freshness_check_interval=60
additional_freshness_latency=15
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios 4.1.1 dummy check and pendig status

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
emi65
Posts: 129
Joined: Fri Aug 17, 2012 3:41 am

Re: Nagios 4.1.1 dummy check and pendig status

Post 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
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Nagios 4.1.1 dummy check and pendig status

Post by mcapra »

Is it alright if we lock this thread and mark the issue as resolved?
Former Nagios employee
https://www.mcapra.com/
emi65
Posts: 129
Joined: Fri Aug 17, 2012 3:41 am

Re: Nagios 4.1.1 dummy check and pendig status

Post by emi65 »

of course !!!
Locked