State doesn't change from soft to hard

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Sistemisti Sisal
Posts: 9
Joined: Wed Jul 07, 2021 2:04 am

State doesn't change from soft to hard

Post by Sistemisti Sisal »

Hi all,
I'm new on this forum...

We have a strange behaviour for a specific Host.
Nagios doesn't change from soft to hard state after max_check_attempts reached as you can see in the attached image.
Soft State Handler Issue.jpg
These are Host and Service configuration:

Code: Select all

define host {
    host_name                HOSTNAME
    use                      xiwizard_linuxserver_host
    address                  HOSTNAME
    max_check_attempts       5
    check_interval           5
    retry_interval           1
    check_period             xi_timeperiod_24x7
    contact_groups           Produzione,sistemisti
    notification_interval    60
    notification_period      xi_timeperiod_24x7
    notes                    PROD-VIRTUALRACES-AS
    icon_image               redhat.png
    statusmap_image          redhat.png
    _xiwizard                linux-server
    register                 1
}

Code: Select all

define service {
    host_name                 HOSTNAME
    service_description       SSH Server
    use                       xiwizard_nrpe_service
    check_command             check_nrpe!check_init_service!-a 'sshd'!!!!!!
    max_check_attempts        5
    check_interval            5
    retry_interval            1
    check_period              xi_timeperiod_24x7
    notification_interval     60
    notification_period       xi_timeperiod_24x7
    contact_groups            Produzione,sistemisti
    notes                     PROD-VIRTUALRACES-AS
    _xiwizard                 linux-server
    register                  1
}
Coud you plese help me to troubleshoot this issue?

Thanks in advance,
Stefano.
You do not have the required permissions to view the files attached to this post.
User avatar
kfanselow
Posts: 252
Joined: Tue Aug 31, 2021 3:25 pm

Re: State doesn't change from soft to hard

Post by kfanselow »

Hi Sistemisti,

That it interesting - could you tell us which version of nagios core you're currently running ?

Code: Select all

 /usr/local/nagios/bin/nagios  -h | grep Core 


Also could you PM me a copy of your system profile so we can take a closer look ?

Admin (top) > System Profile (left - under System Config) -> Download Profile button

Thanks and Best Regards,
Keith
Sistemisti Sisal
Posts: 9
Joined: Wed Jul 07, 2021 2:04 am

Re: State doesn't change from soft to hard

Post by Sistemisti Sisal »

Hi Keith,
thanks a lot for your reply.

Here Nagios Core version:

Code: Select all

# /usr/local/nagios/bin/nagios  -h | grep Core
Nagios Core 4.4.2
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
What do you need exatply about Sistem Profile, because there are a lot of files.

Thanks and Best Regards,
Stefano.
User avatar
kfanselow
Posts: 252
Joined: Tue Aug 31, 2021 3:25 pm

Re: State doesn't change from soft to hard

Post by kfanselow »

Hi Stefano,

It appears that the solution may be for you to upgrade your version of Nagios Core. The bug you are seeing appears to have been fixed in version 4.4.3 (Fix #576) . I'll append a link to the core change log below:

https://www.nagios.org/projects/nagios-core/history/4x/

If the problem persist then we can worry about the system profile then. It should have prompted you to download a zip file that contains configuration and log information that we use to try to troubleshoot problems.


Thanks and Best Regards,
Keith
Sistemisti Sisal
Posts: 9
Joined: Wed Jul 07, 2021 2:04 am

Re: State doesn't change from soft to hard

Post by Sistemisti Sisal »

Hi Keith,
thanks for your support, I will schedule the upgrade.

Thanks,
Stefano.
User avatar
kfanselow
Posts: 252
Joined: Tue Aug 31, 2021 3:25 pm

Re: State doesn't change from soft to hard

Post by kfanselow »

Hi Stefano,

Excellent. If you hit any problems with the upgrade please feel free to start a new thread or open a ticket as appropriate. Good Luck.

Thanks and have a great day,
Keith
Locked