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 Advanced troubleshooting agents create BAD XML in pandora server /var/spool/pandora/data_in

  • agents create BAD XML in pandora server /var/spool/pandora/data_in

    Posted by jcastillaandres on October 26, 2010 at 14:16

    Good Morning,
    We have Pandora FMS v2.0 for monitoring Windows Servers. The pandora server is a Ubuntu 8.04. Sometimes, 1 time per hour, we find that in /var/spool/pandora/data_in appears (only for 1 windows servers) files with this type name agentname.numbers.data_BADXML and inside pandora conole – View Events appears -Unable to process XML data file (/var/spool/pandora/data_in)- that Pandora can not understand a bad XML.
    The actions for resolving the problems were:
    1.- Put in pandora_agent.conf this record pluginserver 1.
    2.- Put in pandora_agent.conf this record encoding      ISO-8859-1.

    Unfortunately, neither of both has worked.
    What is the action I have done? Could you help me?
    Thanks a lot.

    berto_mca replied 12 years, 9 months ago 9 Members · 17 Replies
  • 17 Replies
  • daniels

    Member
    November 26, 2010 at 20:15
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hi.

    My guess is that some of your monitor generates inconsistent data once per hour.

      Do you have the file server.XXXXXXX.data_BADXML? Take a look at this file and check if all the data is ok.

      I can take a look at your BADXML data if you want more help, just post it here.

    Regards.

  • lmarino23

    Member
    December 7, 2010 at 23:19
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Anyone ever figure out a fix for this error?  I’m experiencing the same error with no idea on how to fix it.

    “Unable to process XML data file ‘/var/spool/pandora/data_in/XXXXXXXXX.4074.data’: XMLin() requires either XML::SAX or XML::Parser at /usr/lib/perl5/PandoraFMS/DataServer.pm line 154”

    Pandora or course marks this file as “BADXML”  I’ve followed all the suggestions in the blogs, but none seem to correct the issue.

    The XML file is coming from a Windows Agent; using “tentacle”.

  • rnovoa

    Member
    December 14, 2010 at 16:10
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Can you try installing libxml-parser-perl?

  • Sancho

    Administrator
    December 27, 2010 at 14:54
    2285 Karma points
    Community awards: bulb Bright ideas
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    Upgrade version, 2.0 is _VERY_ old now, we’re publishing 3.2 tomorrow !

  • aitor

    Member
    February 22, 2011 at 15:48
    7 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    I’ve the 3.2 version, and the same problem. I have tried with both encodings.

    In 3.1v it didn’t happened!

  • miguel

    Member
    March 25, 2011 at 13:51
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Could you try with the last version (Pandora FMS 3.2.1)?

  • aitor

    Member
    March 25, 2011 at 13:56
    7 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    the problem persists in 3.2.1.

  • ggarzon

    Member
    March 29, 2011 at 19:42
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    I have solved the problem by installing libxml-parser-perl (libxml-parser-perl_2.36-1.1+b1_i386.deb) as told in a previous post.
    Now I have Pandora FMS working on a Turnkey Linux Appliance.

  • miguel

    Member
    March 30, 2011 at 12:09
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Ok. Thanks by the tip.

  • aitor

    Member
    April 5, 2011 at 10:34
    7 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    I’d installed this paquet and the problem persists.

  • miguel

    Member
    April 6, 2011 at 10:37
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hi.

    Can you paste the xml file before to process and after the “bad xml” result?

    Bye.

  • aitor

    Member
    April 6, 2011 at 12:46
    7 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    How can I paste de XML before process?

    I can paste de BADXML, but I don’t know how to do it, before be processed.

  • miguel

    Member
    April 6, 2011 at 17:50
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Ok. Sorry.

    You can see the error (when the server generate “bad xml”) as event in the Pandora Console event list.

    Well this event have more information of the error. Could you paste this data?

  • aitor

    Member
    April 11, 2011 at 10:44
    7 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    This is what appear in the event view:

    “Unable to process XML data file ‘/var/spool/pandora/data_in/XXXXXXX.1302484930.data’: junk after document element at line 3, column 13, byte 241 at /usr/lib/perl5/XML/Parser.pm line 187 thread 2 ”

    And this is the XML

    Status generic_proc 1
    Database Maintenance generic_proc 1
    Queued_Modules generic_data 0
    Agents_Unknown generic_data 1769
    System_Load_AVG generic_data 0.00
    Free_RAM generic_data 305240
    FreeDisk_SpoolDir generic_data 12044.2

  • miguel

    Member
    April 11, 2011 at 13:18
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Ok. I see your xml and there are two tags for agents.

    How do you generate this file? is this file from the Pandora Agent?

    Bye.

  • aitor

    Member
    April 11, 2011 at 13:26
    7 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    No, it isn’t for pandora agent. All the modules in pandora_agent.conf are commented with #

    But, in pandora_server.conf configuration file, the self monitoring is activaded.
    And this is which creates this modules.

  • berto_mca

    Member
    April 17, 2012 at 11:55
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hi Aitor.

    I had this problem with any new module plugin, the error is here:

    Status generic_proc 1
    Database Maintenance generic_proc 1

    The module that produce this BADXML is any named “group” because have two “agent_data” and Pandora can’t read data of this module. For example this module is correctly defined: ” Status generic_proc 1 ”

    Solution: Review the pandora_agent.conf configuration if you defined that like “module_begin … module_end” or you have to modify the script that produces the module named “group” and make sure it’s reporting only an agent_data to the server. If you do it.. It’s solved!

    Regards.