Trim all values for key "{#LLD}"
Trim all values
Remove all dublicates form json with same values for key "{#SERIAL}"
Input: "www.google.com::443, :1.1.1.1:443,localhost:127.0.0.1:" Output:
[
{"{#NAME}": "www.google.com:443", "{#HOST}": "www.google.com", "{#IP}": "", "{#PORT}": "443"},
{"{#NAME}": "1.1.1.1:443", "{#HOST}": "", "{#IP}": "1.1.1.1", "{#PORT}": "443"},
{"{#NAME}": "localhost:127.0.0.1", "{#HOST}": "localhost", "{#IP}": "127.0.0.1", "{#PORT}": ""}
]
Input: "Сервер Google:www.google.com:443, Сервер CloudFlare:1.1.1.1:443, Локалхост:127.0.0.1:`" Output:
[
{"{#ID}": "www.google.com:443", "{#NAME}": "Сервер Google", "{#HOST}": "www.google.com", "{#PORT}": "443"},
{"{#ID}": "1.1.1.1:443", "{#NAME}": "Сервер CloudFlare", "{#HOST}": "1.1.1.1", "{#PORT}": "443"},
{"{#ID}": "127.0.0.1", "{#NAME}": "Локалхост", "{#HOST}": "127.0.0.1", "{#PORT}": ""}
]
Input: "/var/log;/etc/zabbix;/opt" Output:
[
{"{#PATH}": "/var/log"},
{"{#PATH}": "/etc/zabbix"},
{"{#PATH}": "/opt"}
]
Converts all json {#SNMPINDEX}
for example "5.84.69.83.84.50.4.105.99.109.112" to {"{#CTRLINDEX}": "TEST2"}, {"{#CTRLNAME}": "icmp"}
.
Converts all json {#NAME} for example D0 9C D0 BE D0 B4 D1 83 D0 BB D1 8C 20 D1 81 D0 B1 D0 BE D1 80 D0 B0 20 D1 82 D0 BE D0 BD D0 B5 D1 80 D0 B0 20 48 50 20 43 45 39 38 30 41 00
to "Модуль сбора тонера HP CE980A"
Input: "01/12/77" Output: 221864400
Input: "01/12/1977 07:30:14" Output: 221891414