Hi All,
I have been trying to setup a UserParameter as following
UserParameter=test1,ls -l | grep -v phy_dbs | awk '{print $1 "\t" $5}' | grep '^[0-9]$'
When I run the command manually it works.
However when I test it with /usr/local/bin/zabbix_agentd -t test1
it return test1 [m|ZBX_NOTSUPPORTED]
I tried to add the "\" sign, '^\[0-9\]$' ,also it does not work
Any ideas?
I have been trying to setup a UserParameter as following
UserParameter=test1,ls -l | grep -v phy_dbs | awk '{print $1 "\t" $5}' | grep '^[0-9]$'
When I run the command manually it works.
However when I test it with /usr/local/bin/zabbix_agentd -t test1
it return test1 [m|ZBX_NOTSUPPORTED]
I tried to add the "\" sign, '^\[0-9\]$' ,also it does not work
Any ideas?
Comment