Hi,
I have a problem with user parameter. I have a git repo in which I have some cucumber tests - I would like to run them using zabbix_agent.
In file /etc/zabbix/zabbix_agentd.d/userparameter_mysql.conf I have three user parameters:
UserParameter=test.sip1, cd /var/lib/zabbix/myapp/ && /labs/apache-maven-3.0.4/bin/mvn -v
UserParameter=test.sip2, cd /tmp/ && /labs/apache-maven-3.0.4/bin/mvn clean install
UserParameter=test.sip3, cd /var/lib/zabbix/myapp/ && /labs/apache-maven-3.0.4/bin/mvn clean install
As a result test.sip1 works correctly displaying the version of maven, test.sip2 works also correctly (it displays build fails since 'maven clean install' is executed in wrong directory), and last key test.sip3 displays ZBX_NOTSUPPORTED. When I execute "cd /var/lib/zabbix/myapp/ && /labs/apache-maven-3.0.4/bin/mvn clean install" as zabbix user manually, then it works correctly.
What could be the problem? Maybe the output of third test.sip3 is too long?
I have a problem with user parameter. I have a git repo in which I have some cucumber tests - I would like to run them using zabbix_agent.
In file /etc/zabbix/zabbix_agentd.d/userparameter_mysql.conf I have three user parameters:
UserParameter=test.sip1, cd /var/lib/zabbix/myapp/ && /labs/apache-maven-3.0.4/bin/mvn -v
UserParameter=test.sip2, cd /tmp/ && /labs/apache-maven-3.0.4/bin/mvn clean install
UserParameter=test.sip3, cd /var/lib/zabbix/myapp/ && /labs/apache-maven-3.0.4/bin/mvn clean install
As a result test.sip1 works correctly displaying the version of maven, test.sip2 works also correctly (it displays build fails since 'maven clean install' is executed in wrong directory), and last key test.sip3 displays ZBX_NOTSUPPORTED. When I execute "cd /var/lib/zabbix/myapp/ && /labs/apache-maven-3.0.4/bin/mvn clean install" as zabbix user manually, then it works correctly.
What could be the problem? Maybe the output of third test.sip3 is too long?
Comment