I was surprised to find I cannot (apparently) use the host name in a trigger expression.
I wanted to compare the SNMP return for sysName against the current host name as a way of noticing if a device has migrated (e.g. due to DHCP) to a different host.
I realize I can use the change in that value as well, but I was trying to do this instead as a way of also detecting initial incorrect setups (e.g. someone adds a host and puts in the wrong IP). I also realize this requires discipline in naming (but that's a goal not a problem).
Am I correct, there's no syntax or technique that let's you do so?
The only workaround I can see (and what I may do) is an external check, since {HOST.HOST} can be passed as a parameter to it, though that produces a separate item as well as trigger, not to mention a lot more overhead.
Am I missing anything?
I wanted to compare the SNMP return for sysName against the current host name as a way of noticing if a device has migrated (e.g. due to DHCP) to a different host.
I realize I can use the change in that value as well, but I was trying to do this instead as a way of also detecting initial incorrect setups (e.g. someone adds a host and puts in the wrong IP). I also realize this requires discipline in naming (but that's a goal not a problem).
Am I correct, there's no syntax or technique that let's you do so?
The only workaround I can see (and what I may do) is an external check, since {HOST.HOST} can be passed as a parameter to it, though that produces a separate item as well as trigger, not to mention a lot more overhead.
Am I missing anything?
Comment