Page 1 of 1

"Please Wait. Your request was not processed in a timely.."

Posted: Mon Oct 17, 2011 2:52 pm
by ecarrasq
System Info
Linux Distribution and version?

*Linux version 2.6.18-274.3.1.el5 ([email protected]) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-51)) #1 SMP Tue Sep 6 20:14:03 EDT 2011
CentOS release 5.7 (Final)

32 or 64bit?

32 bit

VMware Image or Manual Install of XI?

VMware Image

Are there specials configurations on your system, ie; is Gnome installed? Are you using a proxy? Are you using SSL?

No.

ISSUE

I've been trying to add hosts to NagiosXi and after doing so, the host/service shows "Pending" for a long time. I try to do a "Schedule an immediate check", but keep getting the message:
"Please Wait. Your request was not processed in a timely manner. It may still execute, as the server may be temporarily busy."
I then run the check command for a service for that host through the command line /usr/local/nagios/libexec check_.... and it goes through, but NagiosXi still shows as "Pending".

Please help.

Thanks,
Eddie

Re: "Please Wait. Your request was not processed in a timel

Posted: Mon Oct 17, 2011 3:05 pm
by agriffin
Is the Nagios Core monitoring engine running (do you see any red icons near the top right corner of the web interface)? Also, what does the system load look like on your XI server?

Re: "Please Wait. Your request was not processed in a timel

Posted: Mon Oct 17, 2011 3:49 pm
by ecarrasq
Load seems ok, and there are no red circles on the upper right.

Re: "Please Wait. Your request was not processed in a timel

Posted: Mon Oct 17, 2011 4:06 pm
by lmiltchev
What happens when you try to use the Write Config Tool? Do you get any errors? Go to the Core Config Manager->Tools->Write Config Files and click on the four "Go" buttons.

Re: "Please Wait. Your request was not processed in a timel

Posted: Mon Oct 17, 2011 4:58 pm
by ecarrasq
The First one is ok.

The Second one is ok.

The Third one returned a 112 of warnings for different services and hosts "has no default contacts or contactgroups defined!, has no check time period defined!, "

The Fourth one is to restart Nagios which I did.

Re: "Please Wait. Your request was not processed in a timel

Posted: Mon Oct 17, 2011 5:59 pm
by ecarrasq
I am now officially unable to create new hosts/services, as they all show "Pending".

Re: "Please Wait. Your request was not processed in a timel

Posted: Tue Oct 18, 2011 9:44 am
by lmiltchev
It seems like you don't have any errors (just warnings) so the pending is probably not caused by a bad configuration. It is possible, it is a permissions issue. You can try running in terminal:

Code: Select all

# /usr/local/nagiosxi/scripts/reset_config_perms
Also, you can try fixing your global permissions following this document:

http://assets.nagios.com/downloads/nagi ... ssions.pdf

Re: "Please Wait. Your request was not processed in a timel

Posted: Tue Oct 18, 2011 12:44 pm
by ecarrasq
FIXED! :)

Don't know if it was a permissions issue or one of these two services not running:
# service ndo2db stop
Stopping ndo2db: head: cannot open `/usr/local/nagios/var/ndo2db.lock' for reading: No such file or directory
done.

# service nagios stop
Stopping nagios: /etc/init.d/nagios: line 67: kill: (2930) - No such process
done.
Steps taken:

1. Followed the pdf "Nagios XI – Fixing Global Permissions.pdf" = still wasn't working (although, don't know if I had to let Nagios catch up, but I thought 10 minutes was long enough)
2. Something that has worked for me in the past was to simply run the upgrade process script again; However, I didn't have to go all the way to the "./upgrade"

service nagiosxi stop
service npcd stop
service ndo2db stop
service nagios stop

mkdir /root/pre-upgrade-backup

tar cjf /root/pre-upgrade-backup/usr-local-nagios.tar.bz2 /usr/local/nagios

tar cjf /root/pre-upgrade-backup/usr-local-nagiosxi.tar.bz2 /usr/local/nagiosxi

pg_dump -U nagiosxi -c -F p nagiosxi | bzip2 -c > /root/pre-upgrade-backup/pg_nagiosxi.sql.bz2

mysqldump -u root -pnagiosxi nagios | bzip2 -c > /root/pre-upgrade-backup/my_nagios.sql.bz2

mysqldump -u root -pnagiosxi nagiosql | bzip2 -c > /root/pre-upgrade-backup/my_nagiosql.sql.bz2

service nagios start

service ndo2db start

service npcd start

service nagiosxi start

Once I got to this point, I checked NagiosXi and the services that were labeled "Pending" before. I did a "Schedule an immediate check" and they were all now being checked normally.

Conclusion:

Don't know if it was indeed a permissions issue (which looks like its a normal factor when ever I have a problem with NagiosXi), or if service "ndo2db" was not running properly.

Thanks for all the support on this, as I couldn't have fixed it without your help.
Eddie

PS: I'm putting together a troubleshooting list, for when I encounter similar problems. List as follows:
Troubleshooting Steps:

***1. Check to make sure the following are running:

service nagios start
service ndo2db start
service npcd start
service nagiosxi start


**2. Fix Permissions:

reset Nagios permissions and ownerships:


# /usr/local/nagiosxi/scripts/fixperms.sh

This command will fix your permissions, but after this you have to run:

# chown root.nagios /usr/local/nagiosxi/scripts/reset_config_perms
# chmod u+s /usr/local/nagiosxi/scripts/reset_config_perms
# chown root.nagios /usr/local/nagiosxi/scripts/reset_config_perms.sh
# chmod u+s /usr/local/nagiosxi/scripts/reset_config_perms.sh

And finally:

# service nagios restart
# service httpd restart



/usr/local/nagiosxi/scripts/reset_config_perms



**3. Fix Global Permissions:

Follow the pdf "Nagios XI – Fixing Global Permissions"


/usr/local/nagiosxi/scripts/
./NagiosXI-FixPerms.sh

The script will run and may show a few errors. This is normal, some files may not exist on your system


**4. Run the NagiosXi upgrade script

service nagiosxi stop
service npcd stop
service ndo2db stop
service nagios stop

mkdir /root/pre-upgrade-backup

tar cjf /root/pre-upgrade-backup/usr-local-nagios.tar.bz2 /usr/local/nagios

tar cjf /root/pre-upgrade-backup/usr-local-nagiosxi.tar.bz2 /usr/local/nagiosxi

pg_dump -U nagiosxi -c -F p nagiosxi | bzip2 -c > /root/pre-upgrade-backup/pg_nagiosxi.sql.bz2

mysqldump -u root -pnagiosxi nagios | bzip2 -c > /root/pre-upgrade-backup/my_nagios.sql.bz2

mysqldump -u root -pnagiosxi nagiosql | bzip2 -c > /root/pre-upgrade-backup/my_nagiosql.sql.bz2

service nagios start

service ndo2db start

service npcd start

service nagiosxi start

cd /tmp

wget http://assets.nagios.com/downloads/nagi ... 1.7.tar.gz <---- remember to choose the latest Nagios release

tar xzf xi-2011r1.7.tar.gz <---- remember to choose the latest Nagios release

cd /tmp/nagiosxi

./upgrade

Re: "Please Wait. Your request was not processed in a timel

Posted: Tue Oct 18, 2011 1:04 pm
by lmiltchev
ecarrasq,

I am glad you got it working. Thanks for the feedback and the troubleshooting list you put together. It could be a time-saver for someone with the same issue.