1. Home
  2. Knowledge Base
  3. Problems (EN)
  4. I want to generate my own XML, simulating data from an agent, why doesn’t my XML work?

I want to generate my own XML, simulating data from an agent, why doesn’t my XML work?

The best option here, is just looking at a real XML and trying to imitate it. The most basic items are showed here:

A basic XML could be, for example something like this:

<agent_data agent_name="testxml" timestamp="2010-09-06 22:10:00" version="1.0" os="Other"
os_version="1.0" interval="300">
<module>
<name>5min</name>
<type>generic_data</type>
<data>73.3</data>
</module>
</agent_data>

A more advanced XML, with multi-data series, should look like this one:

<agent_data agent_name="testxml" timestamp="2010-09-06 21:10:00" version="1.0" os="Other"
os_version="1.0" interval="300">
<module>
<name>Multi Data Sample</name>
<type>generic_data</type>
<datalist>
<data>
<value>73.3</value>
<timestamp>2010-09-06 21:00:00</timestamp>
</data>
<data>
<value>13.3</value>
<timestamp>2010-09-06 21:05:00</timestamp>
</data>
</datalist>
</module>
</agent_data>

Just put a file called xxxxxxx.data in Pandora FMS’s incoming section directly and it will be processed by the data server.

Was this article helpful?

Related Articles

¿Necesita ayuda?

¿No encuentra una solucion? No se preocupe, nuestro trabajo es ayudarle.
Contactar con soporte