Welcome to Pandora FMS Community!

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

Welcome to Pandora FMS Community Forums Community support Sending agent data to remote server

  • Sending agent data to remote server

    Posted by vikas-ghavate on April 29, 2009 at 05:04

    Hi,
    Is there an agent that will take the data from the remote agent and send it to remote server.
    Basically we want to monitor agents that do not have direct access to the monitoring server.
    We have a windows machine connecting the monitored agent and monitoring server. This machine should take the data from agents and forward it to the monitoring server.
    Thanks.

    vikas-ghavate replied 15 years, 10 months ago 3 Members · 4 Replies
  • 4 Replies
  • manu

    Member
    April 29, 2009 at 05:06
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
  • vikas-ghavate

    Member
    April 29, 2009 at 05:23
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Ok i got permission to have a Ubuntu machine acting as a gateway.
    Could you please tell me what do i have to do to configure that gateway.
    The link you have sent is vague, doesnt explain properly.
    Thanks.

  • Sancho

    Administrator
    April 29, 2009 at 15:00
    2321 Karma points
    Community awards: bulb Bright ideas
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    Use a simple script to “move” the files received in the “proxy” machine (using tentacle server) to copy to the final pandora server, using the tentacle client, it’s a very simple bash script who reads all files in /var/spool/pandora/data_in and copy to another remote server deleting after copying it. You can replace the method by other (just replace tentacle_client call). It needs a tentacle server listing and storing files in /var/spool/pandora/data_in and of course, tentacle_client.

    Copy following bash scripting code into a new file called /usr/bin/tentacle_proxy and set permissions 750 (using chmod 750 /usr/bin/tentacle_proxy)

    #!/bin/bash
    TIMEOUT=5
    SERVER_IP=192.168.50.1

    while [ 1 ]
    do

    for myfile in `ls /var/spool/pandora/data_in`
    do
    tentacle_client -q -a $SERVER_IP $myfile
    rm -Rf $myfile

    done
    sleep $TIMEOUT

    done

    Just replace SERVER_IP address for your pandora server ip address. This suppose that in the proxy you’re receiving the files in the standard incoming directory (/var/spool/pandora/data_in) and it’s using the standard Tentacle port at 41121.

  • vikas-ghavate

    Member
    May 1, 2009 at 08:08
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hi,
    Thanks for all your responses. I am currently testing the above method. Currently waiting for establishing VPN access to the FMS server. Once done i will let you know the result.