General Layout and Template Confusion
Posted: Fri Nov 09, 2018 10:49 am
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.
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.