Page 1 of 1
NagiosXI 5.6.14 - Current Check not getting updated...
Posted: Fri Nov 06, 2020 5:34 am
by vishfx
Hi Team,
NagiosXI 5.6.14
Nagios Core 4.4.5
mod_gearman
I noticed that With below settings "Current Check" is not getting updated, but Last Check and Next Check seems to be getting updated :
max_check_attempts 10
check_interval 5
retry_interval 2
Force an immediate Check 1st attempt
nxi1st.JPG
Force an immediate Check 2nd attempt
nxi2nd.JPG
Force an immediate Check 3rd attempt
nxi3rd.jpg
Kindly assist.
Regards,
Vish.
Re: NagiosXI 5.6.14 - Current Check not getting updated...
Posted: Fri Nov 06, 2020 4:11 pm
by cdienger
I'd like to get a profile from the XI server which can be generated under Admin > System Config > System Profile > Download Profile, or from the command line with:
Code: Select all
/usr/local/nagiosxi/scripts/components/getprofile.sh 60642
The profile is then saved to /usr/local/nagiosxi/var/components/profile.zip.
The profile can have sensitive information so please send it to me in a private message.
Re: NagiosXI 5.6.14 - Current Check not getting updated...
Posted: Sun Nov 08, 2020 9:02 am
by vishfx
Done.
Re: NagiosXI 5.6.14 - Current Check not getting updated...
Posted: Mon Nov 09, 2020 3:17 pm
by cdienger
I don't see any obvious issues at the moment. This may be related to the mod gearman config. Try removing this as a factor by editing /usr/local/nagios/etc/nagios.cfg and comment out this line:
Code: Select all
#broker_module=/usr/lib64/mod_gearman/mod_gearman_nagios4.o config=/etc/mod_gearman/module.conf eventhandler=no
and restarting the nagios process:
Then again force the checks to run and see if the count updates. Feel free to revert the nagios.cfg back after testing.
Re: NagiosXI 5.6.14 - Current Check not getting updated...
Posted: Thu Nov 12, 2020 3:56 am
by vishfx
Disabling mod_gearman didnt make any difference.
Here is the config entry , please let me know if anything is wrong here.
issue-Capture.PNG
Regards,
Vish.
Re: NagiosXI 5.6.14 - Current Check not getting updated...
Posted: Thu Nov 12, 2020 4:27 pm
by cdienger
It looks like the max check attempts is set to 10 but the previous screenshots shows 6. Was this changed or is this another symptom of the problem?
I'd like to get the output of the following commands. You can send the output of these to me in a private message:
Code: Select all
echo "describe nagios_servicestatus;" | mysql -uroot -pnagiosxi -Dnagios --table > description.txt
echo "select * from nagios_servicestatus;" | mysql -uroot -pnagiosxi -Dnagios --table > servicestatus.txt
Re: NagiosXI 5.6.14 - Current Check not getting updated...
Posted: Wed Nov 18, 2020 7:43 am
by vishfx
Sent PM.
Re: NagiosXI 5.6.14 - Current Check not getting updated...
Posted: Wed Nov 18, 2020 5:59 pm
by cdienger
The configuration for the check appears different than how it is showing up in the text file so it may be an issue with parsing some of the characters. Please provide a copy of the CCM database as well as the host and service name. Please PM these to me.
The CCM database can be written to a file called nagiosql.sql with:
Code: Select all
mysqldump -uroot -pnagiosxi nagiosql > nagiosql.sql
Re: NagiosXI 5.6.14 - Current Check not getting updated...
Posted: Tue Nov 24, 2020 2:31 am
by vishfx
Sent pm.
Re: NagiosXI 5.6.14 - Current Check not getting updated...
Posted: Wed Nov 25, 2020 12:20 pm
by cdienger
The service no longer appears to be in the CCM or it has been changed. The behavior you're seeing is likely a result of the configuration not applying or loading all the way. To be clear - this is occurring just for the one service?
Update the php.ini per
https://support.nagios.com/kb/article/n ... e-611.html and then rewrite and apply the configuration in the CCM. Do this by going to Configure > Core Config Manager > Tools > Config File Management, and clicking:
-Delete Files
-Write Configs
-Verify Files
-Restart Nagios Core
and then apply the configuration again under Configure > Quick Tools > Apply Configuration.