Hello,
I have json file which may contain several values of port in one key per each of service PID, eg:
These values make issues as long as zabbix creates a single item for both of them instead of separate item per each one. Thus zabbix is only able to either collect data only for the first port in list or for non of them as long as it can handle only one value per item at once.
I want somehow to separate these values, but only 1 way came to my mind.
To make output something like:
and so on.
But as I know zabbix doesn't support regexp for macro field in order I make these keys more flexible.
So is there a way somehow to make macro more flexible, eg {#PORT-[0-9]} ?
If no, could you please suggest another solution to avoid creation of tons LLD rules?
Thank you!
I have json file which may contain several values of port in one key per each of service PID, eg:
Code:
"{#ID}": "squid7",
"{#PORT}": "2222 3333"
I want somehow to separate these values, but only 1 way came to my mind.
To make output something like:
Code:
"{#ID}": "squid7",
"{#PORT-0}": "2222",
"{#PORT-1}": "3333"
But as I know zabbix doesn't support regexp for macro field in order I make these keys more flexible.
So is there a way somehow to make macro more flexible, eg {#PORT-[0-9]} ?
If no, could you please suggest another solution to avoid creation of tons LLD rules?
Thank you!