Hy guys.
I have a problem with the execution of the remote actions. In particular I cannot restart the service ssh. I precise that the user zabbix has all privileges to restart the service (I have tried as user zabbix from command line) and that I have modified the configuration file “/etc/sudoers” inserting the line
“zabbix ALL= (ALL) NOPASSWD: ALL”.
These are the parts in the log files of zabbix_server and zabbix_agentd (Debug Level =4) relative to the execution of the remote command.
zabbix_agentd.log
...
...
...
008085:20070105:112920 Got line:system.run['sudo /etc/init.d/ssh restart',nowait]
008085:20070105:112920 RUN_COMMAND cmd = 'system.run['sudo /etc/init.d/ssh restart',nowait]'
008085:20070105:112920 RUN_COMMAND flag = 'nowait'
008085:20070105:112920 Run remote command ''sudo /etc/init.d/ssh restart''
008085:20070105:112920 RUN_COMMAND to be started as NOWAIT
008085:20070105:112920 Sending back:1
...
...
...
zabbix_server.log
...
...
...
008102:20070105:112920 get_value_agent: host[localhost] ip[127.0.0.1] key [system.run['sudo /etc/init.d/ssh restart',nowait]]
008102:20070105:112920 Sending [system.run['sudo /etc/init.d/ssh restart',nowait]
]
008102:20070105:112920 Type of received value [1] is not sutable for [system.run['sudo /etc/init.d/ssh restart',nowait]@localhost] having type [538976288]
008102:20070105:112920 Returning NOTSUPPORTED
008102:20070105:112920 run_remote_command [result:-2]
008102:20070105:112920 get_next_command START [command_list: '']
008102:20070105:112920 Result get_next_command [EOL]
008102:20070105:112920 Run remote commands END
...
...
...
Is there someone that knows what is the problem?
Thanks for the help.
I have a problem with the execution of the remote actions. In particular I cannot restart the service ssh. I precise that the user zabbix has all privileges to restart the service (I have tried as user zabbix from command line) and that I have modified the configuration file “/etc/sudoers” inserting the line
“zabbix ALL= (ALL) NOPASSWD: ALL”.
These are the parts in the log files of zabbix_server and zabbix_agentd (Debug Level =4) relative to the execution of the remote command.
zabbix_agentd.log
...
...
...
008085:20070105:112920 Got line:system.run['sudo /etc/init.d/ssh restart',nowait]
008085:20070105:112920 RUN_COMMAND cmd = 'system.run['sudo /etc/init.d/ssh restart',nowait]'
008085:20070105:112920 RUN_COMMAND flag = 'nowait'
008085:20070105:112920 Run remote command ''sudo /etc/init.d/ssh restart''
008085:20070105:112920 RUN_COMMAND to be started as NOWAIT
008085:20070105:112920 Sending back:1
...
...
...
zabbix_server.log
...
...
...
008102:20070105:112920 get_value_agent: host[localhost] ip[127.0.0.1] key [system.run['sudo /etc/init.d/ssh restart',nowait]]
008102:20070105:112920 Sending [system.run['sudo /etc/init.d/ssh restart',nowait]
]
008102:20070105:112920 Type of received value [1] is not sutable for [system.run['sudo /etc/init.d/ssh restart',nowait]@localhost] having type [538976288]
008102:20070105:112920 Returning NOTSUPPORTED
008102:20070105:112920 run_remote_command [result:-2]
008102:20070105:112920 get_next_command START [command_list: '']
008102:20070105:112920 Result get_next_command [EOL]
008102:20070105:112920 Run remote commands END
...
...
...
Is there someone that knows what is the problem?
Thanks for the help.
Comment