In one machine with a server and agentd running, i try to run a remote command (launch vsftpd when is down) but fails.
My server.log is
My agentd.log is
My agentd.conf has
In /etc/hosts
What is the problem of the remote command execution?
Thanks, Jose
My server.log is
Code:
Condition is TRUE 006374:20060823:142400 Conditions are TRUE 006374:20060823:142400 Conditions match our trigger. Do apply actions. 006374:20060823:142400 In substitute_macros([]) 006374:20060823:142400 In substitute_simple_macros [] 006374:20060823:142400 Result expression [] 006374:20060823:142400 Result expression: 006374:20060823:142400 In substitute_macros([]) 006374:20060823:142400 In substitute_simple_macros [] 006374:20060823:142400 Result expression [] 006374:20060823:142400 Result expression: 006374:20060823:142400 Run remote commands START [actionid:5] 006374:20060823:142400 get_next_command START [command_list: 'enigma:/usr/local/sbin/vsftpd'] 006374:20060823:142400 Result of get_next_command [alias:enigma, is_group:0, command:/usr/local/s bin/vsftpd] 006374:20060823:142400 run_remote_command START [hostname: 'enigma', command: '/usr/local/sbin/vs ftpd'] 006374:20060823:142400 Executing query:select distinct host,ip,useip,port from hosts where host=' enigma' 006374:20060823:142400 get_value_agent: host[enigma] ip[] key [system.run[/usr/local/sbin/vsftpd, nowait]] 006374:20060823:142400 Sending [system.run[/usr/local/sbin/vsftpd,nowait] ] 006374:20060823:142400 Type of received value [1] is not sutable for [system.run[/usr/local/sbin/ vsftpd,nowait]@enigma] having type [24] 006374:20060823:142400 Returning NOTSUPPORTED 006374:20060823:142400 run_remote_command [result:-2]
My agentd.log is
Code:
006361:20060823:142404 Error getpeername [Bad file descriptor] 006361:20060823:142404 Connection rejected
My agentd.conf has
Code:
Server=127.0.0.1 ServerPort=10051 Hostname=127.0.0.1 ListenPort=10050 ListenIP=127.0.0.1 EnableRemoteCommands=1
Code:
127.0.0.1 enigma
What is the problem of the remote command execution?
Thanks, Jose
Comment