Re: SNMPTRAP & traptomai

"Dave Shield" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 02/11/06, BENAMAR Khalid <[email protected]> wrote:

> i try to launch snmptrapd (say in the second message)
> snmptrapd -Lf /home/benamar/tmp/log.log -F "%#02.2h:%#02.2j TRAP%w.%q from
> %A\n" -c /usr/bin/snmptrapd.conf
>
> in the log i have this message
>
> 2007-01-15 18:25:14 NET-SNMP version 5.1.4 Started.
> couldn't open udp:162 -- errno 98 ("Address already in use")


That sounds as if you already have a "snmptrapd" receiver running.
You'd need to shut this down before trying to start a new one.

Try
      "ps -ef | grep snmptrapd"

Then "kill {pid}" with the ID of that process.
Make sure that there's nothing reported by "ps" before starting
your new version.


While you're testing, you might find it useful to run

    snmptrapd -f -Le  -F "....."  -c /usr/bin/snmptrapd.conf

which will display any output directly on the terminal.

I'd also advise against putting configuration files such as
"snmptrapd.conf" in a binary directory.  Use something like
'/usr/local/share/snmp/snmptrapd.conf' or '/etc/snmptrapd.conf'
instead.


Dave

-------------------------------------------------------------------------
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.