> I tried creating a new
> file at /usr/local/etc with just the traphandle as its
> contents.
> The -P option tells me that the trap is being recieved
> by the daemon, but my code still doesnt get called up.
OK - can you please post:
a) The exact contents of you
prashanth raghavan wrote:
Can someone please tell me what the contents of the
snmptrapd.conf file should be? I tried creating a new
file at /usr/local/etc with just the traphandle as its
contents. And then I used the -c option and supplied
the above file as the configuration. But it still
doesnt wo
Can someone please tell me what the contents of the
snmptrapd.conf file should be? I tried creating a new
file at /usr/local/etc with just the traphandle as its
contents. And then I used the -c option and supplied
the above file as the configuration. But it still
doesnt work for me.
The -P optio
I had ethereal running during the testing. And yes, I
did see the linkDown trap message received by the
destination terminal for the traps.
So, should I just create this new file wth the same
contents as the file that I am using right now (i.e.
the one in /var/net-snmp)?
< No idea - sorry.>
> I can't see anything, but when I stop the agent I can see in NNM
> received event type .1.3.6.1.4.1.8072.4.0.2
That sounds as if it's NNM which is receiving the traps, not snmptrapd.
In which case, it's not surprising that snmptrapd isn't actually
doing anything!
Dave
--
I can't see anything, but when I stop the agent I can see in NNM received
event type .1.3.6.1.4.1.8072.4.0.2
> > I tried both methods. Then I started the trap daemon
> > and administratively shut down an interface. But my
> > program still doesnt get called up.
>
> But are you sure that the trap d
prashanth raghavan wrote:
Further, the only location of snmptrapd.conf is under
the /var/net-snmp subdirectory. Should I copy this
file to another location?
Uh, definitely. This is the persistent file that's not meant
to hold "traphandle" directives (as that file clearly says:
don't edit it).
Run
> I tried both methods. Then I started the trap daemon
> and administratively shut down an interface. But my
> program still doesnt get called up.
But are you sure that the trap daemon is actually
*receiving* a 'linkDown' trap? The Net-SNMP agent
doesn't normally generate such things.
(See the F
I tried both methods. Then I started the trap daemon
and administratively shut down an interface. But my
program still doesnt get called up.
Further, the only location of snmptrapd.conf is under
the /var/net-snmp subdirectory. Should I copy this
file to another location? The thing I dont understa
> I found a few places where the MIB was mentioned.
[snip]
> So does this mean that the MIB has actually been loaded?
Yes :-(
[Bother! I really thought that would be the problem]
Ummm... other things you could try:
a) Use a MIB-qualified form of the trap name
traphandle
I found a few places where the MIB was mentioned.
1.parse-mibs: Module 8 IF-MIB is in
/usr/share/snmp/mibs/IF-MIB.txt
2.parse-mibs: Parsing MIB: 8 IF-MIB
3.parse-mibs: Processing IMPORTS for module 8 IF-MIB
4.parse-mibs: Module IF-MIB already loaded
So does this mean that the MIB has actual
Prashanth> I still get the same error message when I try out
Prashanth> snmptrapd -m ALL -P. So can anyone tell me what
Prashanth> exactly is the problem.
David> Use -Le instead of -P
I doubt that's the solution, since Prashanth is clearly seeing
the output from snmptrapd.
I suspect that the tr
Use -Le instead of -P
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of
> prashanth raghavan
> Sent: Tuesday, September 28, 2004 3:19 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Snmptrapd help
>
>
> I still get the sam
I still get the same error message when I try out
snmptrapd -m ALL -P. So can anyone tell me what
exactly is the problem.
Prashanth
--- Dave Shield <[EMAIL PROTECTED]> wrote:
> > [EMAIL PROTECTED] net-snmp]# snmptrapd -P
> > /var/net-snmp/snmptrapd.conf: line 12: Error:
> > Bad trap OID
> [EMAIL PROTECTED] net-snmp]# snmptrapd -P
> /var/net-snmp/snmptrapd.conf: line 12: Error:
> Bad trap OID in traphandle directive: linkDown
David's correct that traphandle directives would normally be
in a "static" config file rather than /var/net-snmp
But it looks here as if the proble
age-
> From: prashanth raghavan
> Sent: Thursday, September 23, 2004 5:12 PM
> To: [EMAIL PROTECTED]
> Subject: Snmptrapd help
>
>
> Hi,
> I wrote a code that would be launched when the network
> entity encountered a linkDown trap. And after
> modifying the snmptr
Hi,
I wrote a code that would be launched when the network
entity encountered a linkDown trap. And after
modifying the snmptrapd.conf by adding the traphandle
directive, the code worked. But since I had to use the
trap daemon for some other codes, I removed the
traphandle directive.
yesterday, I a
17 matches
Mail list logo