Page 2 of 2
Re: NagiosXI - Service template not working
Posted: Mon Feb 08, 2021 5:09 pm
by benjaminsmith
Hi,
Could you send us the most recent system profile with these configurations, and we'll take a closer look? Is possible that some of those hosts are assigned to both groups?
https://support.nagios.com/kb/article/n ... e-696.html
If you'd like to learn more about object inheritance, the Nagios Core docs are especially helpful.
https://assets.nagios.com/downloads/nag ... tance.html
Thanks,
Benjamin
Re: NagiosXI - Service template not working
Posted: Tue Feb 09, 2021 4:49 am
by Bala.Mutyam
Hi,
Is possible that some of those hosts are assigned to both groups?
yes, some of the hosts are assigned to both groups.is that a problem? i created similar templates with hosts in both groups and there are no issues.
PM'd system profile.
Re: NagiosXI - Service template not working
Posted: Tue Feb 09, 2021 5:25 pm
by benjaminsmith
Hi,
If some hosts are members of both groups, there will be a relationship with both service templates. You can always override this by setting a local check_command as local variables take precedence.
Do you know the exact name of the hosts in the questions? I can cross-check this in the configs.
Thanks,
Benjamin
Re: NagiosXI - Service template not working
Posted: Wed Feb 10, 2021 7:56 am
by Bala.Mutyam
Hi,
Thanks for the update.
here are the example hosts:
bmds075sqcl2p (override not working)
rmfs075sq06p (override working)
Thanks
Re: NagiosXI - Service template not working
Posted: Wed Feb 10, 2021 6:16 pm
by benjaminsmith
Hi,
Yeah, those services are members of both host groups. The reason one is working and the other is not I believe is just related to the order of operations with the software.
Do you have one or two services defined in the CCM for Memory Services? If only one, try adjusting the priority order of the templates, the top assigned template will take precedent over the ones below it.
Benjamin
Re: NagiosXI - Service template not working
Posted: Fri Feb 12, 2021 8:20 am
by Bala.Mutyam
Hi,
Thanks for the update.
I have two services defined for Memory Services in CCM.
I have moved template definition and service definition one up and override seems to be working now.
Thanks for all your help.
Re: NagiosXI - Service template not working
Posted: Fri Feb 12, 2021 1:57 pm
by benjaminsmith
HI,
I have moved template definition and service definition one up and override seems to be working now.
Thanks for all your help.
Great! Good to hear.
Let us know if it's okay to mark this as resolved.
Re: NagiosXI - Service template not working
Posted: Mon Feb 15, 2021 4:04 am
by Bala.Mutyam
Hi,
Yes, please mark this as resolved.
Thanks
Re: NagiosXI - Service template not working
Posted: Mon Feb 15, 2021 9:33 am
by scottwilkerson
Bala.Mutyam wrote:Hi,
Yes, please mark this as resolved.
Thanks
Great!
Locking thread