PDA

View Full Version : UserParameter passing multiple variables to script


sbadger
10-04-2006, 18:07
I am trying to pass multiple variables to a UserParameter script, but when I relaunch the agent it gives me the following error:

Can't add user specified key "san[*". Can't parse key!

Here is the my entry in the zabbix_agentd.conf:

UserParameter=san[*,*],/home/zabbix/san.sh

I know it is dieing at the first comma, but my question is how can I pass multiple items from zabbix to a shell script without is seeing the comma?

Alexei
10-04-2006, 18:23
No need to use comma!

UserParameter=san
,/home/zabbix/san.sh $1 $2 $3

In ZABBIX frontend: san[param1,param2,param3]

sbadger
10-04-2006, 19:20
That worked!!