Creating templates, and how to use them for enabling basic level checks in all hosts.

1.0K    Asked by AlanTaylor in Devops , Asked on Dec 30, 2019
Answered by Alan Taylor

Templates can be used in those cases where a certain group of checks need to be enabled on maximum no. of hosts added in Nagios server.

let’s say for every host basic checks like- disk monitoring, process check, load check, memory, cpu etc. need to be enabled so instead of enabling them one by one every time the smart way should be to create a template name common_checks and enable these services there.

Like -

define host {

 check_disk

 check_memory

 check_load

 check_proc

 check_cpu

check_swap

}

Enabling the above template on every newly added host will enable the basic checks and one does not have to enable them individually.



Your Answer

Interviews

Parent Categories