Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
agents create BAD XML in pandora server /var/spool/pandora/data_in
#11
I'd installed this paquet and the problem persists.
 Reply
#12
Hi.

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

Bye.
 Reply
#13
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.
 Reply
#14
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?
 Reply
#15
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>








 Reply
#16
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.
 Reply
#17
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.
 Reply
#18
Hi Aitor.

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

<?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>

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: " <module> <name>Status</name> <type>generic_proc</type> <data>1</data> </module>"

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.
 Reply


Users browsing this thread: 1 Guest(s)


(c) 2006-2018 Artica Soluciones Tecnol├│gicas. Contents of this wiki are under Create Common Attribution v3 licence. | pandorafms.com | pandorafms.org

Theme © MyBB Themes