Hi List, this seems to be a duplicate. Please ignore as the problem is solved!
Cheers, Sven ________________________________________ Sven Hergenhahn Infrastructure Engineer Unix ________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sven Hergenhahn Sent: Freitag, 1. Oktober 2004 12:25 To: [EMAIL PROTECTED] Subject: Problem to run perl_module.pl (net-snmp 5.1.2) Hi List, I'd like to provide some additional values via a perl subagent. I tried to use perl_module.pl from the net-snmp page, but it does not work. I always get: snmpget -v1 -Ov -c public <a_box> .1.3.6.1.4.1.8072.999.1.2.1.0 Error in packet Reason: (noSuchName) There is no such variable name in this MIB. Failed object: NET-SNMP-MIB::netSnmp.999.1.2.1.0 It's compiled as follows: ./configure \ --host=i386-redhat-linux \ --build=i386-redhat-linux \ --target=i386-redhat-linux-gnu \ --program-prefix= \ --prefix=/usr \ --exec-prefix=/usr \ --bindir=/usr/bin \ --sbindir=/usr/sbin \ --datadir=/usr/share \ --includedir=/usr/include/net-snmp \ --libdir=/usr/lib \ --libexecdir=/usr/libexec \ --localstatedir=/var \ --sharedstatedir=/usr/com \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --enable-static \ --enable-embedded-perl \ --enable-shared \ --with-cflags='-O2 -g -pipe -march=i386 -mcpu=i686' \ --with-sys-location=Unknown \ --with-logfile=/var/log/snmpd.log \ --with-persistent-directory=/var/net-snmp \ --with-mib-modules=host agentx smux \ --with-libwrap=/usr/lib \ --sysconfdir=/etc \ --enable-ipv6 \ --enable-ucd-snmp-compatibility \ --with-pic \ [EMAIL PROTECTED] meat of the snmpd.conf: rwuser rwuser rouser rouser rocommunity public rwcommunity public proc snmpd 1 5 load 5 4 3 agentuser root agentgroup root syslocation here syscontact me perl "do /tmp/perl_module.pl" snmbd.log with debug enabled: ... read_config: /etc/snmp/snmpd.conf:145 examining: perl "do /tmp/perl_module.pl;" read_config: Found a parser. Calling it: perl / "do /tmp/perl_module.pl;" perl: initializing perl (/usr/share/snmp/snmp_perl.pl) perl: done initializing perl perl: calling perl perl: finished calling perl ... NET-SNMP version 5.1.2 snmpd/main: We're up. Starting to process data. sess_select: for all sessions: 8 6 4 snmpd/select: select( numfds=9, ..., tvp=(nil)) snmpd/select: returned, count = 1 netsnmp_udp: recvfrom fd 8 got 48 bytes (from <xx.xx.xx.xx>) sess_process_packet: session 0x80c56b0 fd 8 pkt 0x810de70 length 48 Connection from <xx.xx.xx.xx> dumpx_recv:02 01 00 dumpv_recv: Integer: 0 (0x00) snmp_api: Parsing SNMPv1 message... dumph_recv: SNMPv1 message dumph_recv: SNMP version dumpx_recv: 02 01 00 dumpv_recv: Integer: 0 (0x00) dumph_recv: community string dumpx_recv: 04 06 70 75 62 6C 69 63 dumpv_recv: String: public dumph_recv: PDU dumph_recv: request_id dumpx_recv: 02 04 1C C7 6B 2B dumpv_recv: Integer: 482831147 (0x1CC76B2B) dumph_recv: error status dumpx_recv: 02 01 00 dumpv_recv: Integer: 0 (0x00) dumph_recv: error index dumpx_recv: 02 01 00 dumpv_recv: Integer: 0 (0x00) dumph_recv: VarBindList dumph_recv: VarBind dumph_recv: Name dumpx_recv: 06 0D 2B 06 01 04 01 BF 08 87 67 01 02 01 00 dumpv_recv: ObjID: NET-SNMP-MIB::netSnmp.999.1.2.1.0 dumph_recv: Value snmp_agent: agent_sesion 0x8108148 created callback: START calling callbacks for maj=1 min=5 callback: calling a callback for maj=1 min=5 mibII/vacm_vars: vacm_in_view: ver=0, community=public netsnmp_udp_getSecName: resolve <"public", 0xf20e6082> netsnmp_udp_getSecName: compare <"public", 0x00000000/0x00000000>... SUCCESS subtree: looking for subtree for context: "" subtree: found one for: "" mibII/vacm_vars: vacm_in_view: sn=anonymousSecName002, gn=anonymousGroupName002, Done checking setup callback: END calling callbacks for maj=1 min=5 (1 called) subtree: looking for subtree for context: "" subtree: found one for: "" callback: START calling callbacks for maj=1 min=0 callback: calling a callback for maj=1 min=0 mibII/vacm_vars: vacm_in_view: ver=0, community=public netsnmp_udp_getSecName: resolve <"public", 0xf20e6082> netsnmp_udp_getSecName: compare <"public", 0x00000000/0x00000000>... SUCCESS subtree: looking for subtree for context: "" subtree: found one for: "" vacm:getView: , found , vt=1 callback: END calling callbacks for maj=1 min=0 (1 called) snmp_agent: add_vb_to_cache(0x8108148, 1, NET-SNMP-MIB::netSnmp.999.1.2.1.0, 0x80ad960) snmp_agent: tp->start NET-SNMP-AGENT-MIB::nsTransactions.2, tp->end SNMPv2-MIB::snmpSetSerialNo.0, handler:calling: main handler bulk_to_next handler:calling: calling handler bulk_to_next for mode GET handler:calling: calling handler null for mode GET helper:null: Got request helper:null: oid:NET-SNMP-MIB::netSnmp.999.1.2.1.0 handler:returned: handler null returned 0 handler:returned: handler bulk_to_next returned 0 results: request results (status = 0): results: NET-SNMP-MIB::netSnmp.999.1.2.1.0 = No Such Object available on this agent at this OID snmp_send: Building SNMPv1 message... I also put some checks into perl_module.pl to create a file in /tmp, but the file does not get created. It seems, the module is not even started. Any hints welcome! Thanks, Sven ________________________________________ Sven Hergenhahn Infrastructure Engineer Unix Information Technology Services SAS EMEA HQ ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ Net-snmp-users mailing list [EMAIL PROTECTED] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
