On Thu, 2005-05-05 at 18:12, Parthiban Naliiamudali wrote:
> as you said i added the single line of code to the previous 
> "snmptrapd.c" file after the lines with "signal"

No - we suggested that you add a single line of code.
Just one - not several copies.


> #ifdef SIGHUP
> RETSIGTYPE
> hup_handler(int sig)
> {
>     reconfig = 1;
>     signal(SIGHUP, hup_handler);
>     signal(SIGPIPE, SIG_IGN);

Delete this - it's in the wrong place.

> }
> #endif


> line number --1132
> 
> signal(SIGTERM, term_handler);
> signal(SIGPIPE, SIG_IGN);
> #ifdef SIGHUP
> signal(SIGHUP, hup_handler);
> signal(SIGPIPE, SIG_IGN); 
> #endif
> signal(SIGINT, term_handler);
> signal(SIGPIPE, SIG_IGN);

That's better, but you don't need all of these.
Delete the first two SIGPIPE entries - just keep the last one.


> now there is no error after reception of trap.

Good.
That's one problem fixed.


> and also it is not running the "wimaxscript" a shell script program.

What is the relevant entry in your 'snmptrapd.conf' file?
What is the exact command used to send the trap?

You probably need to check that the script exists (and is executable).
What is the result of
                ls -l /path/to/wimaxscript
                                                    ?
(using the exact same path as listed in the snmptrapd.conf file)

Dave



-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
_______________________________________________
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

Reply via email to