Contact Groups & Contact Templates

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Contact Groups & Contact Templates

Post by lmiltchev »

Have you tried: Admin->Manage Users->Add New User->...Create as Monitoring Contact: "checked". You would have in the contacts.cfg:

Code: Select all

...
host_notifications_enabled              1
service_notifications_enabled           1
use                                     xi_contact_generic
...
Be sure to check out our Knowledgebase for helpful articles and solutions!
asmgiadmin
Posts: 125
Joined: Tue Feb 12, 2013 5:00 pm

Re: Contact Groups & Contact Templates

Post by asmgiadmin »

lmiltchev wrote:Have you tried: Admin->Manage Users->Add New User->...Create as Monitoring Contact: "checked". You would have in the contacts.cfg:

Code: Select all

...
host_notifications_enabled              1
service_notifications_enabled           1
use                                     xi_contact_generic
...
Yes, this is exactly the problem.

I cannot remove the above from contact.cfg. Current alert settings for contact are set to skip, but the above still remains. I've also tried setting to null or even off, but no difference.

I assume these settings are propogating from XI? If assumption correct, how can I:

Update all existing contact.cfg file containing host / service noticiations
Prevent this from happening again in the future
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Contact Groups & Contact Templates

Post by slansing »

You can disable notifications as a whole across multiple hosts/services with the bulk modification tool:

CCM > Tools > Bulk Modifications Tool.

This tool requires Nagios XI 2012 Enterprise Edition to be used.
asmgiadmin
Posts: 125
Joined: Tue Feb 12, 2013 5:00 pm

Re: Contact Groups & Contact Templates

Post by asmgiadmin »

slansing wrote:You can disable notifications as a whole across multiple hosts/services with the bulk modification tool:

CCM > Tools > Bulk Modifications Tool.

This tool requires Nagios XI 2012 Enterprise Edition to be used.
Thanks, but not looking to disable - looking to remove from contact.cfg completely.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Contact Groups & Contact Templates

Post by scottwilkerson »

Then you would go to CCM -> Contacts -> Modify
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
asmgiadmin
Posts: 125
Joined: Tue Feb 12, 2013 5:00 pm

Re: Contact Groups & Contact Templates

Post by asmgiadmin »

scottwilkerson wrote:Then you would go to CCM -> Contacts -> Modify
Scott - this is my issue. Modifying via CCM does not remove parameters.

Current contact.cfg

Code: Select all

define contact {
        contact_name                            username
        alias                                   User Name
        host_notification_period                username_notification_times
        service_notification_period             username_notification_times
        host_notification_options               d,u,r,f,s,
        service_notification_options            w,u,c,r,f,s,
        email                                   user@domain
        host_notifications_enabled              1
        service_notifications_enabled           1
        use                                     xi_contact_generic
        }
What I want i need contact.cfg to look like:

Code: Select all

define contact {
        contact_name                            username
        alias                                   User Name
        email                                   user@domain
        use                                     xi_contact_generic
        }
How can I prevent XI from adding all of the un-necessary information?
asmgiadmin
Posts: 125
Joined: Tue Feb 12, 2013 5:00 pm

Re: Contact Groups & Contact Templates

Post by asmgiadmin »

I'm starting a new thread since this thread has not been very productive.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Contact Groups & Contact Templates

Post by slansing »

New thread located at: http://support.nagios.com/forum/viewtop ... =16&t=9859

Though it will likely pick up at the same point this thread is at.
Locked