Re: Snmpd pass
Dave Shield <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
2009/6/29 Tyler Smith <[email protected]>: > However, It seems that 5.1.2 just does not pass any > arguments to the passtest script. No - that shouldn't be the case. Looking at the code in pass.c, it builds the command using: 275 if (exact) 276 snprintf(passthru->command, sizeof(passthru->command), 277 "%s -g %s", passthru->name, buf); 278 else 279 snprintf(passthru->command, sizeof(passthru->command), 280 "%s -n %s", passthru->name, buf); 281 passthru->command[ sizeof(passthru->command)-1 ] = 0; 282 DEBUGMSGTL(("ucd-snmp/pass", "pass-running: %s\n", 283 passthru->command)); So it should invoke either "command -n OID" or "command -g OID" (for GETNEXT and GET/SET respectively). Try running the agent with the option -Ducd-snmp/pass and you should see a debug message with this command. One thing to check is whether EXCACHETIME is defined in the net-snmp-config.h file. The definition of "wait_on_exec" is effectively reliant on this being set. Otherwise it will do nothing (silently!) Dave ------------------------------------------------------------------------------ _______________________________________________ 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