General Layout and Template Confusion

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ginfra
Posts: 4
Joined: Thu May 17, 2018 3:27 am

General Layout and Template Confusion

Post by ginfra »

Hi,

I'm currently in the process of trying to build a new NagiosXI environment to replace our existing setup which is convoluted, complicated and unloved. I'm running into some problems which I think are probably very basic, but really need some guidance.

We are running Nagios 5.5.2 on CentOS Linux release 7.4.1708, x86_64.

From my reading, my understanding is that it is highly recommended to avoid the wizards, and to utilise the template functionality. To this end, here's what I had in mind for my linux hosts:

1) Create hosts in CCM and assign IP address and name only
2) Use generic-host hosttemplate to run check-host-alive checks on all objects
3) Create linux-servers host template to run checks I want on all linux servers, i.e. cpu, memory, disk utilization
4) Create a third layer hosttemplate for sub-sets of servers, i.e. "Application Servers", which will check anything specific to that type of server- particular processes etc

Steps 1 and 2 are ok, but I can't seem to see how to assign more than one check to my linux-servers hosttemplate.

Am I approaching this incorrectly? I know I can individually assign services to a host, but if I then need to adjust that service, i.e. lower a threshold of a disk check, will I then be changing it on any server that runs that check?

We also need to decommission hosts regularly, and I really want to avoid the situation we currently have, which is to need to login to multiple separate dependant services before I can delete the host. We really want a straight-forward, well mapped out configuration.

Any advice would be much appreciated. I have read the documentation on Object Inheritance and watched the videos on youtube, but I feel like I'm missing some fairly fundamental understanding.

Thanks in advance.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: General Layout and Template Confusion

Post by tgriep »

What I think you are looking for is to use HostGroups to simplify your service checks.

What you would do is to create a HostGroup and add the hosts in to is that you want to run the sane service check.
Add that HostGroup to the service check and all of the hosts in the HostGroup will inherit that service check.

This will also make it easier to decommission the hosts, you just have to remove them from the HostGroup and they will be removed from the service checks.

https://support.nagios.com/kb/article/n ... s-729.html
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked