Hi all;
I'm having a problem with Remote Commands (via Actions) but using the system.run function works perfectly from the server.
- RHEL ES 4.4
- zabbix 1.1.4
- debug level is set to 4
- sudo is configured properly for user 'zabbix' (tested thoroughly)
- EnableRemoteCommands=1
This works:
###
./bin/zabbix_get -s www.domain.com -p 10050 -k system.run["sudo /cluster/cluster-scripts/init.d/httpd-zabbix start"]
###
However, my Remote Command Action does NOT work.
"www.domain.com:sudo /cluster/cluster-scripts/init.d/httpd-zab start"
Here is the log from the server:
###
007031:20070302:000226 Run remote commands START [actionid:7]
007031:20070302:000226 run_remote_command START [hostname: 'www.domain.com', command: 'sudo /cluster/cluster-scripts/init.d/httpd-zab start']
007031:20070302:000226 run_remote_command [result:-2]
007031:20070302:000226 Run remote commands END
###
Seems like the result = -2. Does anyone know what this means?
We have taken a lot of time to make sure that init scripts return zabbix friendly output, permissions are correct, sudo is setup properly and we can execute remote commands as well. We have tested with the system.run()( command and it functions properly too.
Any help would be greatly appreciated.
Thank you!
I'm having a problem with Remote Commands (via Actions) but using the system.run function works perfectly from the server.
- RHEL ES 4.4
- zabbix 1.1.4
- debug level is set to 4
- sudo is configured properly for user 'zabbix' (tested thoroughly)
- EnableRemoteCommands=1
This works:
###
./bin/zabbix_get -s www.domain.com -p 10050 -k system.run["sudo /cluster/cluster-scripts/init.d/httpd-zabbix start"]
###
However, my Remote Command Action does NOT work.
"www.domain.com:sudo /cluster/cluster-scripts/init.d/httpd-zab start"
Here is the log from the server:
###
007031:20070302:000226 Run remote commands START [actionid:7]
007031:20070302:000226 run_remote_command START [hostname: 'www.domain.com', command: 'sudo /cluster/cluster-scripts/init.d/httpd-zab start']
007031:20070302:000226 run_remote_command [result:-2]
007031:20070302:000226 Run remote commands END
###
Seems like the result = -2. Does anyone know what this means?
We have taken a lot of time to make sure that init scripts return zabbix friendly output, permissions are correct, sudo is setup properly and we can execute remote commands as well. We have tested with the system.run()( command and it functions properly too.
Any help would be greatly appreciated.
Thank you!
Comment