Re: pass config direvtive does not work

"Mindaugas" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
>  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=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.