Page 2 of 3
Re: Problem with renaming
Posted: Tue May 31, 2011 1:44 pm
by mguthrie
Lets try this first:
Code: Select all
killall -9 nagios
service nagios start
Are you able to successfully Apply Configuration?
Can you locate both of the service config files that you're having issues with in the /usr/local/nagios/etc/services directory, and then try deleting both service config files. Access the Core Config Manager and use the "Write Config Tool" to write out a fresh set of configurations from the database.
If your issue still persists, email us a "Configuration Snapshot" tarball of your current config and we'll see if we can identify the source of the issue.
Re: Problem with renaming
Posted: Wed Jun 01, 2011 1:18 am
by srrhd
Nice guess Mister Guthrie !!
It seems that a process was using the old configuration. Killing all nagios processes before restarting it, solved the problem of the duplication of service on the Service Details page. Thanks !!
To answer your question, before killing everything, i already used the "Write Config Tool" and only the new configuration appeared in the services directory. It was like a process had memorizing the old one...
Now that this problem is solved a new one comes to sight. It seems to be the same as "Host check is pending... after renaming some hosts" from Box293:
http://support.nagios.com/forum/viewtop ... =16&t=2406
As you can see on the attached screenshots, on the "Service Detail" page, for a host that has been renamed its state appears OK and all its services too but when i click on them they appears pending, with notification disabled, and no link to "Schedule an immediate check"
Aurélien.
Re: Problem with renaming
Posted: Wed Jun 01, 2011 9:21 am
by mguthrie
I think I've seen this on one of my own test boxes, but I thought it was something I broke since it was my development test box ; ) I'll do some digging on this and see what I can find out, but it looks like this could be a bug since another user is reporting the exact same thing.
Re: Problem with renaming
Posted: Wed Jun 01, 2011 11:19 am
by mguthrie
Bug Confirmed. We found the cause of it and we're working on a fix as we speak.
http://tracker.nagios.com/view.php?id=155
Re: Problem with renaming
Posted: Thu Jun 02, 2011 9:15 am
by mguthrie
Our patch appears to have fixed this. This should be taken care of in 2011R1.4 when it's released.
Re: Problem with renaming
Posted: Fri Jun 03, 2011 1:18 am
by srrhd
Great news !
Thanks for your effiency guys !
Re: Problem with renaming
Posted: Fri Jun 03, 2011 10:09 am
by mguthrie
We do have a latest-devel release with this bug fix posted at the following URL if the issue is urgent.
http://assets.nagios.com/downloads/nagi ... 654.tar.gz
Otherwise we'll probably push out a new point release sometime next week.
Re: Problem with renaming
Posted: Fri Jun 10, 2011 3:06 am
by srrhd
I was waiting for 2011R1.4 but today i finally decided to install the devel release xi-2011-06021654.tar.gz
Unfortunately, this release seems to have bugs when i try to apply a new configuration it just keep on checking the configuration.
Nagios XI_1307692889687.png
When i try to restart NagiosXI component from the Administration page it says that the command can't be processing as the server is busy. Exact message is:
Your request was not processed in a timely manner. It may still execute, as the server may be temporarily busy.
Effectively server's load is 1 (top command)
I try to use the "Write Config Files" Tool, which works properly even to restart Nagios.
If your need more informations, just let me know and i hope 2011R1.4 will be released soon 'cause i am now stuck and can't work on XI anymore.
EDIT:
I find out that the problem does not come from the release but from the Switch/Router Monitoring Wizard that i was using. It was checking the configuration indefinitely cause one service name had illegal character in the service name... As the host and the services were in fact created, i have simply corrected the service names. Then when applying the configuration it was still keeping on checking the configuration, but using the "Write Config Files" Tool made the host and its services appear on the "Service Details" page.
I guess there is still a bug in the release as the Apply Configuration function doesn't work properly
Re: Problem with renaming
Posted: Fri Jun 10, 2011 10:40 am
by lmiltchev
"retention.dat" is the file that Nagios will use for storing status, downtime, and comment information before it
shuts down. When Nagios is restarted it will use the information stored in this file for setting the initial
states of services and hosts before it starts monitoring anything.
Have you restarted nagios since you've experienced the duplication of the services?
Re: Problem with renaming
Posted: Mon Jun 13, 2011 10:29 am
by mguthrie
Can you try the following solution and see if it resolves your issue?
http://support.nagios.com/wiki/index.ph ... _Completes