Hi Guys,
i have been trying to restart Clamd daemon if the daemon is stopped through remote commands. I can see the command gets sent to the zabbix-agent but it does nothing. i have ran the debug and got the following response:
32045:20130529:151354.941 Processing request.
32045:20130529:151354.941 Requested [system.run["sudo /etc/init.d/clamd start","nowait"]]
32045:20130529:151354.941 Executing command 'sudo /etc/init.d/clamd start'
32045:20130529:151354.944 Sending back [1]
in the agent config file EnableRemoteCommands=1 is set. the zabbix user has full rights to run the command in the sudoers file and this command does run from the command line.
If anyone could shed some light on this it will be highly appreciated.
many thanks,
Zeeshan
i have been trying to restart Clamd daemon if the daemon is stopped through remote commands. I can see the command gets sent to the zabbix-agent but it does nothing. i have ran the debug and got the following response:
32045:20130529:151354.941 Processing request.
32045:20130529:151354.941 Requested [system.run["sudo /etc/init.d/clamd start","nowait"]]
32045:20130529:151354.941 Executing command 'sudo /etc/init.d/clamd start'
32045:20130529:151354.944 Sending back [1]
in the agent config file EnableRemoteCommands=1 is set. the zabbix user has full rights to run the command in the sudoers file and this command does run from the command line.
If anyone could shed some light on this it will be highly appreciated.
many thanks,
Zeeshan

Comment