Service Templates Not Working

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
geoffreykobrien
Posts: 12
Joined: Wed Jan 16, 2013 11:01 am

Service Templates Not Working

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Service Templates Not Working

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
geoffreykobrien
Posts: 12
Joined: Wed Jan 16, 2013 11:01 am

Re: Service Templates Not Working

Post 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?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Service Templates Not Working

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
geoffreykobrien
Posts: 12
Joined: Wed Jan 16, 2013 11:01 am

Re: Service Templates Not Working

Post by geoffreykobrien »

Thank you.
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Service Templates Not Working

Post 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!
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
Locked