Next Check: showing a past date

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
sampaths
Posts: 13
Joined: Tue Sep 04, 2018 10:32 am

Next Check: showing a past date

Post by sampaths »

Hi,

We are using passive checks.
With Freshness Threshold of 420sec (7min)

Please see the attached image.
last check shows correctly but the next check is showing a past time.
Capture.PNG
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Next Check: showing a past date

Post by lmiltchev »

Go to the CCM > Services, click on the "View config" next to your service, copy/paste the config to the forum. We will try to replicate this issue in-house. Thanks!
Be sure to check out our Knowledgebase for helpful articles and solutions!
sampaths
Posts: 13
Joined: Tue Sep 04, 2018 10:32 am

Re: Next Check: showing a past date

Post by sampaths »

From the Service

Code: Select all

###############################################################################
#
# Services configuration file
#
# Created by: Nagios CCM 2.7.4
# Date:       2019-01-29 12:47:11
# Version:    Nagios Core 4.x
#
# --- DO NOT EDIT THIS FILE BY HAND --- 
# Nagios CCM will overwrite all manual settings during the next update if you 
# would like to edit files manually, place them in the 'static' directory or 
# import your configs into the CCM by placing them in the 'import' directory.
#
###############################################################################

define service {
    host_name              192.168.207.58
    service_description    RFB-AccountServices_Login
    use                    RFB-AccountServices_Login
    display_name           RFB-AccountServices_Login
    register               1
}

###############################################################################
#
# Services configuration file
#
# END OF FILE
#
###############################################################################
From the Template it uses

Code: Select all

define service {
    name                            RFB-AccountServices_Login
    service_description             RFB-AccountServices_Login
    display_name                    RFB-AccountServices_Login
    check_command                   check_dummy!3!"No results from RFB-AccountServices_Login"!!!!!!
    initial_state                   w
    max_check_attempts              1
    check_interval                  5
    retry_interval                  1
    active_checks_enabled           0
    passive_checks_enabled          1
    check_period                    24x7
    check_freshness                 1
    freshness_threshold             420
    flap_detection_enabled          0
    notification_interval           5
    notification_period             24x7
    notification_options            w,c,
    notifications_enabled           1
    contacts                        admin
    register                        0
}
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Next Check: showing a past date

Post by lmiltchev »

It seems like this is a display issue only. The "next check" ("next scheduled check") is not used with passive checks as these are not initiated by nagios. When you have a passive check, in Nagios Core, you would see:
Next Scheduled Check: N/A
In XI, you should see:
Next Check: Not scheduled
however, if you had freshness enabled, you may see an actual timestamp. It would be in the past as when the freshness check is run, the "last check" timestamp is used for some reason. I believe Nagios XI should always show "Not scheduled" as far as the next check goes for passive checks. Our developers said that they would be changing this to match Nagios Core.

FYI, I don't think this (display) inconsistency would cause any issues on your system. Let us know if you have any further questions.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked