Page 2 of 2

Re: Service Status stuck in pending

Posted: Sun Mar 22, 2015 7:33 pm
by Box293

Code: Select all

mkdir /tmp/hosts_backup
mkdir /tmp/services_backup
mv /usr/local/nagios/etc/hosts/*.* /tmp/hosts_backup/
mv /usr/local/nagios/etc/services/*.* /tmp/services_backup/
Go into CCM
Quick Tools > Apply Configuration
Click the Apply Configuration button

Does this fix your problem?

Re: Service Status stuck in pending

Posted: Sun Mar 22, 2015 8:50 pm
by weapon
No, that still does not help :(

Re: Service Status stuck in pending

Posted: Mon Mar 23, 2015 9:32 am
by tgriep
Could you run the following in a shell on the XI server and schedule an immediate check for that service and post back the results of the tail command?

Code: Select all

tail -f /usr/local/nagiosxi/var/cmdsubsys.log

Re: Service Status stuck in pending

Posted: Mon Mar 23, 2015 5:42 pm
by weapon
I had to submit a passive result first before I could force a immediate check - it is still reporting a passive OK state after I submitted the command.

I have got the tail you requested attached.

Re: Service Status stuck in pending

Posted: Tue Mar 24, 2015 12:34 pm
by lmiltchev
I had to submit a passive result first before I could force a immediate check - it is still reporting a passive OK state after I submitted the command.
Why did you have to submit a passive check before you could force an immediate check?

Do you have any mysql errors?

Code: Select all

tail -50 /var/log/mysqld.log

Re: Service Status stuck in pending

Posted: Tue Mar 24, 2015 11:52 pm
by weapon
I have to submit a passive check first as when it is stuck in pending, I can't force and intimidate check.

Doesn't look like I have any SQL errors

Re: Service Status stuck in pending

Posted: Wed Mar 25, 2015 10:59 am
by abrist
If the check is stuck as "Pending", then it is not getting scheduled at all, or it is getting recheduled before the check is run. Is there a scheduled next check time on the check's details page in XI?

If core is displaying it correctly, then it is an issue with ndo - it is either not getting inserted into the db, or it is getting read from the db correctly.
This may be a very fast resolution through a remote if you wish to open a ticket.

Re: Service Status stuck in pending

Posted: Wed Mar 25, 2015 5:43 pm
by weapon
It is stuck in pending because the backend is publishing the wrong date for when the state last changed.
How do I open a ticket to get this resolved?

Re: Service Status stuck in pending

Posted: Wed Mar 25, 2015 5:47 pm
by Box293
Send an email to [email protected] referencing this forum post.

Re: Service Status stuck in pending

Posted: Tue Mar 31, 2015 8:55 am
by tmcdonald
We have received your ticket so I will be locking this thread.