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

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ecarrasq
Posts: 244
Joined: Tue Feb 22, 2011 5:58 pm

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

Post 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
Last edited by ecarrasq on Tue Oct 18, 2011 12:45 pm, edited 1 time in total.
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

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

Post 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?
ecarrasq
Posts: 244
Joined: Tue Feb 22, 2011 5:58 pm

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

Post by ecarrasq »

Load seems ok, and there are no red circles on the upper right.
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

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

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
ecarrasq
Posts: 244
Joined: Tue Feb 22, 2011 5:58 pm

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

Post 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.
You do not have the required permissions to view the files attached to this post.
ecarrasq
Posts: 244
Joined: Tue Feb 22, 2011 5:58 pm

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

Post by ecarrasq »

I am now officially unable to create new hosts/services, as they all show "Pending".
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

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

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
ecarrasq
Posts: 244
Joined: Tue Feb 22, 2011 5:58 pm

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

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

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

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked