Re: pass config direvtive does not work
I also want to install new handler for existing OIDs. E.g. for .1.3.6.1.2.1.2.2.1.1 (interfaces.ifTable.ifEntry.ifIndex). I see that config is parsed OK: trace: read_config(): read_config.c, 738: read_config: /etc/snmp/snmpd.conf:462 examining: pass .1.3.6.1.2.1.2.2.1.1/usr/local/bstat/bstat trace: run_config_handler(): read_config.c, 441: read_config: Found a parser. Calling it: pass / .1.3.6.1.2.1.2.2.1.1 /usr/local/bstat/bstat trace: netsnmp_register_handler(): agent_handler.c, 190: handler::register: Registering pass (::old_api) at IF-MIB::ifIndex trace: netsnmp_inject_handler_before(): agent_handler.c, 311: handler:inject: injecting bulk_to_next before old_api trace: netsnmp_register_mib(): agent_registry.c, 566: register_mib: registering pass at IF-MIB::ifIndex trace: netsnmp_subtree_find_first(): agent_registry.c, 156: subtree: looking for subtree for context: trace: netsnmp_subtree_find_first(): agent_registry.c, 160: subtree: found one for: But when I walk there I get default output. That is list of server's interfaces. But I would like to substitute my output. And bstat is not being run. I reviewed FAQ and man page of snmpd.conf once more and found override directive. But looks like with it I can substitute just static content. But how to substitute my script? Thanks, Mindaugas - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Re: pass config direvtive does not work
I also want to install new handler for existing OIDs. E.g. for .1.3.6.1.2.1.2.2.1.1 (interfaces.ifTable.ifEntry.ifIndex). read_config: /etc/snmp/snmpd.conf:462 examining: pass .1.3.6.1.2.1.2.2.1.1/usr/local/bstat/bstat But when I walk there I get default output. That is list of server's interfaces. H... The first thing to check is what the internal MIB registry looks like. What does snmpwalk nsModuleName | grep 1.3.6.1.2.1.2.2 show? # snmpwalk -v 1 -c secret localhost nsModuleName | fgrep 1.3.6.1.2.1.2.2 NET-SNMP-AGENT-MIB::nsModuleName..10.1.3.6.1.2.1.2.2.1.1.127 = STRING: mibII/interfaces NET-SNMP-AGENT-MIB::nsModuleName..10.1.3.6.1.2.1.2.2.1.2.127 = STRING: mibII/interfaces NET-SNMP-AGENT-MIB::nsModuleName..10.1.3.6.1.2.1.2.2.1.3.127 = STRING: mibII/interfaces NET-SNMP-AGENT-MIB::nsModuleName..10.1.3.6.1.2.1.2.2.1.4.127 = STRING: mibII/interfaces NET-SNMP-AGENT-MIB::nsModuleName..10.1.3.6.1.2.1.2.2.1.5.127 = STRING: mibII/interfaces NET-SNMP-AGENT-MIB::nsModuleName..10.1.3.6.1.2.1.2.2.1.6.127 = STRING: mibII/interfaces NET-SNMP-AGENT-MIB::nsModuleName..10.1.3.6.1.2.1.2.2.1.7.127 = STRING: mibII/interfaces NET-SNMP-AGENT-MIB::nsModuleName..10.1.3.6.1.2.1.2.2.1.8.127 = STRING: mibII/interfaces NET-SNMP-AGENT-MIB::nsModuleName..10.1.3.6.1.2.1.2.2.1.9.127 = STRING: mibII/interfaces NET-SNMP-AGENT-MIB::nsModuleName..10.1.3.6.1.2.1.2.2.1.10.127 = STRING: mibII/interfaces NET-SNMP-AGENT-MIB::nsModuleName..10.1.3.6.1.2.1.2.2.1.11.127 = STRING: mibII/interfaces NET-SNMP-AGENT-MIB::nsModuleName..10.1.3.6.1.2.1.2.2.1.12.127 = STRING: mibII/interfaces NET-SNMP-AGENT-MIB::nsModuleName..10.1.3.6.1.2.1.2.2.1.13.127 = STRING: mibII/interfaces NET-SNMP-AGENT-MIB::nsModuleName..10.1.3.6.1.2.1.2.2.1.14.127 = STRING: mibII/interfaces NET-SNMP-AGENT-MIB::nsModuleName..10.1.3.6.1.2.1.2.2.1.15.127 = STRING: mibII/interfaces NET-SNMP-AGENT-MIB::nsModuleName..10.1.3.6.1.2.1.2.2.1.16.127 = STRING: mibII/interfaces NET-SNMP-AGENT-MIB::nsModuleName..10.1.3.6.1.2.1.2.2.1.17.127 = STRING: mibII/interfaces NET-SNMP-AGENT-MIB::nsModuleName..10.1.3.6.1.2.1.2.2.1.18.127 = STRING: mibII/interfaces NET-SNMP-AGENT-MIB::nsModuleName..10.1.3.6.1.2.1.2.2.1.19.127 = STRING: mibII/interfaces NET-SNMP-AGENT-MIB::nsModuleName..10.1.3.6.1.2.1.2.2.1.20.127 = STRING: mibII/interfaces NET-SNMP-AGENT-MIB::nsModuleName..10.1.3.6.1.2.1.2.2.1.21.127 = STRING: mibII/interfaces NET-SNMP-AGENT-MIB::nsModuleName..10.1.3.6.1.2.1.2.2.1.22.127 = STRING: mibII/interfaces Mindaugas - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Re: pass config direvtive does not work
What does snmpwalk nsModuleName | grep 1.3.6.1.2.1.2.2 show? # snmpwalk -v 1 -c secret localhost nsModuleName | fgrep 1.3.6.1.2.1.2.2 nsModuleName..10.1.3.6.1.2.1.2.2.1.1.127 = STRING: mibII/interfaces nsModuleName..10.1.3.6.1.2.1.2.2.1.2.127 = STRING: mibII/interfaces snip So the agent hasn't taken the pass-based registrations for these OIDs, probably because there exactly duplicate the mibII versions. Try starting the agent with the option -I-interfaces to turn off this module, and run the same command. Does it report the same name, or pass? No. Now it pass and my script returns the output!!! Now I can configure something or I'll have to run snmpd with this option? Not a problem though. :) And one more little question. How then to substitute my script for system.sysUpTime (.1.3.6.1.2.1.1.3)? Mindaugas - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Re: pass config direvtive does not work
No. Now it pass and my script returns the output!!! Now I can configure something or I'll have to run snmpd with this option? a) You can run configure --with-out-mib-modules=mibII/interfaces and recompile. But before doing that: No. I'd rather run snmpd with -I-interfaces option. b) Try using pass -p 63 . in the snmpd.conf file, and restart the agent *without* the -I-interfaces option. Does that work? No: Nov 9 17:13:47 server snmpd[409]: /etc/snmp/snmpd.conf: line 462: Error: second token is not a OID My version is 5.1.2 as you remember. A bit old it seems. And one more little question. How then to substitute my script for system.sysUpTime (.1.3.6.1.2.1.1.3)? If b) works, then the same approach should server for sysUpTime as well. Otherwise you may need to exclude mibII/system_mib as well. -I-mibII/system_mib ? But that does not seems to work. If you're re-implementing sysUpTime, be sure to return the correct value. This is *not* the uptime of the whole system - just that of the SNMP agent. This time I need to return uptime of the whole system. Hack but I need it. Mindaugas - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Re: pass config direvtive does not work
How then to substitute my script for system.sysUpTime (.1.3.6.1.2.1.1.3)? Otherwise you may need to exclude mibII/system_mib as well. -I-mibII/system_mib ? No. configure --with-out-mib-modules=mibII/system_mib or snmpd -I-system_mib Thanks. It works now. If you're re-implementing sysUpTime, be sure to return the correct value. This is *not* the uptime of the whole system - just that of the SNMP agent. This time I need to return uptime of the whole system. Hack but I need it. Why not use hrSystemUptime? Since that's exactly what it's there for! Because I'm pretending to be Cisco switch or router :). And our stats collecting software is querying this OID for the uptime. And thank You a lot for your help. It was one of the best response/help I got in quite a long time! Thanks once more. Mindaugas - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Re: pass config direvtive does not work
On 07/11/06, Mindaugas [EMAIL PROTECTED] wrote: Nothing changes if I change .20 to .2. [snip] As you see snmpd finds pass directive. Now packet arrives: [snip] What is the exact command you are using to send this request? What are the access control settings in the snmpd.conf file? What is the result of walking the vacmAccessTable and vacmViewTreeFamilyTable? If you register the pass elements under .1 instead of .2, does that make any difference? Dave - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Re: pass config direvtive does not work
Nothing changes if I change .20 to .2. [snip] As you see snmpd finds pass directive. Now packet arrives: [snip] What is the exact command you are using to send this request? snmpwalk ServerIP secret .2.3.6.1.2.1.31.1.1.1.18 What are the access control settings in the snmpd.conf file? rocommunity secret And that's all. What is the result of walking the vacmAccessTable and vacmViewTreeFamilyTable? Below. If you register the pass elements under .1 instead of .2, does that make any difference? No it does not. Mindaugas # snmpwalk ServerIP secret vacmAccessTable .iso.org.dod.internet.snmpV2.snmpModules.snmpVacmMIB.vacmMIBObjects.vacmAccessTable.vacmAccessEntry.vacmAccessContextMatch.anonymousGroupName000..0.noAuthNoPriv = prefix(2) .iso.org.dod.internet.snmpV2.snmpModules.snmpVacmMIB.vacmMIBObjects.vacmAccessTable.vacmAccessEntry.vacmAccessReadViewName.anonymousGroupName000..0.noAuthNoPriv = anonymousView000 .iso.org.dod.internet.snmpV2.snmpModules.snmpVacmMIB.vacmMIBObjects.vacmAccessTable.vacmAccessEntry.vacmAccessWriteViewName.anonymousGroupName000..0.noAuthNoPriv = none .iso.org.dod.internet.snmpV2.snmpModules.snmpVacmMIB.vacmMIBObjects.vacmAccessTable.vacmAccessEntry.vacmAccessNotifyViewName.anonymousGroupName000..0.noAuthNoPriv = none .iso.org.dod.internet.snmpV2.snmpModules.snmpVacmMIB.vacmMIBObjects.vacmAccessTable.vacmAccessEntry.vacmAccessStorageType.anonymousGroupName000..0.noAuthNoPriv = permanent(4) .iso.org.dod.internet.snmpV2.snmpModules.snmpVacmMIB.vacmMIBObjects.vacmAccessTable.vacmAccessEntry.vacmAccessStatus.anonymousGroupName000..0.noAuthNoPriv = active(1) # snmpwalk ServerIP secret vacmViewTreeFamilyTable .iso.org.dod.internet.snmpV2.snmpModules.snmpVacmMIB.vacmMIBObjects.vacmMIBViews.vacmViewTreeFamilyTable.vacmViewTreeFamilyEntry.vacmViewTreeFamilyMask.anonymousView000.1.1 = ÿ .iso.org.dod.internet.snmpV2.snmpModules.snmpVacmMIB.vacmMIBObjects.vacmMIBViews.vacmViewTreeFamilyTable.vacmViewTreeFamilyEntry.vacmViewTreeFamilyType.anonymousView000.1.1 = included(1) .iso.org.dod.internet.snmpV2.snmpModules.snmpVacmMIB.vacmMIBObjects.vacmMIBViews.vacmViewTreeFamilyTable.vacmViewTreeFamilyEntry.vacmViewTreeFamilyStorageType.anonymousView000.1.1 = permanent(4) .iso.org.dod.internet.snmpV2.snmpModules.snmpVacmMIB.vacmMIBObjects.vacmMIBViews.vacmViewTreeFamilyTable.vacmViewTreeFamilyEntry.vacmViewTreeFamilyStatus.anonymousView000.1.1 = active(1) - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Re: pass config direvtive does not work
On 07/11/06, Mindaugas [EMAIL PROTECTED] wrote: What is the result of walking the vacmAccessTable and vacmViewTreeFamilyTable? Below. vacmViewTreeFamilyMask.anonymousView000.1.1 = ÿ Aha! That's significant. With the relatively early releases that you're using, the rocommunity directive only sets up access for the .1 subtree (which is where virtually all management information is defined anyway). So attempting to query anything under .0 or .2 will be rejected as out of view. This problem was fixed in later versions. But with the agent you're using, it's basically not possible to query .0.something or .2.something. (That's not strictly true, but it's close enough). If you register the pass elements under .1 instead of .2, does that make any difference? No it does not. I'm a little surprised. If nothing else, that brings the MIB objects within the valid view, so I'd expect things to get a little further before failing. What's the debug output from the agent when you try walking this tree? It might also be useful to see the code of the 'bstat' script. Dave - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Re: pass config direvtive does not work
[ First - *please* don't mail me privately, without copying any responses to the mailing list. I don't have the time or inclination to offer private, unpaid, SNMP consultancy. Keep discussions to the list, where others can both learn and offer advice. Thanks. ] On 07/11/06, Mindaugas [EMAIL PROTECTED] wrote: it's basically not possible to query .0.something or .2.something. (That's not strictly true, but it's close enough). And it is not possible to enable querying of .0 or .2 somehow? Yes, it is. But you need to use the full access control directives, not the simplified rocommunity style. See the snmpd.conf(5) man page or the FAQ for full details. As I said, this has been fixed in later versions of the software. But if you're using 5.1.x, then you'll have to do it the hard way. Dave - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Re: pass config direvtive does not work
[ First - *please* don't mail me privately, without copying any responses to the mailing list. I don't have the time or inclination to offer private, unpaid, SNMP consultancy. Keep discussions to the list, where others can both learn and offer advice. Thanks. ] I know. Sorry. Hit the wrong button. it's basically not possible to query .0.something or .2.something. (That's not strictly true, but it's close enough). And it is not possible to enable querying of .0 or .2 somehow? Yes, it is. But you need to use the full access control directives, not the simplified rocommunity style. See the snmpd.conf(5) man page or the FAQ for full details. As I said, this has been fixed in later versions of the software. But if you're using 5.1.x, then you'll have to do it the hard way. That's not a problem. I'll find out how to do that. But what about second part of the question. I'll copy/paste it there: I also want to install new handler for existing OIDs. E.g. for .1.3.6.1.2.1.2.2.1.1 (interfaces.ifTable.ifEntry.ifIndex). I see that config is parsed OK: trace: read_config(): read_config.c, 738: read_config: /etc/snmp/snmpd.conf:462 examining: pass .1.3.6.1.2.1.2.2.1.1/usr/local/bstat/bstat trace: run_config_handler(): read_config.c, 441: read_config: Found a parser. Calling it: pass / .1.3.6.1.2.1.2.2.1.1 /usr/local/bstat/bstat trace: netsnmp_register_handler(): agent_handler.c, 190: handler::register: Registering pass (::old_api) at IF-MIB::ifIndex trace: netsnmp_inject_handler_before(): agent_handler.c, 311: handler:inject: injecting bulk_to_next before old_api trace: netsnmp_register_mib(): agent_registry.c, 566: register_mib: registering pass at IF-MIB::ifIndex trace: netsnmp_subtree_find_first(): agent_registry.c, 156: subtree: looking for subtree for context: trace: netsnmp_subtree_find_first(): agent_registry.c, 160: subtree: found one for: But when I walk there I get default output. That is list of server's interfaces. But I would like to substitute my output. And bstat is not being run. Mindaugas - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
pass config direvtive does not work
Hello, I have such setup working on ucd-snmp-4.2.5 on Red Hat 7.3 Linux. But now I'm trying to setup similar configuration with net-snmp-5.1.2 on CentOS4 (RHEL4) Linux and it does not work. # uname -a Linux server 2.6.9-42.0.3.ELsmp #1 SMP Fri Oct 6 06:28:26 CDT 2006 x86_64 x86_64 x86_64 GNU/Linux I want to add processing of external command and have the following snmpd.conf: rocommunity secret syslocation Unknown (edit /etc/snmp/snmpd.conf) syscontact Root [EMAIL PROTECTED] (configure /etc/snmp/snmp.local.conf) pass .20.3.6.1.4.1.9.2.2.1.1.20 /usr/local/bstat/bstat pass .20.3.6.1.4.1.9.2.2.1.1.28 /usr/local/bstat/bstat pass .20.3.6.1.2.1.31.1.1.1.18 /usr/local/bstat/bstat pass .20.3.6.1.2.1.1.3 /usr/local/bstat/bstat pass .20.3.6.1.2.1.2.2.1.1 /usr/local/bstat/bstat pass .20.3.6.1.2.1.2.2.1.2 /usr/local/bstat/bstat pass .20.3.6.1.2.1.2.2.1.5 /usr/local/bstat/bstat pass .20.3.6.1.2.1.2.2.1.7 /usr/local/bstat/bstat pass .20.3.6.1.2.1.2.2.1.8 /usr/local/bstat/bstat pass .20.3.6.1.2.1.2.2.1.9 /usr/local/bstat/bstat pass .20.3.6.1.2.1.2.2.1.10 /usr/local/bstat/bstat pass .20.3.6.1.2.1.2.2.1.16 /usr/local/bstat/bstat But snmpd does not run bstat on incoming requests. If I run snmpd with -D -f -V options during configuration parsing I see that it finds those pass directives and registers hooks for them. But when request comes in - snmpd do not tries to run bstat. What can be cause for that? I have to edit some other configuration file? Also it does not seem to be permisions problem since bstat is accessible by everyone. Thanks, Mindaugas - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Re: pass config direvtive does not work
On 06/11/06, Mindaugas [EMAIL PROTECTED] wrote: But now I'm trying to setup similar configuration with net-snmp-5.1.2 on CentOS4 (RHEL4) Linux and it does not work. That's a fairly old release now (and the 5.1.x line is no longer being supported) If you're installing a new configuration, it would be sensible to work with 5.3.x (or the upcoming 5.4 release). rocommunity secret pass .20.3.6.1.4.1.9.2.2.1.1.20 /usr/local/bstat/bstat [snip] But snmpd does not run bstat on incoming requests. What's the exact command(s) that you're using to send the request? Dave - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Re: pass config direvtive does not work
But now I'm trying to setup similar configuration with net-snmp-5.1.2 on CentOS4 (RHEL4) Linux and it does not work. That's a fairly old release now (and the 5.1.x line is no longer being supported) If you're installing a new configuration, it would be sensible to work with 5.3.x (or the upcoming 5.4 release). This is version included in RHEL4. And I would like to keep it to avoid having to upgrade it myself. And I want not much :). As I've said it worked in even more ancient version. rocommunity secret pass .20.3.6.1.4.1.9.2.2.1.1.20 /usr/local/bstat/bstat [snip] But snmpd does not run bstat on incoming requests. What's the exact command(s) that you're using to send the request? snmpwalk server IP secret .20.3.6.1.4.1.9.2.2.1.1.20 Mindaugas - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Re: pass config direvtive does not work
On 06/11/06, Mindaugas [EMAIL PROTECTED] wrote: pass .20.3.6.1.4.1.9.2.2.1.1.20 /usr/local/bstat/bstat snmpwalk server IP secret .20.3.6.1.4.1.9.2.2.1.1.20 D'oh! I've only just spotted. That's not a valid OID. OIDs can *only* start with .0 .1 or .2 An OID starting with .20 is bogus. Dave - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Re: pass config direvtive does not work
pass .20.3.6.1.4.1.9.2.2.1.1.20 /usr/local/bstat/bstat snmpwalk server IP secret .20.3.6.1.4.1.9.2.2.1.1.20 D'oh! I've only just spotted. That's not a valid OID. OIDs can *only* start with .0 .1 or .2 An OID starting with .20 is bogus. Nothing changes if I change .20 to .2. snmpd -v -D -f startup excerpt: trace: read_config(): read_config.c, 738: read_config: /etc/snmp/snmpd.conf:473 examining: pass .2.3.6.1.2.1.31.1.1.1.18/usr/local/bstat/bstat trace: run_config_handler(): read_config.c, 441: read_config: Found a parser. Calling it: pass / .2.3.6.1.2.1.31.1.1.1.18/usr/local/bstat/bstat trace: netsnmp_register_handler(): agent_handler.c, 190: handler::register: Registering pass (::old_api) at joint-iso-ccitt.3.6.1.2.1.31.1.1.1.18 trace: netsnmp_inject_handler_before(): agent_handler.c, 311: handler:inject: injecting bulk_to_next before old_api trace: netsnmp_register_mib(): agent_registry.c, 566: register_mib: registering pass at joint-iso-ccitt.3.6.1.2.1.31.1.1.1.18 trace: netsnmp_subtree_find_first(): agent_registry.c, 156: subtree: looking for subtree for context: trace: netsnmp_subtree_find_first(): agent_registry.c, 160: subtree: found one for: trace: snmp_call_callbacks(): callback.c, 180: callback: START calling callbacks for maj=1 min=1 trace: snmp_call_callbacks(): callback.c, 200: callback: END calling callbacks for maj=1 min=1 (0 called) As you see snmpd finds pass directive. Now packet arrives: trace: snmp_call_callbacks(): callback.c, 200: callback: END calling callbacks for maj=1 min=0 (1 called) trace: netsnmp_handle_request(): snmp_agent.c, 2893: results: request results (status = 0): trace: netsnmp_handle_request(): snmp_agent.c, 2896: results:joint-iso-ccitt.3.6.1.2.1.31.1.1.1.18 = No Such Object available on this agent at this OID trace: _snmp_build(): snmp_api.c, 2771: snmp_send: Building SNMPv1 message... trace: _snmp_build(): snmp_api.c, 2774: dumph_send: PDU-RESPONSE trace: snmp_pdu_realloc_rbuild(): snmp_api.c, 3126: snmp_pdu_realloc_rbuild: starting trace: snmp_pdu_realloc_rbuild(): snmp_api.c, 3141: dumph_send: VarBind trace: snmp_realloc_rbuild_var_op(): snmp.c, 341: dumph_send: Value dumpx_send: 05 00 dumpv_send:NULL trace: snmp_realloc_rbuild_var_op(): snmp.c, 442: dumph_send: Name dumpx_send: 06 0A 53 06 01 02 01 1F 01 01 01 12 dumpv_send:ObjID: joint-iso-ccitt.3.6.1.2.1.31.1.1.1.18 trace: snmp_pdu_realloc_rbuild(): snmp_api.c, 3209: dumph_send: error index dumpx_send: 02 01 01 dumpv_send:Integer: 1 (0x01) trace: snmp_pdu_realloc_rbuild(): snmp_api.c, 3222: dumph_send: error status dumpx_send: 02 01 02 dumpv_send:Integer: 2 (0x02) trace: snmp_pdu_realloc_rbuild(): snmp_api.c, 3235: dumph_send: request_id dumpx_send: 02 04 37 B6 E4 57 dumpv_send:Integer: 934732887 (0x37B6E457) trace: _snmp_build(): snmp_api.c, 2780: dumph_send: Community String dumpx_send: 04 06 62 75 62 6C 69 6B dumpv_send:String: bublik trace: _snmp_build(): snmp_api.c, 2796: dumph_send: SNMP Version Number dumpx_send: 02 01 00 dumpv_send:Integer: 0 (0x00) trace: _snmp_build(): snmp_api.c, 2814: dumph_send: SNMPv1 Message trace: netsnmp_udp_send(): snmpUDPDomain.c, 166: netsnmp_udp: send 45 bytes from 0x552ad63573 to IP address on fd 10 trace: netsnmp_remove_and_free_agent_snmp_session(): snmp_agent.c, 1599: snmp_agent: REMOVE session == 0x552ad61f30 trace: free_agent_snmp_session(): snmp_agent.c, 1210: snmp_agent: agent_sesion 0x552ad61f30 released trace: handle_snmp_packet(): snmp_agent.c, 1736: snmp_agent: end of handle_snmp_packet, asp = 0x552ad61f30 trace: _sess_read(): snmp_api.c, 5212: sess_read: not reading 7 (fdset 0x7fbfffe830 set 0) trace: _sess_read(): snmp_api.c, 5212: sess_read: not reading 4 (fdset 0x7fbfffe830 set 0) trace: snmp_sess_select_info(): snmp_api.c, 5625: sess_select: for all sessions: 10 7 4 trace: receive(): snmpd.c, 1119: snmpd/select: select( numfds=11, ..., tvp=(nil)) Mindaugas - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users