Hi, i am trying to pass the {IPADDRESS} macro on a sshagent executed script and i can not get it to work. My item work if i specify my param. manually (it's a delta/sec lines count for a specific folder created by Rsyslog's %FROM-HOSTIP).
{IPADDRESS} works in the "key" field so i tried to pass it to the executed script with $1 but still no success.
ex:
key: ssh.run[{IPADDRESS},10.1.1.1,22]
script: bash /var/live_logs/count.sh {IPADDRESS} | tail -n 1
or
script: bash /var/live_logs/count.sh $1 | tail -n 1
Like i said, the check works if i provide a valid parameter manually.
EDIT:
booo
{IPADDRESS} works in the "key" field so i tried to pass it to the executed script with $1 but still no success.
ex:
key: ssh.run[{IPADDRESS},10.1.1.1,22]
script: bash /var/live_logs/count.sh {IPADDRESS} | tail -n 1
or
script: bash /var/live_logs/count.sh $1 | tail -n 1
Like i said, the check works if i provide a valid parameter manually.
EDIT:
booo
Comment