Page 1 of 1
"Unknown" stuck in the Soft state
Posted: Mon Jul 23, 2018 9:39 am
by smersh
Hello,
Some time ago it has been reported that services sometimes are stuck in the soft state.
https://support.nagios.com/forum/viewto ... ilit=stuck
The issue should be fixed in 5.5. However my installation often displays this behaviour, but only with Unknown Service States. No Warning or Critical stuck.
Please check attached images.
Not all the services in the picture are stuck, some of them are correctly in the hard state type.
Regards,
NJ
Re: "Unknown" stuck in the Soft state
Posted: Mon Jul 23, 2018 11:12 am
by scottwilkerson
What version of XI are you running? This was fixed in 5.5.1
Re: "Unknown" stuck in the Soft state
Posted: Mon Jul 23, 2018 2:17 pm
by smersh
I'm running 5.5.1
Re: "Unknown" stuck in the Soft state
Posted: Mon Jul 23, 2018 3:03 pm
by scottwilkerson
I attempted to re-create this and my service switched to a HARD state as expected after reaching the max_check_attempts.
Does this only happen with particular down hosts? or hosts that are unreachable?
Do you have any dependencies set on these services?
I noticed these just changed state, do these services remain in an unknown state?
Please also post the output of
Re: "Unknown" stuck in the Soft state
Posted: Mon Jul 23, 2018 4:30 pm
by smersh
1. There is no any parenting in my config, so the host is down. Hosts never get unreachable here, it's a star network.
2. No, everything remains as you have seen in the screenshot until the host is up again.
3. The host does not need to be necessarily down. For example, trying to re-create the problem, if I change the read community name at the host such that check_snmp plugin can not read data anymore, I can easily observe the problem. All services become unknown when check_snmp does not get the reply, however only some of them become Hard, even after a while (much longer then it actually needs to accomplish 3 of 3 checks).
4. If I create a new host with a non-existent IP then this host is proceeded correctly, all services become hard as they should. But they become hard on the very first check, because they have never been in any other state yet.
Code: Select all
[root@gnt-nagiosxi ~]# ps -ef|grep nagios.cfg
nagios 54814 1 12 01:25 ? 00:00:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios 54833 54814 0 01:25 ? 00:00:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
root 55201 33918 0 01:25 pts/0 00:00:00 grep --color=auto nagios.cfg
Thanks!
Re: "Unknown" stuck in the Soft state
Posted: Mon Jul 23, 2018 4:43 pm
by scottwilkerson
I am going to try to replicate this but so far I have been unsuccessful.
Re: "Unknown" stuck in the Soft state
Posted: Wed Jul 25, 2018 4:24 pm
by smersh
Any progress with my problem?
Do I need to ticket it?
NJ
Re: "Unknown" stuck in the Soft state
Posted: Wed Jul 25, 2018 4:26 pm
by scottwilkerson
smersh wrote:Any progress with my problem?
Do I need to ticket it?
NJ
I would, I have not been able to replicate this at all
Re: "Unknown" stuck in the Soft state
Posted: Wed Jul 25, 2018 4:37 pm
by smersh
Ok, thank you.
Re: "Unknown" stuck in the Soft state
Posted: Wed Jul 25, 2018 5:03 pm
by scottwilkerson
smersh wrote:Ok, thank you.
Locking will continue in Ticket