Pandora FMS Community

Pandora_Agent won't transfer files through FTP

thiagolima · 12 nov 2015, 18:06 · 2 mensajes · 60 visitas

  1. Inicio del debate

    Hi, I'm using Pandora FMS for about a year now and I've always made use of FTP for the XML transfer between the agents and the server. It all worked flawlessly and it is still working today. But recently I was adding these new agents just like I always did but they are unable to transfer the XML properly. Troubleshooting this case, I was able to see that the FTP is called using the following command: sh -c ftp -n ftp.example.com 21 2>&1 >/dev/null <

  2. Additional information about this issue: The pandora_agent daemon is running properly by the user it's meant to be: # ps -aux | grep pandora foo      15345  0.0  0.8  50088  8620 ?        SN  Nov11  0:00 /usr/bin/perl /usr/bin/pandora_agent /etc/pandora This same user is the owner of the log folder: # ls -lah /var/log/pandora/* -rw-r----- 1 foo ubuntu 22K Nov 12 13:59 /var/log/pandora/pandora_agent.log The user is allowed to run the pandora_agent as root: # Allow foo to run pandora_agent foo ALL=(ALL) NOPASSWD:/etc/init.d/pandora_agent_daemon Here's the log output: # cat /var/log/pandora/pandora_agent.log 2015/11/11 18:26:27 - [log] - Running as user foo 2015/11/11 18:26:27 - [setup] - server_ip is ftp.example.com 2015/11/11 18:26:27 - [setup] - server_path is /var/spool/pandora/data_in 2015/11/11 18:26:27 - [setup] - temporal is /tmp 2015/11/11 18:26:27 - [setup] - logfile is /var/log/pandora/pandora_agent.log 2015/11/11 18:26:27 - [setup] - interval is 300 2015/11/11 18:26:27 - [setup] - debug is 0 2015/11/11 18:26:27 - [setup] - agent_name is Some Agent Name 2015/11/11 18:26:27 - [setup] - address is foo.example.com 2015/11/11 18:26:27 - [setup] - encoding is UTF-8 2015/11/11 18:26:27 - [setup] - server_port is 21 2015/11/11 18:26:27 - [setup] - transfer_mode is ftp 2015/11/11 18:26:27 - [setup] - server_pwd is somepass 2015/11/11 18:26:27 - [setup] - server_opts is -p 2015/11/11 18:26:27 - [setup] - remote_config is 0 2015/11/11 18:26:27 - [setup] - pandora_user is foo 2015/11/11 18:26:27 - [setup] - xml_buffer is 1 2015/11/11 18:26:27 - [setup] - temporal_min_size is 1024 2015/11/11 18:26:27 - [setup] - include is /etc/pandora/plainlinux.conf 2015/11/11 18:26:27 - [setup] - reading /etc/pandora/plainlinux.conf 2015/11/11 18:26:27 - [log] - Thread is disabled.

Entra en tu cuenta para publicar.