I have below consul-template.
host_name
command check_nrpe!check_procs_1
I want to add if my hostname match "database-1" then command "check_procs_1" and others command "check_procs_2"
output
host_name node_server
command check_nrpe!check_procs_2
host_name database-1
command check_nrpe!check_procs_1
host_name webserver
command check_nrpe!check_procs_2
Aucun commentaire:
Enregistrer un commentaire