P parcival Jul 30, 2014 #1 Hi all, I have here a script with Ruby. On the console this script works without any problem, but not with a call from Zabbix. The first line in this script starts with: Code: #!/usr/bin/env ruby But why can Zabbix not find Ruby? Any help here? thx Thanks, Stefan
Hi all, I have here a script with Ruby. On the console this script works without any problem, but not with a call from Zabbix. The first line in this script starts with: Code: #!/usr/bin/env ruby But why can Zabbix not find Ruby? Any help here? thx Thanks, Stefan
SirDice Administrator Staff member Administrator Moderator Jul 30, 2014 #2 Your zabbix user doesn't have /usr/local/bin/ in its path.
F fonz Jul 30, 2014 #3 parcival said: But why can Zabbix not find Ruby? Click to expand... Ask Silvio §e (Sorry, I couldn't resist.)
parcival said: But why can Zabbix not find Ruby? Click to expand... Ask Silvio §e (Sorry, I couldn't resist.)
OP P parcival Jul 30, 2014 Thread Starter #4 Hi @SirDice, A Zabbix standard installation has this user: Code: zabbix:*:122:122:Zabbix NMS:/nonexistent:/usr/sbin/nologin How to assign the path? Last edited by a moderator: Oct 16, 2014
Hi @SirDice, A Zabbix standard installation has this user: Code: zabbix:*:122:122:Zabbix NMS:/nonexistent:/usr/sbin/nologin How to assign the path?
OP P parcival Jul 30, 2014 Thread Starter #5 Short information, with Code: #!/usr/local/bin/ruby the script works with Zabbix.