Page 1 of 1

Service Templates Not Working

Posted: Wed Feb 06, 2013 9:02 am
by geoffreykobrien
Server Version: Nagios XI 2012R1.4
VMWare OVA Appliance

I get how they are supposed to work, but this is what ive done, and maybe someone can point me in the right direction. I have a large number of UPS's and want to do various checks on them. I noticed in the config that there were a large number of duplicate entry lines, so im trying to clean that up; they came from using the import process. So, I figured id setup some service templates to assign these services to all of my UPS's. I left the ping service for all my hosts, but I will replace those once I get this working. Here is what I have done.

Created a Host Group
--Home>Configure>Core Config Manager>Host Groups>Add New
--filled out the form
--save
Created a Service Group
--Home>Configure>Core Config Manager>Service Groups>Add New
--filled out the form
--save
Created a Service Template
--Home>Configure>Core Config Manager>Service Templates>Add New
--Filled out the form
--added he generic-service template
--added to the service group created above
--added to the host group created above
--save
--repeated for every service that the UPS's needed
Applied Configuration
--Went an looked at the host, and the services do not show up?

If anyone has any idea as to what im doing wrong, i'd appreciate some feedback. Thanks in advance.

Re: Service Templates Not Working

Posted: Wed Feb 06, 2013 10:30 am
by scottwilkerson
If you do exactly as you outlined except replace the following you should get the expected results

replace this

Code: Select all

Created a Service Template
--Home>Configure>Core Config Manager>Service Templates>Add New
--Filled out the form
--added he generic-service template
--added to the service group created above
--added to the host group created above
--save
--repeated for every service that the UPS's needed
with this

Code: Select all

Create a Service
--Home>Configure>Core Config Manager>Service>Add New
--Filled out the form
--added he generic-service template
--added to the service group created above
--added to the host group created above
--save
--repeated for every service that the UPS's needed

Re: Service Templates Not Working

Posted: Wed Feb 06, 2013 1:14 pm
by geoffreykobrien
is there a way to move all the service templates to services? This will save us a few weeks worth of work? Also, what is the purpose of service templates?

Re: Service Templates Not Working

Posted: Wed Feb 06, 2013 1:23 pm
by abrist
I do not believe there is a way to bulk convert templates to services. The purpose of a service template is to decrease the time it takes to configure new services and centralize settings that, when changed, would effect a large number of services. If many services use the same check settings (interval, delay, etc), alert settings , or notification settings, the options can all be applied to a template instead of to each individual service.

Re: Service Templates Not Working

Posted: Wed Feb 06, 2013 1:28 pm
by geoffreykobrien
Thank you.

Re: Service Templates Not Working

Posted: Thu May 19, 2016 10:50 am
by eloyd
Popping open this really old topic, I'd love to see a way to do this, since I do this ALL the time:
  • Run a wizard (say, NCPA client wizard against a windows host)
  • Grab all the services that were created
  • Convert/bulk mod the names to be "<NEW PREFIX> Old service check name"
  • Bulk mod the newly renamed services to delete the original host, change to a new hostgroup called "Windows NCPA Hosts", and add to a service group called "Windows NCPA Services"
  • Bulk add additional hosts to the Windows NPCA Hosts group
  • Bob's your uncle
This sounds like some sort of conversion process, and converting from a wizard template to a service template might come into play here, but I may be missing something obvious when I do this. Bottom line, I don't care how it works, but reducing mouse clicks and copy/pasting would be fantastic!