RE: ifLinkUp/ifLinkDown Traps and "override" Configuration

2019-08-09 Thread David Hauck
Hi again, Should I have posted this on the net-snmp-users list instead? I pondered that originally but thought that the extra code locus information (in ifTable_data_access.c) in the original note justified its inclusion here. I'm still looking for a way to use the override mechanis

ifLinkUp/ifLinkDown Traps and "override" Configuration

2019-08-07 Thread David Hauck
Hi, I'm trying to understand the difference between using an "override" for setting the IF-MIB::ifLinkUpDownTrapEnable. object vs. a traditional set. I find that when these columns are set for an ifXEntry via the override mechanism in the agent's configuration file I

can't override sysObjectID in an AgentX sub-agent

2012-03-06 Thread Fulko Hew
My dilemma is having a product development team that is delivering on a Windows x64 platform. I need them to deliver a custom value of sysObjectID, but there was a bug in (old versions) of Net-SNMP that prevented the config file override from working. I.e. sysObjectId 5.5.5.5 ( Note: I also

Re: How to override the result of an GET request?

2008-03-17 Thread Nguyen Dinh Nam
On Fri, Mar 14, 2008 at 9:47 AM, Nguyen Dinh Nam <[EMAIL PROTECTED]> wrote: > I want to write an embedded Perl extension to replace the built in value > of > .iso.org.dod.internet.mgmt.mib-2.interfaces.ifTable.ifEntry.ifDescr.* == > .1.3.6.1.2.1.2.2.1.2 with my own values, such as the long descrip

Re: How to override the result of an GET request?

2008-03-17 Thread Nguyen Dinh Nam
On Fri, Mar 14, 2008 at 6:42 PM, Dominique bastien <[EMAIL PROTECTED]> wrote: > The override command can be added in the conf file by > your perl script. > Thank you, I have tried it but not satisfied. It's because the interface IDs in Linux is not fixed, but IDs are assi

Re: How to override the result of an GET request?

2008-03-14 Thread Dominique bastien
The override command can be added in the conf file by your perl script. --- Nguyen Dinh Nam <[EMAIL PROTECTED]> wrote: > I want to write an embedded Perl extension to > replace the built in value of > .iso.org.dod.internet.mgmt.mib-2.interfaces.ifTable.

How to override the result of an GET request?

2008-03-14 Thread Nguyen Dinh Nam
I want to write an embedded Perl extension to replace the built in value of .iso.org.dod.internet.mgmt.mib-2.interfaces.ifTable.ifEntry.ifDescr.* == .1.3.6.1.2.1.2.2.1.2 with my own values, such as the long description of the interface instead of interface name. I tried to register my own handler

Re: override

2007-08-01 Thread Dave Shield
On 31/07/07, Fong Tsui <[EMAIL PROTECTED]> wrote: > Is it possible to get this override value from a subagent? No - I don't think so. Dave - This SF.net email is sponsored by: Splunk Inc. Still grepping throug

RE: override

2007-07-31 Thread Fong Tsui
Is it possible to get this override value from a subagent? If yes, how or where I should look? Thanks, FT -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dave Shield Sent: Tuesday, July 31, 2007 1:30 AM To: Fong Tsui Cc: net-snmp-coders

Re: override

2007-07-31 Thread Dave Shield
On 31/07/07, Dominique bastien <[EMAIL PROTECTED]> wrote: > It seem that the override directive doesn't work with > the warm boot. I try some test last nigth and found > error on each line after a -HUP. > > Jan 1 01:40:27 Overture snmpd[101]: /tmp/snmpd.conf: > lin

Re: override

2007-07-31 Thread Dominique bastien
It seem that the override directive doesn't work with the warm boot. I try some test last nigth and found error on each line after a -HUP. Jan 1 01:40:27 Overture snmpd[101]: /tmp/snmpd.conf: line 44: Error: oid registration failed within the agent Jan 1 01:40:27 Overture snmpd[101]:

Re: override

2007-07-31 Thread Dave Shield
On 31/07/07, Fong Tsui <[EMAIL PROTECTED]> wrote: > How does override work? It seems it ignores what var_XXX( ) does. That's correct. It will return the given value for the specified OID, overriding whatever the agent code would normally report, and hence ignoring the var_XXX()

override

2007-07-30 Thread Fong Tsui
Is there API which I can call to get value of an OID, which is set by override (in snmpd.conf)? My subagent exposes certain data depending on the value of the OID. How does override work? It seems it ignores what var_XXX( ) does. Thanks, FT

Re: SIGHUP vs override

2006-09-16 Thread Thomas Anders
Dominique bastien wrote: > I perform some tests yesterday with the SIGHUP feature > and I notice that the lines in snmpd.conf containing > the "override" keyword are not process at the > warm-boot. Please file a bug on http://www.net-snmp.org/bugs . Please provide syste

SIGHUP vs override

2006-09-14 Thread Dominique bastien
I perform some tests yesterday with the SIGHUP feature and I notice that the lines in snmpd.conf containing the "override" keyword are not process at the warm-boot. What is missing to make this thing work properly? Do we have to register a callback or add something in update_config(

Re: net-snmp-5.1.x and override

2006-02-20 Thread Wes Hardaker
> On Thu, 16 Feb 2006 22:51:33 +, Dave Shield <[EMAIL PROTECTED]> said: >> BTW, the patch was checked in for 5.1.4.pre3, since it fixes known >> breakage. So we have a week or so before pre4/rc1 to find a better >> solution, or breakage in the existing solution... Dave> I'm afraid I'm pro

Re: net-snmp-5.1.x and override

2006-02-16 Thread Dave Shield
Quoting Robert Story <[EMAIL PROTECTED]>: BTW, the patch was checked in for 5.1.4.pre3, since it fixes known breakage. So we have a week or so before pre4/rc1 to find a better solution, or breakage in the existing solution... I'm afraid I'm probably going to have to leave this to you. The next

Re: net-snmp-5.1.x and override

2006-02-16 Thread Robert Story
plications are. (I'm still DS> slightly under the weather from last weekend, I think). Ok... a little more detail. DS> > - override handler works *after* the fact. original handler is called and DS> > returns data. As you surmised, I didn't look into this. Well, I did

Re: net-snmp-5.1.x and override

2006-02-15 Thread Dave Shield
I was rather verbose. Maybe that's why > you asked for an 'executive' summary. I'll try to make it shorter. > > - override handler works *after* the fact. original handler is called and > returns data. > > - bulk_to_next handler advances to next variabl

Re: net-snmp-5.1.x and override

2006-02-14 Thread Robert Story
s, since he was working on a DS> > fix for the original bug report. DS> DS> Can you give me an executive summary, please Robert. Did you check the summary in the patch? I was rather verbose. Maybe that's why you asked for an 'executive' summary. I'll try to make it

Re: net-snmp-5.1.x and override

2006-02-14 Thread Dave Shield
On Fri, 2006-02-10 at 19:39 -0500, Robert Story wrote: > Ok, I fixed the registration issue in 5.1.4.dev, so that should be in the next > pre-release. However, with the fix, your config will send the agent into an > infinite loop. A proposed patch is attached to this bug report: > > http://sourcef

Re: net-snmp-5.1.x and override

2006-02-10 Thread Robert Story
On Fri, 27 Jan 2006 11:43:01 +0100 Radek wrote: RV> Robert Story wrote: RV> > On Mon, 23 Jan 2006 16:17:38 +0100 Radek wrote: RV> > RV> The override statement doesn't work in net-snmp-5.1.2/5.1.3 RV> > RV> If I add the following line into snmpd.co

Re: net-snmp-5.1.x and override

2006-01-27 Thread Radek Vokál
Robert Story wrote: On Mon, 23 Jan 2006 16:17:38 +0100 Radek wrote: RV> The override statement doesn't work in net-snmp-5.1.2/5.1.3 RV> If I add the following line into snmpd.conf RV> RV> override 1.3.6.1.2.1.25.2.3.1.3.6 null RV> RV> I can still access the MIB Confi

Re: net-snmp-5.1.x and override

2006-01-26 Thread Robert Story
On Mon, 23 Jan 2006 16:17:38 +0100 Radek wrote: RV> The override statement doesn't work in net-snmp-5.1.2/5.1.3 RV> If I add the following line into snmpd.conf RV> RV> override 1.3.6.1.2.1.25.2.3.1.3.6 null RV> RV> I can still access the MIB Confirmed with 5.1.4.dev cvs

net-snmp-5.1.x and override

2006-01-23 Thread Radek Vokál
The override statement doesn't work in net-snmp-5.1.2/5.1.3 If I add the following line into snmpd.conf override 1.3.6.1.2.1.25.2.3.1.3.6 null I can still access the MIB Radek -- Radek Vokál <[EMAIL PROTECTED]> signature.asc Description: This is a digitally signed message part

core dump when using override

2004-06-22 Thread John Lash
I noticed that whenever I use an override in my snmpd.conf file, I get a core dump. I compiled net-snmp-5.1.1 on slackware 9.1. For example: override sysDescr.0 octet_str "foo" will cause the daemon to toss core while it is parsing the config file. The problem is in agent_