Hi I have a problem with script and userparameter.
I have this configuration:
With this configuration zabbix receive [] but script work.
If I change this configuration in this way;
Zabbix receive test text.
Where is the problem in my begin script???
Can anyone help me??
Thanks in advance
Dario
I have this configuration:
Code:
In zabbix-agent.conf
UserParameter=checkuserinit,/opt/scripts/initquery.sh
In initquery.sh
#!/bin/sh
echo `mysql -e 'select count(*) from registration_request where status = "init"' test` | awk '{print $2}'
If I change this configuration in this way;
Code:
In zabbix-agent.conf UserParameter=checkuserinit,/opt/scripts/initquery.sh In initquery.sh #!/bin/sh echo "test"
Where is the problem in my begin script???
Can anyone help me??
Thanks in advance
Dario
Comment