Re: Smart way to configure same service checks for multiple
Posted: Thu Dec 06, 2018 9:01 am
Hello,
I had tried to manage the configuration i wrote in the last days, but i had the difficulties with the instance name passing. The reason is than some servers running multiple instances so i cannot pass free variable at host object side because it will be more than one....
My plan was/is that i create the config so way that i populate with hosts the hostgroups named with the matching instance names only in the everyday operation, and if the instance is moving from other node than i must only switch nodes in hostgroup.
So way i planed to create the service that at service (or template) level any settings is static (or it is coming from some buildt in variable), its mean that the service become the instance name from host/hostgroup variable but because the multi-instance presence on host side these theory is wrong. So i must create only the ammount of checks what i want to monitor/collect performance data.
To clarify i planed the following config
1 hostgroup for every instance i want monitor (calling : HG_INSTANCE) - these count is cca 40 pcs.
1 host running multiple instances, so it is possible that one node goes into N pcs. HG_INSTANCE hostgroup.
M pcs service for monitor metrics (where i somehow (free variable or buildt in standard marco become the instance name from the HG)
I thought that N count of service will be enough for that pourpose and i not need to configure N metrics multiple with M pcs instance service count for that, but currently not found any other choice for that, or i just not goes to the right viewpoint to creating the structure of the service. I am right or is there a more simply way?
Best regards,
Ferenc
I had tried to manage the configuration i wrote in the last days, but i had the difficulties with the instance name passing. The reason is than some servers running multiple instances so i cannot pass free variable at host object side because it will be more than one....
My plan was/is that i create the config so way that i populate with hosts the hostgroups named with the matching instance names only in the everyday operation, and if the instance is moving from other node than i must only switch nodes in hostgroup.
So way i planed to create the service that at service (or template) level any settings is static (or it is coming from some buildt in variable), its mean that the service become the instance name from host/hostgroup variable but because the multi-instance presence on host side these theory is wrong. So i must create only the ammount of checks what i want to monitor/collect performance data.
To clarify i planed the following config
1 hostgroup for every instance i want monitor (calling : HG_INSTANCE) - these count is cca 40 pcs.
1 host running multiple instances, so it is possible that one node goes into N pcs. HG_INSTANCE hostgroup.
M pcs service for monitor metrics (where i somehow (free variable or buildt in standard marco become the instance name from the HG)
I thought that N count of service will be enough for that pourpose and i not need to configure N metrics multiple with M pcs instance service count for that, but currently not found any other choice for that, or i just not goes to the right viewpoint to creating the structure of the service. I am right or is there a more simply way?
Best regards,
Ferenc