Nagios hosttemplate inheritance
Posted: Sun Oct 27, 2019 10:58 am
Hi Team,
I want to implement "A" template inheritance to "B" Template.
Step 1) I have created the cpu_load, memory services and added to " C" Hostgroup.
Step 2) I have created the httpd,mysqld services and added to "D" Hostgroup.
step 3) I will create one host template "resouces" and used "generic-host_template" and "C" hostgoup added(cpu_load, memory) to resouces template.
Now i created Testing1 host and added "resource" template to Testing1 host (then automatically cpuload,memory services will add to Testing1 host)
step 4) I will create one host template that is "services_status" and used "generic-host_template" and "D" hostgoup added( httpd,mysqld)
Now i created Testing2 host and added "services_status" template to Testing2 (then automatically httpd,mysqld services will add to Testing2 host)
Now my intention is "resource" template services should inherit to "service_status" template
While i am adding the new host i add the Service_status template then (cpuload, memory,httpd,mysqld) Services should add to Testing2 server.
I want to implement "A" template inheritance to "B" Template.
Step 1) I have created the cpu_load, memory services and added to " C" Hostgroup.
Step 2) I have created the httpd,mysqld services and added to "D" Hostgroup.
step 3) I will create one host template "resouces" and used "generic-host_template" and "C" hostgoup added(cpu_load, memory) to resouces template.
Now i created Testing1 host and added "resource" template to Testing1 host (then automatically cpuload,memory services will add to Testing1 host)
step 4) I will create one host template that is "services_status" and used "generic-host_template" and "D" hostgoup added( httpd,mysqld)
Now i created Testing2 host and added "services_status" template to Testing2 (then automatically httpd,mysqld services will add to Testing2 host)
Now my intention is "resource" template services should inherit to "service_status" template
While i am adding the new host i add the Service_status template then (cpuload, memory,httpd,mysqld) Services should add to Testing2 server.