Service Templates

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jkinning
Posts: 747
Joined: Wed Oct 09, 2013 2:54 pm

Service Templates

Post by jkinning »

I am still trying to figure out how to get all the Nagios Core stuff into Nagios XI. I am now thinking of starting with a clean slate and create a couple default service templates and then using the bulk import tool assign the hosts to the right service template. Once that is done I can go in and add any additional monitoring.

So, with that being said how or what is the best method to create a service template for monitoring Windows hosts for CPU, RAM, C: and D: drives? Here is my scenario. We currently use IBM Endpoint Manager which I can pull out the hostname and IP address for all the non-production servers and production servers. Here is what I am thinking for the service templates:

Windows Host Groups
o Windows Prod
o Windows Non-Prod

Windows Non-Prod Group Configuration
o Monitor CPU Utilization, Memory Utilization, and Disk Space for C:\ and D:\
o Email between 6am and 6pm when Disk Space is below 5% free and don’t send a follow up email
o Do Not Notify about CPU and Memory Utilization
o Email immediately if the host is down

Windows Prod Group Configuration
o Monitor CPU Utilization, Memory Utilization, and Disk Space for C:\ and D:\
o Email between 6am and 6pm when Disk Space is below 5% free and don’t send a follow up email
o Do Not Notify about CPU and Memory Utilization
o Page immediately if the host is down

So, what I would like to do is import all the non-prod Windows servers and assign them to the service template for the non-prod group configuration and then import the production servers the same way. These servers will all have the NSClient++ installed as well.

I'll do something for the Linux servers but we have quite a bit more Windows servers than Linux. Is there a better, more efficient, best practice, way to do this import. What is the best way to create the service template? When I go to the CCM and select Service Templates | Add New I am not certain how I can add all the above checks to this single service template.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Service Templates

Post by lmiltchev »

Just wanted to point out the service templates cannot be applied to hosts in XI but to services only. Host templates are applied to hosts, service templates - to services.

You can clone a host or a service template in the CCM, rename it and modify it to your liking. Then you can set up one host (and its services), that would use the "new" templates you just created, and use this host with the Bulk Import Wizard to clone it many times (if you have many servers that you monitor in a similar fashion).

As an alternative, you may try setting up your hosts/services from the CLI:
http://assets.nagios.com/downloads/nagi ... gement.pdf
Be sure to check out our Knowledgebase for helpful articles and solutions!
jkinning
Posts: 747
Joined: Wed Oct 09, 2013 2:54 pm

Re: Service Templates

Post by jkinning »

Thank you one of these methods will help me out.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Service Templates

Post by lmiltchev »

I am glad I could help!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked