Page 1 of 1
duplicate definitions
Posted: Wed Jan 27, 2016 11:11 am
by jcwuerfl
Is there a better way to track these down? I fixed some that were like this because it had a host or service group associated with them. Looking at these though they look correct but something seems off.
Code: Select all
Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
Warning: Duplicate definition found for service 'HP-UX Memory Usage' on host 'host1.domain.local' (config file '/usr/local/nagios/etc/services/host1.domain.local.cfg', starting on line 202)
Warning: Duplicate definition found for service 'HP-UX Disk Space - /var' on host 'host2.domain.local' (config file '/usr/local/nagios/etc/services/host2.domain.local.cfg', starting on line 321)
Warning: Duplicate definition found for service 'HP-UX Disk Space - /usr' on host 'host2.domain.local' (config file '/usr/local/nagios/etc/services/host2.domain.local.cfg', starting on line 304)
Read object config files okay...
Re: duplicate definitions
Posted: Wed Jan 27, 2016 12:02 pm
by EnvBroker1
I don't know of a better way to track them down, but it's something that seems to never end. It's just been kind of tedious for us. Also sometimes when I delete one definition, then I get errors where it needs me to go into Service Management, under check settings and enter specific numbers for the intervals.
Sorry this isn't going to help, just feeling the pain with you.
Re: duplicate definitions
Posted: Wed Jan 27, 2016 12:06 pm
by lmiltchev
These are just warnings, not errors - they will not cause any issues with applying configuration. You can clean them up by going to the CCM->Services and deleting the duplicates (services that you don't need).
Under the CCM ("Services" page), type 'HP-UX Memory Usage' in the search bar and hit "Enter" (Don't select any filter from the "Filter by Config Name" drop-down menu - leave it blank). You should see two 'HP-UX Memory Usage' services under the 'host1.domain.local' host. Review them to to determine which one is not needed and delete it. Run the Write Config Tool to make sure you don't have any config errors. If there are no errors, apply configuration.
Do the same for the rest of the duplicate services.
Re: duplicate definitions
Posted: Wed Jan 27, 2016 12:21 pm
by jcwuerfl
Unfortunately it wasn't as easy as seeing if there were 2 service name checks. As I had copied them and the name of it was actually different. What I found was that it was assigned under a different name and the parent host relationship had 2 different associations, one to the new host and one to the original host that I copied it from. I went into CCM/Services and searched for the check as that check name I kept the same but then I had to sit there and click on the "blue" check relationship button for each one of those to find the one that had multiple assigned. I would like to think there is a way to check for services that have multiple hosts assigned and display a report of those pretty easy. I would like to see that as an enhancement if possible.
Thanks!
Re: duplicate definitions
Posted: Wed Jan 27, 2016 6:01 pm
by tmcdonald
I can certainly put in that feature request if you would like, though I do not have any control over what does or does not get implemented.
Re: duplicate definitions
Posted: Thu Jan 28, 2016 7:39 am
by jcwuerfl
tmcdonald wrote:I can certainly put in that feature request if you would like, though I do not have any control over what does or does not get implemented.
If you could that would be great.
Thanks!
Re: duplicate definitions
Posted: Thu Jan 28, 2016 9:51 am
by lmiltchev
Can you describe in details the functionality that you would like to see added to XI? Currently, you can view all of the hosts that a service has been added to by clicking on the "Relationship Info" button. It is quite easy to do this - it is just one click. Would you like to see it done some other way? Can you give us an example, perhaps show us a screenshot?
As tmcdonald said, we can certainly put in an internal feature request, but there is not guarantee when/if it is going to be implemented.