Pages: 1 [2]   Go Down
Author Topic: agents create BAD XML in pandora server /var/spool/pandora/data_in  (Read 1957 times)
0 Members and 2 Guests are viewing this topic.
miguel
Global Moderator
Sr. Member
*****

Karma: 0
Offline Offline

Posts: 102



View Profile
« Reply #15 on: April 11, 2011, 10:18:54 AM »

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

aitor
Sr. Member
****

Karma: 2
Offline Offline

Posts: 129


View Profile
« Reply #16 on: April 11, 2011, 10:26:11 AM »

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

berto_mca
Newbie
*

Karma: 0
Offline Offline

Posts: 6


View Profile
« Reply #17 on: April 17, 2012, 08:55:26 AM »

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

Pages: 1 [2]   Go Up
Print
 
Jump to:  


SourceForge.net Logo  This site is monitored by Pandora FMS   ArticaST