Link Up / Down problem
"Tomasz Gasiorowski" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Organization | Nowa Poczta Wirtualnej Polski S.A. http://www.wp.pl/ |
| Message-ID | <[email protected]> |
I installed netsnmp-5.4.1-sol10-sparc-local but I cannot see any SNMP traps for unplugging network interface. Please find my snmpd.conf. Maybe my config file is wrong ? Do you have example of working one ? thanks Tomasz ########################################################################### # # snmpd.conf # # - created by the snmpconf configuration program # ########################################################################### # SECTION: Access Control Setup # # This section defines who is allowed to talk to your running # snmp agent. # rocommunity: a SNMPv1/SNMPv2c read-only access community name # arguments: community [default|hostname|network/bits] [oid] rocommunity default # rwcommunity: a SNMPv1/SNMPv2c read-write access community name # arguments: community [default|hostname|network/bits] [oid] rwcommunity public ########################################################################### # SECTION: Monitor Various Aspects of the Running Host # # The following check up on various aspects of a host. # proc: Check for processes that should be running. # proc NAME [MAX=0] [MIN=0] # # NAME: the name of the process to check for. It must match # exactly (ie, http will not find httpd processes). # MAX: the maximum number allowed to be running. Defaults to 0. # MIN: the minimum number to be running. Defaults to 0. # # The results are reported in the prTable section of the UCD-SNMP-MIB tree # Special Case: When the min and max numbers are both 0, it assumes # you want a max of infinity and a min of 1. #proc ########################################################################### # SECTION: System Information Setup # # This section defines some of the information reported in # the "system" mib group in the mibII tree. # syslocation: The [typically physical] location of the system. # Note that setting this value here means that when trying to # perform an snmp SET operation to the sysLocation.0 variable will make # the agent return the "notWritable" error code. IE, including # this token in the snmpd.conf file will disable write access to # the variable. # arguments: location_string syslocation berlin # syscontact: The contact information for the administrator # Note that setting this value here means that when trying to # perform an snmp SET operation to the sysContact.0 variable will make # the agent return the "notWritable" error code. IE, including # this token in the snmpd.conf file will disable write access to # the variable. # arguments: contact_string syscontact ########################################################################### # SECTION: Trap Destinations # # Here we define who the agent will send traps to. # trap2sink: A SNMPv2c trap receiver # arguments: host [community] [portnum] trap2sink server01 162 # informsink: A SNMPv2c inform (acknowledged trap) receiver # arguments: host [community] [portnum] #informsink server01 # trapcommunity: Default trap sink community to use # arguments: community-string trapcommunity public # authtrapenable: Should we send traps when authentication failures occur # arguments: 1 | 2 (1 = yes, 2 = no) authtrapenable 1 # new code createUser dismanUser MD5 "noli me tangere" rouser dismanUser iquerySecName dismanUser #agentSecName public linkUpDownNotifications yes #defaultMonitors yes rouser public agentSecName public #iquerySecName public #linkUpDownNotifications yes #notificationEvent linkUpTrap linkUp ifIndex ifAdminStatus ifOperStatus #notificationEvent linkDownTrap linkDown ifIndex ifAdminStatus ifOperStatus #monitor -r 60 -u Admin -o sysUpTime.0 -e linkUpTrap "GlinkUp" ifOperStatus != 2 #monitor -r 60 -u Admin -o sysUpTime.0 -e linkDownTrap "GlinkDown" ifOperStatus == 2 ---------------------------------------------------- Jarecki - debiutancki album pt. "Styldohwil". Różnorodna stylistycznie płyta zawiera przeboj "Tańcz". Już w sklepach muzycznych. http://klik.wp.pl/?adr=http%3A%2F%2Fcorto.www.wp.pl%2Fas%2Fjarecki.html&sid=218 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ 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