Collector Name Property
I need to set a property on my collectors that equals the name of the collector. Name meaning the name of the server.
##HOST## cannot be used during collector down events and all we have to work with is ##AGENT_DESCRIPTION## which can be set to anything.
Does anyone have a script that will get the name of the collector and set the value as a custom collector property?
I feel like a token for this should exist and I am pretty sure I put this in as a suggestion years ago.
Shack
Posted 2 years ago·Last reply 2 years ago
3 comments
LM User
·2 years agoThe hostname field in the API response should have the name of the device. Looks like this should do it:
Shack
OP2 years agoThat was my other thought but when I was looking at the API docs I didn't see a way to update the collector description. Might of read through it too fast.
LM User
·2 years agoWhy not just make the ##AGENT_DESCRIPTION## have the value of the collector's host's name?
LM borked their website and both the swagger and sdk docs are giving 404 errors. Otherwise I'd point you to it.