Ad Widget

Collapse

remote command

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • portu
    Junior Member
    • Aug 2006
    • 6

    #1

    remote command

    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
    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
    In /etc/hosts
    Code:
    127.0.0.1 enigma

    What is the problem of the remote command execution?


    Thanks, Jose
  • portu
    Junior Member
    • Aug 2006
    • 6

    #2
    Anyone know why the connection is rejected?

    Thanks

    Comment

    • ReefShark
      Member
      • Dec 2005
      • 43

      #3
      Shouldn't hostname be the actual hostname (not FQDN) in stead of an ip adres?

      Comment

      • portu
        Junior Member
        • Aug 2006
        • 6

        #4
        Yes, thanks.

        I solved this question 4 days ago but thanks for your answer.
        Also i had some permissions problem solved with sudo.

        Now, the remote command is executed succesfully but the messages still appears in the logs ("is not sutable ...").

        Regards,
        Jose

        Comment

        Working...