I have several item metrics I am collecting via Master/dependent items.
The Master item is an HTTP check that requires authentication.
My Current solution has me do a two step process where I request an auth token and then save it to a host macro (Note that this token is only good for a short time and thus must be re authenticated every so often). I then have to pull that host macro into another HTTP check that is used as a master item (It returns an XML).
Now the interesting thing is that I would really like to store that auth key as a "Global Macro" because I have several checks (on various hosts) that can use that auth key to run various HTTP checks I need.
Originally I thought I could just use a host > Discovery to pull the auth key and have the discovery just create the host macro for me but that is not the case.
I was wondering if there might be a way to use the "populates host inventory" field to force it to populate a global or host acro instead?
Any interesting ideas you have would be appreciated.
Note that I am aware that I could potentially configure the host LLD Discovery to collect the auth token and create/update a discovery created item with the new token on a short timer, but the number of hosts I would have to do this on might create a problem.
The Master item is an HTTP check that requires authentication.
My Current solution has me do a two step process where I request an auth token and then save it to a host macro (Note that this token is only good for a short time and thus must be re authenticated every so often). I then have to pull that host macro into another HTTP check that is used as a master item (It returns an XML).
Now the interesting thing is that I would really like to store that auth key as a "Global Macro" because I have several checks (on various hosts) that can use that auth key to run various HTTP checks I need.
Originally I thought I could just use a host > Discovery to pull the auth key and have the discovery just create the host macro for me but that is not the case.
I was wondering if there might be a way to use the "populates host inventory" field to force it to populate a global or host acro instead?
Any interesting ideas you have would be appreciated.
Note that I am aware that I could potentially configure the host LLD Discovery to collect the auth token and create/update a discovery created item with the new token on a short timer, but the number of hosts I would have to do this on might create a problem.

Comment