View Full Version : UserParameter with [*] not working
If I try to use the new funktionality from zabbix beta3 with multiple
parameters like:
UserParameter=wc ,wc -$2 $1|cut -f1 -d" "
I got allways:
Parameter [usr.wc[/etc/hosts,w]] is not supported by agent on host HOSTNAME Old status [0]
If I use only one parametr I have the same problem.
Some help?
cameronsto
12-12-2005, 20:42
Have you tried providing the full path to 'wc'? /usr/local/bin/wc?
-cameron
Just tried to provied the full path.
The same thing:
Not supported
-peter
I got same problem with beta3 and beta4
cameronsto
13-12-2005, 15:10
What about using specific values? Such as:
UserParameter=wc[/tmp/test.dat],/usr/local/bin/wc -l /tmp/test.dat | /usr/local/bin/cut -f1 -d" "
Does that work?
-cameron
No it is not working.
If you look at the old mysql userparameters, everything with
parantes [] are not working!
-peter
pdwalker
13-12-2005, 21:43
Format for user parms previous to 1.1b4
UserParameter=mysql[ping],mysqladmin -uroot ping|grep alive|wc -l
Format for user parms in 1.1b4
UserParameter=mysql.ping,mysqladmin -uroot ping|grep alive|wc -l
Update your configuration files with the new format and test again.
- Paul
This is the point why there have changed the format from:
UserParameter=mysql[ping],mysqladmin -uroot ping|grep alive|wc -l
to:
UserParameter=mysql.ping,mysqladmin -uroot ping|grep alive|wc -l
No more [] thats why it is working again!
-peter
still cant get custom UserParameters to work..
as it worked with beta2:
UserParameter=custom_param ,/home/zabbix/bin/script $1
defined as item: custom_param[path_to_filename]
how it should look like in beta4?
like that? :
UserParameter=custom_param.*,/home/zabbix/bin/script $1
defined as item: custom_param.path_to_filename
:)
as it worked with beta2:
UserParameter=custom_param ,/home/zabbix/bin/script $1
defined as item: custom_param[path_to_filename]
should look like this in beta4:
UserParameter=custom_param[],/home/zabbix/bin/script $1
defined as item: custom_param[path_to_filename]
-peter
P.S. the explanation in the doc and readme from beta3 ar not right! :o