concept host in category data

This is an excerpt from Manning's book The Art of Data Usability.
I define the hosts as the dataset that I am checking. This is just personal taste but I find it easier to see what I need to look at if the host tells me. If you don’t do that you will need to provide what dataset the check refers to via some other means (for example the Nagios plugin message). For our example the dataset we want to check with our quality control is the current status file we modify so I’d give the host the name Current status file.
Icinga already provides a generic host we can import and use, so the only thing we need to configure is where the host is which we do be setting the address configuration variable to the docker container name.
After logging in you’ll be presented with the Icinga dashboard. If you’re too excited you’ll probably see a pending message in both service and host problems (because Icinga will not have run the quality controls yet nor checked if the host is alive). After some time Icinga will run the quality controls and you’ll get five green messages under recently restored services as shown in figure 7.3.
Listing 11.15. services.conf
template Service "nrpe-service" { import "generic-service" check_command = "nrpe" vars.nrpe_no_ssl = true } apply Service "Reproducibility" { #1 import "nrpe-service" vars.nrpe_command = "check_reproducibility" assign where "reproducibility" in host.vars.services } apply Service "Verfied reproducibility" { #1 import "nrpe-service" vars.nrpe_command = "verify_reproducibility" assign where "reproducibility" in host.vars.services } #1 Apply to hosts that want reproducibility