Welcome to Pandora FMS Community!

Find answers, ask questions, and connect with our community around the world.

Bienvenido a la comunidad de Pandora FMS Forums Community support Pandora Agent tentacle transfer broken

  • Pandora Agent tentacle transfer broken

    Posted by rkiesler on abril 12, 2024 at 17:38

    Hi! 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 7 months, 2 weeks ago by  rkiesler.
    rkiesler replied 7 months, 2 weeks ago 3 Members · 8 Replies
  • 8 Replies
  • vic

    Administrator
    abril 12, 2024 at 17:53
    1533 Karma points
    Community awards: bulb Bright ideas
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    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.

  • rkiesler

    Member
    abril 12, 2024 at 18:25
    159 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    $ tentacle_client

    -bash: tentacle_client: command not found

    UPDATE: Found it, it’s in /opt/pandora-agent/usr/bin, just where I installed it 🙂

    • This reply was modified 7 months, 2 weeks ago by  rkiesler.
  • rkiesler

    Member
    abril 12, 2024 at 18:29
    159 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    yes, the file arrived and is in the directory you have mentioned. but all the 47 sensors of that agent are still in status UNKNOWN.

    • Sergio

      Administrator
      abril 15, 2024 at 08:19
      1272 Karma points
      Community rank: tentacle_master_icon Tentacle Master
      Like it
      Up
      0
      Down
      Drop it
      ::

      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.

  • rkiesler

    Member
    abril 15, 2024 at 20:02
    159 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    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.

  • vic

    Administrator
    abril 16, 2024 at 11:44
    1533 Karma points
    Community awards: bulb Bright ideas
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    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.

  • rkiesler

    Member
    abril 16, 2024 at 19:49
    159 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    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’

    • rkiesler

      Member
      abril 17, 2024 at 10:12
      159 Karma points
      Community rank: tentacle-noob-1 Tentacle noob
      Like it
      Up
      0
      Down
      Drop it
      ::

      Not sure why, but it’s working now. Thanks!