Problem with renaming

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Problem with renaming

Post 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.
User avatar
srrhd
Posts: 131
Joined: Thu May 19, 2011 6:15 am

Re: Problem with renaming

Post 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.
You do not have the required permissions to view the files attached to this post.
Configuration:
Nagios XI 2014R2.5
manually upgraded on 64bits CentOS 6
with nothing extra, no gnome, no proxy, no SSL
Add-ons: Hypermap, Minemap, Ping Action, Traceroute Action, Network Replay, graph Explorer, Latest Alert
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Problem with renaming

Post 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.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Problem with renaming

Post 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
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Problem with renaming

Post by mguthrie »

Our patch appears to have fixed this. This should be taken care of in 2011R1.4 when it's released.
User avatar
srrhd
Posts: 131
Joined: Thu May 19, 2011 6:15 am

Re: Problem with renaming

Post by srrhd »

Great news !

Thanks for your effiency guys !
Configuration:
Nagios XI 2014R2.5
manually upgraded on 64bits CentOS 6
with nothing extra, no gnome, no proxy, no SSL
Add-ons: Hypermap, Minemap, Ping Action, Traceroute Action, Network Replay, graph Explorer, Latest Alert
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Problem with renaming

Post 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.
User avatar
srrhd
Posts: 131
Joined: Thu May 19, 2011 6:15 am

Re: Problem with renaming

Post 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
You do not have the required permissions to view the files attached to this post.
Configuration:
Nagios XI 2014R2.5
manually upgraded on 64bits CentOS 6
with nothing extra, no gnome, no proxy, no SSL
Add-ons: Hypermap, Minemap, Ping Action, Traceroute Action, Network Replay, graph Explorer, Latest Alert
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Problem with renaming

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Problem with renaming

Post by mguthrie »

Can you try the following solution and see if it resolves your issue?
http://support.nagios.com/wiki/index.ph ... _Completes