Dear Zabbixian Friends,
I like to define an "USER MACRO" in an active agent configuration file as an "USER PARAMETER" item key to be used in "ACTION Section OPERATIONS" Part.
Active Agent Config File Section:
UserParameter=curlipv4publicv1,"C:\Program Files\Zabbix Agent 2\curl64\bin\curl.exe" -s checkip.amazonaws.com
İnstead of curlipv4publicv1 , how can we introduce an "User Defined Macro" here ?
In what kind of grammer ?
My Format Guess is as here at the right >>> UserParameter={$curlipv4publicv1},"C:\Program Files\Zabbix Agent 2\curl64\bin\curl.exe" -s checkip.amazonaws.com <<< In which format {$USERMACRO} / ??? {$curlipv4publicv1} ??? should be introduced here ?
In Agent LOG file, it says >>> "cannot initialize user parameters: cannot add user parameter "{$curlipv4publicv1},"C:\Program Files\Zabbix Agent 2\curl64\bin\curl.exe" -s checkip.amazonaws.com": Invalid item key format.
In Actions / Operations Details / Custom Message / Message Field;
Problem started at ‼{EVENT.TIME}‼ on ‼{EVENT.DATE}‼
Problem name: {EVENT.NAME}
Host: {HOST.NAME} {HOST.IP} <<<< instead of {HOST.IP} , I like to use that MACRO here as of {$curlipv4publicv1}
Severity: {EVENT.SEVERITY}
Original problem ID: {EVENT.ID}
{TRIGGER.URL}
Regards,
Nuri.
I like to define an "USER MACRO" in an active agent configuration file as an "USER PARAMETER" item key to be used in "ACTION Section OPERATIONS" Part.
Active Agent Config File Section:
UserParameter=curlipv4publicv1,"C:\Program Files\Zabbix Agent 2\curl64\bin\curl.exe" -s checkip.amazonaws.com
İnstead of curlipv4publicv1 , how can we introduce an "User Defined Macro" here ?
In what kind of grammer ?
My Format Guess is as here at the right >>> UserParameter={$curlipv4publicv1},"C:\Program Files\Zabbix Agent 2\curl64\bin\curl.exe" -s checkip.amazonaws.com <<< In which format {$USERMACRO} / ??? {$curlipv4publicv1} ??? should be introduced here ?
In Agent LOG file, it says >>> "cannot initialize user parameters: cannot add user parameter "{$curlipv4publicv1},"C:\Program Files\Zabbix Agent 2\curl64\bin\curl.exe" -s checkip.amazonaws.com": Invalid item key format.
In Actions / Operations Details / Custom Message / Message Field;
Problem started at ‼{EVENT.TIME}‼ on ‼{EVENT.DATE}‼
Problem name: {EVENT.NAME}
Host: {HOST.NAME} {HOST.IP} <<<< instead of {HOST.IP} , I like to use that MACRO here as of {$curlipv4publicv1}
Severity: {EVENT.SEVERITY}
Original problem ID: {EVENT.ID}
{TRIGGER.URL}
Regards,
Nuri.