From: Tarus B. <ta...@op...> - 2003-11-30 17:54:53
|
On Nov 29, 2003, at 9:18 PM, Alexander Hoogerhuis wrote: > I'm trying to get some sensible data out of FW-1 on Linux; but I > havent' found a useable way to integrate the FW-1 snmpd into the > net-snmpd that RedHat ships. So I'm looking to see if this is > possible: > > <?xml version="1.0"?> > <snmp-config retry="3" timeout="800" > read-community="s3cr37" write-community="n0vv4y" version="v2c"> > > <definition> > <range begin="172.30.254.1" end="172.30.254.63"/> > </definition> > > <definition port="262"> > <range begin="172.30.254.1" end="172.30.254.63"/> > </definition> > > </snmp-config> > > i.e. will it discover both agents ont he same nodes? > No, but there is a way to deal with this (we got it working just last week). You need to create another SNMP service (with a different name) in capsd-configuration. In other words, clone the existing SNMP service, but change its name to something like "SNMP-FW1". Set the port to be 262. Now you need to associate the new service with your device. I would strongly recommend either using the <protocol-configuration scan=enable> tag (see the capsd .xsd file) or directly modifying the database instead of using capsd directly (I am not sure of the consequences of having two SNMP agents on the same device and how OpenNMS would handle such things as determining the primary SNMP interface). So, for SNMP-FW1 set scan=off for the main plugin tag. Next, set up a new collector in collectd-configuration.xml. In this collector, specify the port to be 262. Do *not* specify the port in snmp-config.xml, as that will override the port for data collection. You may also want to specify a new collection schema in datacollection-config.xml, to prevent a lot of "OID does not exist" messages in the logs. Summary: Set up new SNMP-FW1 service. Associate new service with devices. Create a new collection service for collectd that a) points to the correct port b) collects on the new agent specific information Everything else, snmp-graph.properties, etc. is the same, and the new RRD files will be created exactly where you would expect them to be. -T ________________________________________________________________________ ___ Tarus Balog Main: +1 919 545 2553 Blast Internet Services, Inc. Fax: +1 919 542 5955 Email: ta...@bl... URL: http://www2.blast.com/tarus PGP Key Fingerprint: 8945 8521 9771 FEC9 5481 512B FECA 11D2 FD82 B45C |