I have a question about inheritance and how to do it efficiently (meaning less typing). Here is the setup I am imaginging (simplified to make the question more clear)
My goal is to have service checks in the GLOBAL directory for each host. Then in the PROD and QA folders, the matching hosts inherit the service checks. The only difference is the contact group for PROD is different than QA. I know I can do this by redefining service checks in the host1-prod.cfg like similar:
but I would prefer to not have to add that to every host config file. My goal would be for a host config file to be like so:
Or something similar to minimize typing and therefore configs getting incorrect.
Could anyone please help me out or point me to a tutorial that would explain this for me? I tried looking at the inheritance documentation and for whatever reason, I could not determine how to do the above correctly since the inheritance is coming from two different directions.