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 No trasmit data to Server

  • No trasmit data to Server

    Posted by eloycoto on January 29, 2009 at 09:52

    Hi everybody,

    I install a Pandora Server in Debian etch, Pandora server is correctly install (I think) but my agent don’t transmite data to the server, when I write in the console(Agent):

    ls /var/spool/pandora/data_out/

    I have many files, I think that information of the file is correctly. When I go to the server in the folder data_in, the folder is empty.

    If I write in the console, ssh pandora@pandora_server, the conection is stablished. The user pandora have permisions to wrote in data_in.

    In Pandora Console I see the servers and Pandora_data is correctly, the led is green.

    Any idea for this error?

    Sorry for my English, is very bad.

    Aloriel replied 16 years ago 3 Members · 8 Replies
  • 8 Replies
  • daniels

    Member
    January 29, 2009 at 10:36
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hi Eloycoto,

    When you do a ssh pandora@pandor_serve, do you need to enter the password?

    Did you you try the tentacle server?

  • eloycoto

    Member
    January 29, 2009 at 11:22
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    No I don’t need enter the password.

    The tentacle server is very good, but I need ssh (the manager don’t like tentacle:()

  • eloycoto

    Member
    January 29, 2009 at 11:59
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hi,

    When XML Genereted this is my XML.

    Is the file corectly creating?

  • daniels

    Member
    January 29, 2009 at 13:00
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    The XML looks ok to me and your problem seems to be the transmission and not the xml generation…

    What user you are using to run the pandora_agent? Try to do the ssh with the same user. If it works, try to do a scp with this user and post here the results.

    To see if the XML is ok (appears ok to me) you can manualy copy some of them to the server data_in directory and watch the results.

  • eloycoto

    Member
    January 30, 2009 at 03:12
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hi,

    Pandora Agent run with root user, I tryed

    scp pt-eloy.1222123123.data pandora@pandora_server:/var/spool/pandora/data_in/ (This OK)

    Any Idea?

  • daniels

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

    Sorry, but I have no clue about this behaviour…. Every time I had problems sending the files to the server were related with ssh-keys…

    What versions of agent and server you are using?

  • eloycoto

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

    I think that is the error,

    When I do /etc/init.d/pandora_agent_start, generetes a correct files in /var/spool/pandora/data_out/ but my time interval is 300 s, but crontab don’t work correctly because don’t have more files. When I go to log I see:

    2009/01/30 13:43:46 – [SETUP] – Interval is 300 seconds
    2009/01/30 13:43:46 – [SETUP] – Debug mode is 1
    2009/01/30 13:43:46 – [SETUP] – Server Port is 22
    2009/01/30 13:43:46 – [SETUP] – Transfer Mode is ssh
    2009/01/30 13:43:47 – Finish writing XML /var/spool/pandora/data_out/pt-eloy.1233319427.data

    I don’t see the SCP comand in this action, but in line 187 /usr/bin/pandora_agent I see that SCP send a error, but my log don’t have this error.

    I see the logs, and don’t create the files when pass five minutes….

    In the pandora_agent.log.err I see nohup error, Can I be that the crontab don’t run correctly?

    Sorry my version of pandora Server and agents are the 2.0

  • Aloriel

    Member
    February 4, 2009 at 06:57
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hi eloycoto,

    note that you are running the agent in “debug” mode:
    2009/01/30 13:43:46 – [SETUP] – Debug mode is 1
    if it’s in debug mode, it won’t send the files to the server.

    Change the option:
    # Debug mode only generate XML, and stop after first execution,
    # and does not copy XML to server.
    debug 0

    Cheers.