No trap with link down

[email protected]
Newsgroups gmane.network.net-snmp.user
Message-ID <CAOHBbgVcok-WFwjXjbLh5804T15hfJde6VEd3HCKv_52ZKR47Q@mail.gmail.com>
I am running snmptrapd like below and took one of the interface down on my
VM. But I do not see any trap. What gives?

# snmptrapd -Lf /var/log/snmp-traps --disableAuthorization=yes -m +ALL

There is nothing on the /var/log/snmp-traps showing any trap

If I run a test trap, I do see it is showing up

# snmptrap -v2c -c public localhost 1 1

# tail -f /var/log/snmp-traps
2019-11-15 20:33:36 localhost [UDP: [127.0.0.1]:35857->[127.0.0.1]:162]:
iso.3.6.1.2.1.1.3.0 = Timeticks: (1) 0:00:00.01 iso.3.6.1.6.3.1.1.4.1.0 =
OID: ccitt.1

I am running all these from same VM

/etc/snmp/snmpd.conf
=================
agentAddress udp:161,udp6:[::1]:161
view   systemonly  included   .1.3.6.1.2.1.1
view   systemonly  included   .1.3.6.1.2.1.25.1
rocommunity public  default    -V systemonly
rouser   authOnlyUser
rwuser demo priv
sysLocation    Sitting on the Dock of the Bay
sysContact     Me <[email protected]>
sysServices    72
proc  mountd
proc  ntalkd    4
proc  sendmail 10 1
disk       /     10000
disk       /var  5%
includeAllDisks  10%
load   12 10 5
trapsink     localhost public
iquerySecName   internalUser
rouser          internalUser
defaultMonitors          yes
linkUpDownNotifications  yes
extend    test1   /bin/echo  Hello, world!
extend-sh test2   echo Hello, world! ; echo Hi there ; exit 35
master          agentx

/etc/snmp/snmptrapd.conf and /etc/snmp/snmp.conf are empty

-- 
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?

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