Welcome to Pandora FMS Community › Forums › Community support › Advanced troubleshooting › Pandora_Agent won’t transfer files through FTP
-
Pandora_Agent won’t transfer files through FTP
Posted by thiagolima on November 12, 2015 at 18:06Hi,
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 http://ftp.example.com 21 2>&1 >/dev/null <
thiagolima replied 9 years, 2 months ago 1 Member · 1 Reply -
1 Reply
-
::
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/pandoraThis 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.logThe 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_daemonHere’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 http://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.