Welcome to Pandora FMS Community!

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

  • data_BADXML

    Posted by rockxwre on February 16, 2009 at 06:43

    Hi,

    We are using Pandora FMS 1.3 and the Windows Agent seems to send corrupt data.
    On the server, in the /var/spool/pandora/data_in folder, there are files with the name suffix “data_BADXML”.
    I think the agent puts some illegal characters in the XML which are the cause for this.
    Here some failing XML code:

    
        
            FreeDiskC
            generic_data
            21882
            Free space on drive C:
        
    

    I guess the “(R)” characters in the OS attribute are invalid.
    Is this a bug, or can this be solved by some configuration?

    Hope someone can help me out.

    Regards,
    Ramon

    rockxwre replied 15 years, 12 months ago 3 Members · 5 Replies
  • 5 Replies
  • raul

    Member
    February 19, 2009 at 07:28
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
  • rockxwre

    Member
    February 27, 2009 at 04:22
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Thanks a lot, I’m going to take a look at that article.
    Silly me, a typical case of R.T.F.M…

    Regards,
    Ramon

  • rockxwre

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

    I tried to add the

    encoding utf-8

    setting to pandora_agent.conf file, but with no success. I read this setting can only be used with Unix agents. So I am afraid this ain’t the solutions after all. Thanks anyway 🙂

    Regards,
    Ramon

  • manu

    Member
    March 2, 2009 at 03:14
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Set the debug mode to 1 in the pandora_agent.conf
    Run the agent
    Go to the file where the XML is being stored in the windows machine (it is the path you defined in the pandora_agent.conf) edit the XML, remove the ®, save the file and copy it manually to pandora server (/var/spool/pandora/data_in)

    Was it processed?

  • rockxwre

    Member
    March 2, 2009 at 04:05
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    I did it a bit slightly different: edited the data_BADXML file (removed (R) signs), saved it, and renamed it to the original filename.
    Now the file is processed and the agent is contacted for the first time.
    So, those characters seems to be the problem.

    Regards,
    Ramon