-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 07/16/2012 05:34 AM, xuemei wrote:

> I would like to share the result, even I still dont understand, :p

It's OK not to understand fully, as long as you understand that it's
not magic :)

> there is a configuration file called *.xml. inside, it will look
> like this <node node-label="windows2003" foreign-id="1334829470889"
> building="test">

These XML files (in OPENNMS_HOME/etc/imports) are called
"requisitions".  They're part of the provisioning subsystem of
OpenNMS, which you can read about sometime if you want:

http://www.opennms.org/w/images/c/ca/ProvisioningUsersGuide.pdf

> so need add xml to the monitored service. <monitored-service
> service-name="XML"/>

The name of the service does not have to be "XML"; it just needs to
match exactly the name of some <service> in collectd-configuration.xml
which is mapped to the XmlCollector via a <collector> tag in the same
file.

The "collection" attribute under that service in
etc/collectd-configuration.xml then tells the XmlCollector which
<xml-collection> to use from etc/xml-datacollection-config.xml and its
tributary files in the etc/xml-datacollection/ directory.

Hope this helps,
- -jeff

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJQBDXnAAoJEEfedldKS64smlEQAJjVSM53YJKgSO/199u+Z85A
+yn1vCZbeVu2anGDy2utA1rOsdZrINgiCk6SPsT0ZoTjnRPb3UnNPbMemraqsizY
/jkEQl02qAGsciMGLOngCCpwTLYedXe2rQuxtvTPPnEHMzI3NKx3fxiQzxhySjg5
eRAIstKPOKOAvQPUeaSc0SkoFOWlwRRdOyliWs4VWMQmq/hRmVLNLqSSbyhf+QsG
VNZVVD6dFvnQXQQns99ixZMJ9N9AtzqgdeivHMVtyR5P3q8IsPsakH1Zl3FB/rRk
UzPZ6kkzYSZ1r6Nixn+iCMlumG+cbqjI8Gb2ZFInr64K4ihhn8KXA8+Rq/G5Y/Lq
cWqWZECL2WGsr/gWqsLg0qE1D/Gx9D0WQGp8UJmIKm1Kom+/ya2xXl3seWFHsA4n
LtLyGua0FGjSPVFbGJBtL0u4ezsmgwIxB0kGr0LIA/d62+pQ4JAxq9mfBS0xe0KV
9v5rtnBXLWZVisdGfDgXjKRsg8PLH+TanhdO2qPCiLcr0YvhKg9aFj+ZepxIlIuf
nhTt+m4HemAAK6Kmk0KSiFwEvaPpqvXBlwqZM/I2FvzCI+JCR1oGWjd7RViaC4XQ
GhljYGAUVpGTeG2NUlnl9BeqT0NURXHSEyQdd/NJ8S8Qh+2rdp3APQ7GLsWpfWU9
WXRIkrmZbvHqJiX5oD0k
=Xmwl
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-devel mailing list

To *unsubscribe* or change your subscription options, see the bottom of this 
page:
https://lists.sourceforge.net/lists/listinfo/opennms-devel

Reply via email to