Hello Guest

Author Topic: agents create BAD XML in pandora server /var/spool/pandora/data_in  (Read 5481 times)

0 Members and 1 Guest are viewing this topic.

Offline jcastillaandres

  • Jr. Member
  • **
  • Posts: 22
  • Karma: 0
    • View Profile
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.

Offline daniels

  • Smart member
  • *****
  • Posts: 205
  • Karma: 19
    • View Profile
Re: agents create BAD XML in pandora server /var/spool/pandora/data_in
« Reply #1 on: November 26, 2010, 08:15:03 AM »
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.

Offline lmarino23

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
Re: agents create BAD XML in pandora server /var/spool/pandora/data_in
« Reply #2 on: December 07, 2010, 11:19:34 AM »
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".

Offline rnovoa

  • Sr. Member
  • ****
  • Posts: 120
  • Karma: 2
    • View Profile
Re: agents create BAD XML in pandora server /var/spool/pandora/data_in
« Reply #3 on: December 14, 2010, 04:10:26 AM »
Can you try installing libxml-parser-perl?

Offline Sancho Lerena

  • Administrator
  • Expert member
  • *****
  • Posts: 1276
  • Karma: 28
  • I can see everything... with my glasses :-)
    • View Profile
    • Pandora FMS
Re: agents create BAD XML in pandora server /var/spool/pandora/data_in
« Reply #4 on: December 27, 2010, 02:54:02 AM »
Upgrade version, 2.0 is _VERY_ old now, we're publishing 3.2 tomorrow !
-- See you in the other screen.

Offline aitor

  • Sr. Member
  • ****
  • Posts: 164
  • Karma: 2
    • View Profile
Re: agents create BAD XML in pandora server /var/spool/pandora/data_in
« Reply #5 on: February 22, 2011, 03:48:46 AM »
I've the 3.2 version, and the same problem. I have tried with both encodings.


In 3.1v it didn't happened!

Offline miguel

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 105
  • Karma: 0
    • View Profile
Re: agents create BAD XML in pandora server /var/spool/pandora/data_in
« Reply #6 on: March 25, 2011, 02:51:34 AM »
Could you try with the last version (Pandora FMS 3.2.1)?

Offline aitor

  • Sr. Member
  • ****
  • Posts: 164
  • Karma: 2
    • View Profile
Re: agents create BAD XML in pandora server /var/spool/pandora/data_in
« Reply #7 on: March 25, 2011, 02:56:18 AM »
the problem persists in 3.2.1.

Offline ggarzon

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
    • View Profile
Re: agents create BAD XML in pandora server /var/spool/pandora/data_in
« Reply #8 on: March 29, 2011, 08:42:46 AM »
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.

Offline miguel

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 105
  • Karma: 0
    • View Profile
Re: agents create BAD XML in pandora server /var/spool/pandora/data_in
« Reply #9 on: March 30, 2011, 01:09:55 AM »
Ok. Thanks by the tip.

Offline aitor

  • Sr. Member
  • ****
  • Posts: 164
  • Karma: 2
    • View Profile
Re: agents create BAD XML in pandora server /var/spool/pandora/data_in
« Reply #10 on: April 04, 2011, 11:34:32 PM »
I'd installed this paquet and the problem persists.

Offline miguel

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 105
  • Karma: 0
    • View Profile
Re: agents create BAD XML in pandora server /var/spool/pandora/data_in
« Reply #11 on: April 05, 2011, 11:37:49 PM »
Hi.

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

Bye.

Offline aitor

  • Sr. Member
  • ****
  • Posts: 164
  • Karma: 2
    • View Profile
Re: agents create BAD XML in pandora server /var/spool/pandora/data_in
« Reply #12 on: April 06, 2011, 01:46:58 AM »
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.

Offline miguel

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 105
  • Karma: 0
    • View Profile
Re: agents create BAD XML in pandora server /var/spool/pandora/data_in
« Reply #13 on: April 06, 2011, 06:50:43 AM »
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?

Offline aitor

  • Sr. Member
  • ****
  • Posts: 164
  • Karma: 2
    • View Profile
Re: agents create BAD XML in pandora server /var/spool/pandora/data_in
« Reply #14 on: April 10, 2011, 11:44:22 PM »
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
<?xml version='1.0' encoding='iso-8859-1'?>
<agent_data description='' group='' os_name='linux' os_version='' interval='300' version='3.2.1(Build 110223)' timestamp='2011/04/11 03:22:10' agent_name='XXXXX' timezone_offset='0'>
</agent_data>
<agent_data os_name='Linux' os_version='3.2.1' agent_name='SPC031' interval='60' timestamp='2011-04-11 03:22:10' >
 <module> <name>Status</name> <type>generic_proc</type> <data>1</data> </module>
 <module> <name>Database Maintenance</name> <type>generic_proc</type> <data>1</data> </module>
 <module> <name>Queued_Modules</name> <type>generic_data</type> <data>0</data> </module>
 <module> <name>Agents_Unknown</name> <type>generic_data</type> <data>1769</data> </module>
 <module> <name>System_Load_AVG</name> <type>generic_data</type> <data>0.00</data> </module>
 <module> <name>Free_RAM</name> <type>generic_data</type> <data>305240</data> </module>
 <module> <name>FreeDisk_SpoolDir</name> <type>generic_data</type> <data>12044.2</data> </module>
</agent_data>