From: Asif I. <va...@gm...> - 2008-08-14 18:46:01
|
One of my co-worker (cc'd) found the bug. Find all the entries of the following line my $port = $1 if $cid =~ s/::(\d+)^//; And replace it with my $port = $1 if $cid =~ s/::(\d+)$//; on modules/dm_config.pm file Now devmon picks the alternate snmp port as explained in man page On Thu, Aug 14, 2008 at 10:11 AM, Asif Iqbal <va...@gm...> wrote: > Anyone figured this out? I am using port 163 as port(163) and it fails > with no response and timeout. A regular snmpget on that port works > just fine. Is this a bug with devmon? > > > On Fri, Sep 28, 2007 at 3:04 AM, Klomp, H. <kl...@nl...> wrote: >> Hi Craig, >> >> I'm very curious at your checkpoint templates. >> I don't know what you've put in them, but can't you use the FireWall-1 as the object id, by putting this in your specs >> file and in your oids ? >> something like this: >> >> specs >> vendor : Checkpoint >> model : FW-1 >> snmpver : 2 >> sysdesc : FireWall-1 >> >> (Why do you use snmp ver 1 instead of 2 ? Our checkpoint equipment works with snmp ver 2. >> >> oids >> sysDescr : .1.3.6.1.4.1.2620.1.1.10.0 >> Policy : .1.3.6.1.4.1.2620.1.9.5.0 >> >> >> I'm using a simple perl script to get the snmp variables out of the checkpoint FW but would like to switch to devmon, >> since it's much easier to get multiple information. >> If you could send me the template I can try to help you solve the problem. >> >> Best regards, >> >> Bert Klomp >> >> >> -----Original Message----- >> From: dev...@li... [mailto:dev...@li...] On Behalf Of >> Craig Cook >> Sent: vrijdag 28 september 2007 5:13 >> To: dev...@li... >> Subject: Re: [Devmon] Non Standard SNMP port >> >>>> I have added the port(260) parameter to bb-hosts, >> but >>>> my --readbbhosts >>>> failed so I suspect I have not edited hosts.db >>>> correctly. >>>> >>>> What is the syntax? >>> >>>You need to read the docs, its in there. Here is a >> cut from the USING >>>document >>> >>>DEVMON:tests(cpu,power),port(1161) >> >> >> Um, I have read the docs... "my --readbbhosts failed" >> I'll ask about my earlier post again... >> >> >> I have started work on a checkpoint template. >> Checkpoint does not have >> a sysDescr.0 value though. >> >> svr:/usr/local/devmontest# ./devmon -p --readbbhosts >> -vvvv >> [07-09-03@19:33:29] SNMP querying all hosts in >> bb-hosts file, please >> wait... >> [07-09-03@19:33:40] Querying new hosts using cid >> 'public' and snmp v2 >> [07-09-03@19:33:50] ERROR: snmpget cp.example.com (no >> response >> received) >> [07-09-03@19:33:50] Querying new hosts using cid >> 'public' and snmp v1 >> [07-09-03@19:33:50] ERROR: snmpget cp.example.com >> (Received SNMP >> response with error code) >> [07-09-03@19:34:00] Could not query device: >> cp.example.com >> >> >> line from bb-hosts >> 0.0.0.0 cp.example.com # >> DEVMON:port(260),model(checkpoint;1),tests(volume) >> >> svr:/usr/local/devmontest# snmpget -c >> public -v 1 10.10.1.1:260 .1.3.6.1.4.1.2620.1.1.10.0 >> CHECKPOINT-MIB::fwProduct.0 = STRING: "FireWall-1" >> >> svr:/usr/local/devmontest# snmpget -c public -v 1 >> 10.10.1.1:260 >> .1.3.6.1.2.1.1.1.0 >> >> Error in packet >> Reason: (noSuchName) There is no such variable name in >> this MIB. >> Failed object: SNMPv2-MIB::sysDescr.0 >> >> >> Does "--readbbhosts" require a call to sysDescr.0 or >> can I tell it to look for another OID? >> >> (I have a work around, edit hosts.db directly) >> >> Craig >> >> >> >> >> ____________________________________________________________________________________ >> Pinpoint customers who are looking for what you sell. >> http://searchmarketing.yahoo.com/ >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2005. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Devmon-support mailing list >> Dev...@li... >> https://lists.sourceforge.net/lists/listinfo/devmon-support >> >> >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2005. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Devmon-support mailing list >> Dev...@li... >> https://lists.sourceforge.net/lists/listinfo/devmon-support >> > > > > -- > Asif Iqbal > PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu > -- Asif Iqbal PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu |