We've run into the same issue as NMS-4958 where we've got nodes (in our case
imported from a .xml file) that we don't want NMS scanning via SNMP. I've
discussed with RangerRick on IRC and created *a* fix in my local repo, which is
to add
// If the foreign source is configured not to use an SNMP detector,
trying to detect
// capabilities using SNMP seems rude.
boolean isSNMPDetecting = false;
for(PluginConfig d : fs.getDetectors()) {
if("org.opennms.netmgt.provision.detector.snmp.SnmpDetector".equals(d.getPluginClass()))
{
isSNMPDetecting = true;
}
}
if(!isSNMPDetecting) {
return null;
}
in DefaultProvisionService.createScheduleForNode(). It works, but
string-comparison on the classname seems a bit ugly and/or fragile so I'm
throwing the fix out here in case anyone has a better idea before I submit a
patch to the bug.
Cheers,
Duncan Mackintosh (dijm)
Cambridge Broadband Networks Limited Registered in England and Wales under
company number: 03879840 Registered office: Selwyn House, Cambridge Business
Park, Cowley Road, Cambridge CB4 0WZ, UK. VAT number: GB 741 0186 64
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
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