Welcome to Pandora FMS Community › Forums › Community support › Pandora Agent tentacle transfer broken
-
Pandora Agent tentacle transfer broken
Posted by rkiesler on April 12, 2024 at 17:38Hi! Until 2 days ago, pandora agent sent its data nicely to my pandora fms community server. Now, after upgrading Home Assistant running on the same machine, apparently, it is no longer doing that. According to the “debug 1” setting in pandora_agent.config, the XML is generated nicely. But the Pandora FMS console is telling me UNKNOWN for all the sensors.
This happens just for one of my pandora_agents, the others are still working fine. I tried installing pandora_agent again with force install — no difference. Please help! Thanks!
server / console / agents are all running on a Raspberry Pi. agent on one Raspberry Pi, server / console on a different one. All of that running Raspbian.
-
This discussion was modified 4 months, 1 week ago by
rkiesler.
rkiesler replied 4 months ago 3 Members · 8 Replies -
This discussion was modified 4 months, 1 week ago by
-
8 Replies
-
::
Hi Rkiesler,
It seems to be a problem with the shipment check the following:
1. That you have added a module that corrupts the use of the agent (in that case remove it).
2. That there is no firewall or proxy blocking the traffic from the agent to the server.
3. That the agent machine has a direct connection to the Pandora FMS server.
Another option to see if it is working correctly, do the tentacle sending test from the agent machine to the Pandora FMS server.
I attach the command for you to make the appropriate tests.
Linux:
tentacle_client -a IP_PANDSERV FILEPATH
Windows:
tentacle_client.exe -a IP_PANDSERV FILEPATH
The file that you send should arrive to the directory “/var/spool/pandora/data_in” in the Pandora FMS server.
Best regards,
VÃc. -
-
-
::
Hello rkiesler,
If the tentacle_client is not found in the $PATH of the system, then the server won’t be able to execute this normally, as it will look for this binary at the $PATH.
Make sure you have the path of the tentacle_client declared inside the $PATH env var of your system in order for PandoraFMS to be able to run the binary and send the XMLs.
Kind regards,
Sergio B.
-
-
::
Thank you! tentacle_client is now reachable by PATH, but it is still not working. Further investigation — in /opt/pandora-agent/tmp I get exactly one .data file, each time I reboot that machine — that’s it. I think, pandora_agent is stuck and probably that’s why it doesn’t send any data.
example: 7a535e6f2c8c9336c0fdc4dd81121fbd.1713203128.data
I’m not sure what’s going on here.
In the log file, I get this information:
2024/04/15 18:58:05 – [log] – Running as user root
2024/04/15 18:58:05 – [setup] – server_ip is 192.168.0.XXX
2024/04/15 18:58:05 – [setup] – server_path is /var/spool/pandora/data_in
2024/04/15 18:58:05 – [setup] – temporal is /opt/pandora-agent/tmp
2024/04/15 18:58:05 – [setup] – logfile is /opt/pandora-agent/var/log/pandora/pandora_agent.log
2024/04/15 18:58:05 – [setup] – interval is 300
2024/04/15 18:58:05 – [setup] – debug is 0
2024/04/15 18:58:05 – [setup] – udp_server is 0
2024/04/15 18:58:05 – [setup] – udp_server_port is 41122
2024/04/15 18:58:05 – [setup] – udp_server_auth_address is 0.0.0.0
2024/04/15 18:58:05 – [setup] – group is Servers
2024/04/15 18:58:05 – [setup] – address is 192.168.0.XXX
2024/04/15 18:58:05 – [setup] – server_port is 41121
2024/04/15 18:58:05 – [setup] – transfer_mode is tentacle
2024/04/15 18:58:05 – [setup] – remote_config is 0
2024/04/15 18:58:05 – [setup] – agent_threads is 1
2024/04/15 18:58:05 – [setup] – xml_buffer is 1
2024/04/15 18:58:05 – [setup] – temporal_min_size is 1024
2024/04/15 18:58:05 – [log] – Thread is disabled.
-
::
Hi rkiesler,
If you activate the debug mode in the agent, do you get any error in the module executions or is there any module that takes much longer than the agent interval?
Check the agent’s log or attach it so we can take a look at it (if the agent has any sensitive data, you can send it to us privately).
Best regards,
VÃc. -
::
Hi, no, the execution seems to only take a couple of seconds and the XML also looks good. Here’s the debug log:
2024/04/16 18:46:50 – [log] – Running as user root
2024/04/16 18:46:50 – [setup] – server_ip is 192.168.0.XXX
2024/04/16 18:46:50 – [setup] – server_path is /var/spool/pandora/data_in
2024/04/16 18:46:50 – [setup] – temporal is /opt/pandora-agent/tmp
2024/04/16 18:46:50 – [setup] – logfile is /opt/pandora-agent/var/log/pandora/pandora_agent.log
2024/04/16 18:46:50 – [setup] – interval is 300
2024/04/16 18:46:50 – [setup] – debug is 1
2024/04/16 18:46:50 – [setup] – udp_server is 0
2024/04/16 18:46:50 – [setup] – udp_server_port is 41122
2024/04/16 18:46:50 – [setup] – udp_server_auth_address is 0.0.0.0
2024/04/16 18:46:50 – [setup] – group is Servers
2024/04/16 18:46:50 – [setup] – address is 192.168.0.XXX
2024/04/16 18:46:50 – [setup] – server_port is 41121
2024/04/16 18:46:50 – [setup] – transfer_mode is tentacle
2024/04/16 18:46:50 – [setup] – remote_config is 0
2024/04/16 18:46:50 – [setup] – agent_threads is 1
2024/04/16 18:46:50 – [setup] – xml_buffer is 1
2024/04/16 18:46:50 – [setup] – temporal_min_size is 1024
2024/04/16 18:46:50 – [log] – Thread is disabled.
2024/04/16 18:46:51 – [debug] – Executing module CPU Load (vmstat 1 2 | tail -1 | awk ‘{ print $13 }’ 2> /dev/null)
2024/04/16 18:46:51 – [debug] – Executing module Load Average (cat /proc/loadavg | cut -d’ ‘ -f1 2> /dev/null)
2024/04/16 18:46:51 – [debug] – Executing module TCP_Connections (netstat -an | grep tcp | grep -v LIST | wc -l 2> /dev/null)
2024/04/16 18:46:51 – [debug] – Executing plugin: pandora_mem_used
2024/04/16 18:46:51 – [debug] – Executing plugin: pandora_netusage
2024/04/16 18:46:51 – [debug] – Executing plugin: rck-cpu-info
2024/04/16 18:46:51 – [debug] – Executing plugin: rck-check-rpi-os
2024/04/16 18:46:52 – [debug] – Executing plugin: rck-io 50 80
2024/04/16 18:46:52 – [debug] – Executing plugin: rck-nic
2024/04/16 18:46:53 – [debug] – Executing plugin: rck-check-systemd –set-group=System
2024/04/16 18:46:53 – [debug] – Executing plugin: rck-check-systemd –set-group=System Docker docker
2024/04/16 18:46:53 – [debug] – Executing plugin: rck-check-systemd –set-group=Application LMS logitechmediaserver
2024/04/16 18:46:53 – [debug] – Executing plugin: rck-check-systemd –set-group=Application Icecast icecast2
2024/04/16 18:46:53 – [debug] – Wrote XML data file ‘/opt/pandora-agent/tmp/7a535e6f2c8c9336c0fdc4dd81121fbd.1713289613.data’
-