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 Server stops parseing generic_data_inc

  • Server stops parseing generic_data_inc

    Posted by rmann714 on September 2, 2007 at 05:00

    The files look fine that end up on the server…when I remove the generic_data_inc types from the agent and delete the files on the server, the server starts to process the new files again.

    Any thoughts?

    Thanks,
    Ralf

    manu replied 17 years, 5 months ago 4 Members · 12 Replies
  • 12 Replies
  • manu

    Member
    September 4, 2007 at 15:02
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hi,

    Well, I actually have no idea of what your problem is, please provide us more details, otherwise, we’re not going to be able to find out where the problem is.

    Cheers

    Manuel

  • rmann714

    Member
    September 4, 2007 at 22:11
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    ok…

    When I “tail -f” the pandora_server.log file, I see the server parsing and updating data for all modules that are of type “generic_data”. When the server gets to the data from a module that is of type “generic_data_inc” it stops. There is nothing in the error log file.

    I look at the XML file that the agent has sent to the server and look at the code and everything appears identical for both generic_data and generic_data_inc except for the data type field.

    The agent is successfully sending files to the server and the files appear to be complete.

    I would post samples from each of the files, but the forum rules won’t allow me to give you that data.

    Ralf

  • Sancho

    Administrator
    September 5, 2007 at 13:34
    2321 Karma points
    Community awards: bulb Bright ideas
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    ok…

    When I “tail -f” the pandora_server.log file, I see the server parsing and updating data for all modules that are of type “generic_data”. When the server gets to the data from a module that is of type “generic_data_inc” it stops. There is nothing in the error log file.

    I look at the XML file that the agent has sent to the server and look at the code and everything appears identical for both generic_data and generic_data_inc except for the data type field.

    The agent is successfully sending files to the server and the files appear to be complete.

    I would post samples from each of the files, but the forum rules won’t allow me to give you that data.

    Ralf

    Due the nature of generic_data_inc data, you need at least two packets to see data, because it stores differentes between last one and actual packet, another cause would be to have the SAME name in module. Check that.

  • rmann714

    Member
    September 5, 2007 at 20:43
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    The error is in your parseing of the time stamp in the XML file sent to the server.

    When the server encounters a tiemstamp with a single digit for the seconds, it hangs.

    timestamp=”2007-9-5 16:36:3″

    Adding another digit to the seconds such as this…

    timestamp=”2007-9-5 16:36:31″

    and restarting the server…causes the file to be parsed correctly.

    windows agent on XP, server on ubuntu.

    thank you,
    Ralf

  • rmann714

    Member
    September 5, 2007 at 21:18
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Single digit minutes and hours do not work either…

  • Sancho

    Administrator
    September 6, 2007 at 18:59
    2321 Karma points
    Community awards: bulb Bright ideas
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    The error is in your parseing of the time stamp in the XML file sent to the server.

    When the server encounters a tiemstamp with a single digit for the seconds, it hangs.

    timestamp=”2007-9-5 16:36:3″

    Adding another digit to the seconds such as this…

    timestamp=”2007-9-5 16:36:31″

    and restarting the server…causes the file to be parsed correctly.

    windows agent on XP, server on ubuntu.

    thank you,
    Ralf

    Could you cut/paste here contents of pandora_server.log.err file after you try to parse a bad XML ?

  • manu

    Member
    September 6, 2007 at 19:16
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    rtman, please try this new version of the agent, and please, let us know if this one solves the problem with the hours.

    http://www.openideas.info/files/PandoraAgent.exe

  • raul

    Member
    September 6, 2007 at 19:33
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Which are the versions you’re using?

    Single digit minutes and hours do not work either…

  • rmann714

    Member
    September 6, 2007 at 19:57
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Folks,

    This works like a champ! Thank you for the solution.

    Also, when the server stopped before I installed this exe, it did not write any errors to the /var/opt/pandora_server.error log file.

    Thank you again,
    Ralf

  • manu

    Member
    September 7, 2007 at 11:18
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Fantastic!
    Thank you for reporting this issue.

  • rmann714

    Member
    September 13, 2007 at 23:02
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    has the exe been incorporated into the new client package?

  • manu

    Member
    September 14, 2007 at 01:02
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Nop, you have to download from the link above