q1x / zabbix-gnomes

Various scripts to automate tasks in Zabbix
Other
179 stars 94 forks source link

fix uppercasing of context-macros #12

Closed rschaten closed 5 years ago

rschaten commented 5 years ago

When uppercasing the whole macro name, in many cases context macros will not work. Consider "{DISK_SPACE_WARN:/storage/volume}", which is not the same as "{DISK_SPACE_WARN:/STORAGE/VOLUME}".

This fix changes only the part on the left side of the colon.

q1x commented 5 years ago

Thanks for the patch!