Contact issues when using XI gui

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Contact issues when using XI gui

Post by WillemDH »

Hello,

Just noticed another problem with inheritance of templates. After adding 'myself' as a contact for a service, going to Configure > Reconfigure this service > Notifications >Checkbox myself, all the options configured in the service htrough CCM are lost! This is really not acceptable. We had a similar problem, described in http://support.nagios.com/forum/viewtop ... 16&t=21629, but a patch seemed to resolve the issue, but I must have missed something. Things that are changed in my services after adding a contact through the XI gui:
- Configured contacts in CCM are deleted and overridden by the contact added through the XI gui!
- Contact inheritance is set to Standard, while it was explicitly set to '+'
- First notification delay is set to 0 while i didn't configure anything for the delay. There seems to be no way to set no notification delay and just use the service template delay...
- All notification checkboxes are checked, while none were checked before. I know this is the same result, but it seems much cleaner when nothing is checked and just inherited from the template....
- Notification enabled is et to "On", while it was set to "Skip'. There also does not seem to be an option to not set this parameter, and use the template notification settings..
- All Contactgroups configured through the CCM are deleted and contactgroup options are set to null!
- All servicegroups are deleted and servicegroup options are set to null while they were on +

In my opinion this can't all be 'by design'.... How would we want users to set themselves or collegaues as a contact while this messes things completely up. The work I have put in to configure all service would be lost by other users who just want to get an alert for a service they need.....

If I set contact, contactgroup and servicegroup options to + and a contact is added in the XI gui, this should just be appended to the list of contacts, contactgroups and servicegroups? How else can we be sure configuration is consistent? Users who would set themselves as contact would mess things up without even knowing it...

Thanks for looking into this... This seems to be a major bug to me.

Willem
Nagios XI 5.8.1
https://outsideit.net
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Contact issues when using XI gui

Post by scottwilkerson »

This was fixed in 2012R2.6
- Fixed bug which was preventing CCM template options to persist -SW
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Contact issues when using XI gui

Post by WillemDH »

I'm sorry Scott, but I'm at 2.7 at the moment and I'm still having the issue. the issue that was fixed was that it was not possible to configure the '+' option in CCM as it always resetted to Standard. Now I can set the option but it is overwritten when using the procedure explained above (configure contacts with XI gui).. Just tested it twice.
Nagios XI 5.8.1
https://outsideit.net
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Contact issues when using XI gui

Post by scottwilkerson »

I'm sorry, I didn't read that closely enough. Yes that is still an issue, we have an internal item filed for it already.

To be honest, the likely result will be that for items that have customizations done in the CCM, in the XI GUI it will likely tell you that the host/service cannot be edited in the GUI, but I can't say for sure yet.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Contact issues when using XI gui

Post by WillemDH »

Ok, I can imagine this is not something easily configured, but imo any user should be able to add and remove him or herself as a contact for any service / host without destroying CCM configuration. This was one of big the reasons we choose XI. If you remove this feature, this implies all changes for contacts will have to be done by admins who have the CCM password..
Nagios XI 5.8.1
https://outsideit.net
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Contact issues when using XI gui

Post by lmiltchev »

As scottwilkerson said, the issue is being reviewed internally. I am not sure when/if the default behavior is going to be altered. We will keep you posted if make any progress on that.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Contact issues when using XI gui

Post by WillemDH »

I can confirm this is almost working as expected in the meantime. Only thing I found that was changed is that a service that is reconfigured with XI gui, and had 'skip' set in CCM for notifications (as I wanted to have the option set all notifications enabled to off with a template) will be set to "On" after the service is reconfigured with the XI gui. There should be a fourth option in the tab 'Notifications' which would be set by default with the notification enabled option (skip in my case) in CCM.
All other attributes such as servicegroup, contact and contact group inheritance options are saved and persistent.
Nagios XI 5.8.1
https://outsideit.net
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Contact issues when using XI gui

Post by lmiltchev »

Can you give us an example of this behavior?
Are you saying that under the "Service Management" ("Alert Settings" tab) in the CCM, you have "Notification enabled" = "skip", but when you run "Configure->Re-configure this service->Notifications" in the GUI, the "skip" option changes to "on"?
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Contact issues when using XI gui

Post by WillemDH »

It's exactly as you describe Ludmill. Just tested a third time and CCM will reset skip to On after changes made in XI gui.
Nagios XI 5.8.1
https://outsideit.net
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Contact issues when using XI gui

Post by tmcdonald »

I'm seeing this same issue. I will see if one of the devs can take a look.

Update: I found the ticket and it was canceled with the following message:
I don't believe this is a bug, this is expected behavior.

This is the "program level settings" overriding the configuration settings.

I thought there was a bitmask in the nagios.cfg that could be set to make these not persist across restarts, but the easient way I know of to resolve it is to

Code: Select all

service nagios stop
rm -f /usr/local/nagios/var/retention.dat
service nagios start
Unfortunately this will also set everything back to pending until the checks are performed.
Former Nagios employee
Locked