From: Shane O'D. <sh...@op...> - 2001-01-29 22:58:55
|
For a good place to start, the following might help. This comes from Sowmya, who knows everything there is to know about capsd. Treat this as the ultimate high-level overview and a precursor to the white paper. Feel free to post any questions back to this list. Here's Sowmya's notes: In terms of code/data to have capsd discover new services, the places to look at would be: - CapsdPluginConf.xml This has plugins to be used for each service - i.e the class to use to poll for that service - CapsdPluginLoader.java This loads the plugins from the 'CapsdPluginConf.xml' and adds services from here into the DB (if not already in the DB) - CapsReader.java Uses the plugins defined in the CapsdPluginConf to poll - org/opennms/bb/dp/capsd/plugin/* In order for the CapsReader to be able to use the plugin, it needs to implement the 'CapsdPlugin' interface in this directory as all plugins in this directory do Note that this list does not include scheduler related changes. Shane O. ======== Shane O'Donnell OpenNMS.org sh...@op... ================== ----- Original Message ----- From: <uz...@in...> To: <ca...@op...> Sent: Monday, January 29, 2001 3:11 PM Subject: Re: [opennms-capsd] information regarding capsd > > Ok, by now I'll look inside the capsd code (as suggested) to have a basic > ideia of the project (code) and I hope in two or three days I will mail > you again to tell what I think I could contribute to capsd/opennms with > more specific questions/ideas. Just FYI, I am a student at UFRGS (Federal > University of Rio Grande do Sul) and I would include an implementation > based in capsd in my final project. > > Thanks, > > --------------------- > Rodrigo Uzun Fleischmann > Mestrando em Ciencia da Computacao > Laboratorio de Comunicacao de Dados > > Universidade Federal do Rio Grande do Sul > Instituto de Informatica > SMTP: uz...@in... > HTTP://www.inf.ufrgs.br/~uzun > > On Mon, 29 Jan 2001, Shane O'Donnell wrote: > > > Comments embedded... > > > > > Thank you, > > > > > > Here they are: > > > > > > SNMP is not the only way to check resource capabilities in capsd. It's > > > also possible with HTTP, SMTP ... since I haven't read CVS log yet, > > > > Absolutely. We pull additional information about the device (interfaces, > > system info, etc) via SNMP, but we check the actual listening ports to look > > for services. > > > > > > > > - is it completely done ? I mean the development. > > > > > Hopefully, it will never be "done", but it is at a stage where we can > > functionally determine what a node has (via SNMP) and does (via capsd's > > services checking) and add that information to the database. > > > > > - How can I add another protocol ? Is there a defined API to do it ? > > > > One of our developers is working on a white paper on just that topic, but > > it's been relegated to a pretty low priority at this point. The best thing > > to do would be to look at the code and know that there are 3 places that > > need to be touched: > > > > - a portion of code for CAPSD to determine if a service exists > > - Code to act as a service poller (to integrate with our scheduler) > > - The necessary config files. > > > > Also, note that you can configure the generic TCP poller to poll almost any > > TCP service (with some constraints). See the code in CVS and check out the > > configuration of the "DayTime" service poller. > > > > > > > > - Does OpenNMS Project have interest in add another protocols in capsd > > > module ? I think it should considering portability, etc. > > > > Most definitely! The more the merrier! Anything you'd like to contribute > > would be greatly appreciated! > > > > Let us know if you need anything, and I'll try to expedite at least a draft > > of that service poller white paper. > > > > Thanks, > > > > Shane O. > > > > _______________________________________________ > > capsd mailing list (ca...@op...) > > To subscribe, unsubscribe, or change your list options, go to: > > http://www.opennms.org/mailman/listinfo/capsd > > > > > _______________________________________________ > capsd mailing list (ca...@op...) > To subscribe, unsubscribe, or change your list options, go to: > http://www.opennms.org/mailman/listinfo/capsd > |