[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mon
Subject:    =?iso-8859-1?Q?Re:_Hello_!!!_I_would_like_a_help_please_...._it=B4s_about?=
From:       "=?iso-8859-1?B?QW5kcukgTGXjbw==?=" <andre () sysdata ! com ! br>
Date:       2002-11-08 19:56:40
[Download RAW message or body]

Thank you, it works, but not so fine, i think there is a little problem and i don´t \
know how to do with de default lines of snmp2montrap file...  Take a look in my confs \
if you have time, i don´t want to disturb you, i think you are capable to solve the \
problem ... I think there´s a little problem to work fine... take a look if you have \
                time...
... Sorry I don´t know perl... 

################ YOUR CONFIGURATION ##################

my $Patterns = {

# Windows backup exec


'\.iso\.org\.dod\.internet\.snmpV2\.snmpModules\.snmpMIB\.snmpMIBObjects\.snmpTraps\.linkDown' \
=> { 

group => 'IFMIB',

service => 'link',

status => 'ok',

},

'\.iso\.org\.dod\.internet\.snmpV2\.snmpModules\.snmpMIB\.snmpMIBObjects\.snmpTraps\.linkUp' \
=> { 

group => 'IFMIB',

service => 'link',

status => 'ok',

},


########### WHAT I DO WITH THESE SNMP2MONTRAP DEFAULT LINES ???????? ###########

'^enterprises\.1302\.3\.3\.5(.*)' => {

group => 'tr',            ### mon.cf mapped ###

service => 'tre',        ### mon.cf mapped ###

},

'\.iso\.org\.dod\.internet\.snmpV2\.snmpModules\.snmpMIB\.snmpMIBObjects\.snmpTraps\.authenticationFailure' \
=> { ignore => 1},

};

######################################################################################



######### snmptrapd deamon with a little problem  ########

[root@mail andre]# /usr/sbin/snmptrapd -P
2002-11-08 16:16:04 UCD-snmp version 4.2 Started.
2002-11-08 16:16:07 192.168.0.130 [192.168.0.130] (via 148.5.7.130 [148.5.7.130])  \
enterprises.3.1.1  Link Up Trap (0) Uptime: 16 days, 8:11:50.61

Use of uninitialized value in concatenation (.) at /home/andre/mont line 99, <> line \
7. Use of uninitialized value in concatenation (.) at /home/andre/mont line 99, <> \
line 7.


######### These are the lines of the log files on snmp2montrap ########

> > > > > Fri Nov 8 16:16:07 2002 /home/andre/mont <<<<<
148.5.7.130

148.5.7.130

system.sysUpTime.0 16:8:11:50.61

.iso.org.dod.internet.snmpV2.snmpModules.snmpMIB.snmpMIBObjects.snmpTrap.snmpTrapOID.0 \
.iso.org.dod.internet.snmpV2.snmpModules.snmpMIB.snmpMIBObjects.snmpTraps.linkUp

.iso.org.dod.internet.snmpV2.snmpModules.snmpCommunityMIB.snmpCommunityMIBObjects.snmpTrapAddress.0 \
192.168.0.130

.iso.org.dod.internet.snmpV2.snmpModules.snmpCommunityMIB.snmpCommunityMIBObjects.snmpTrapCommunity.0 \
"public"

.iso.org.dod.internet.snmpV2.snmpModules.snmpMIB.snmpMIBObjects.snmpTrap.snmpTrapEnterprise.0 \
enterprises.3.1.1


######### This is the e-mail output that works for the trap ########
Summary output       : 148.5.7.130: 

Group                 : IFMIB
Service               : link
Time noticed          : Fri Nov  8 16:16:07 2002
Secs until next alert : 
Members       : IFMIB

Detailed text (if any) follows:
-------------------------------
148.5.7.130:


#####################################################

There´s a problem here, in the detailed text, theres no information of traps, \
'LinkUp', 'LinkDown', 'ColdStart'.


I hope you understand...

----- Original Message ----- 
  From: Ralph.Bugg 
  To: 'André Leão' 
  Cc: mon@linux.kernel.org 
  Sent: Friday, November 08, 2002 2:51 PM
  Subject: RE: Hello !!! I would like a help please .... it´s about snmp2montrap....


  Sorry I misunderstood you... What I told you to do would ignore the messages what \
you really want to do is map it into a serivce watch statement so you'll want it \
something like this added to the $Patterns hash...

  ---------------------
  '\.iso\.org\.dod\.internet\.snmpV2\.snmpModules\.snmpMIB\.snmpMIBObjects\.snmpTraps\.linkDown' \
=> {   group => 'IFMIB',
              service => 'link',
              status => 'ok',
  },

  '\.iso\.org\.dod\.internet\.snmpV2\.snmpModules\.snmpMIB\.snmpMIBObjects\.snmpTraps\.linkUp' \
=> {   group => 'IFMIB',
              service => 'link,
              status => 'ok',
  },
  ----------------------
  Then in your mon.cf you can add a watch for it something like
  -----------------------
  watch IFMIB
    service link
      description SNMP Link Status traps
      period wd {Sun-Sat}
        alert mail.alert bob joe
        upalert mail.alert -u bob joe
  -----------------------------
  Hope this helps

    -----Original Message-----
    From: André Leão [mailto:andre@sysdata.com.br]
    Sent: Friday, November 08, 2002 11:18 AM
    To: Ralph.Bugg
    Cc: mon@linux.kernel.org
    Subject: RE: Hello !!! I would like a help please .... it´s about \
snmp2montrap....


          Thank you for yor suggestion, but i don´t know perl so much but i tried to \
do this and it´s no working fine and, i would like to receive LinkUP   and LinkDown \
Traps...

           
          These traps are linkUp traps which get generated whenever an interface \
comes up... I'm guessing that you are getting them when the machines bootup.

          If you don't care about them what you could do is add this to the $Patterns \
hash in snmp2montrap

          '\.iso\.org\.dod\.internet\.snmpV2\.snmpModules\.snmpMIB\.snmpMIBObjects\.snmpTraps\.linkUp' \
=> { ignore => 1},

          and that will silently ignore the linkUp traps (you'll probably want to add \
linkDown traps as well)


            -----Original Message-----
            From: André Leão [mailto:andre@sysdata.com.br]
            Sent: Tuesday, November 05, 2002 3:06 PM
            To: mon@linux.kernel.org
            Subject: Hello !!! I would like a help please .... it´s about \
snmp2montrap....


            my snmptrapd.conf
            traphandle default /etc/snmp2montrap

            When i receive any trap i always receive something like this:

            Summary output       : /etc/snmp2montrap: Unrecognized SNMP trap

            Group                 : default
            Service               : default
            Time noticed          : Tue Nov  5 17:43:09 2002
            Secs until next alert : 
            Members       : default

            Detailed text (if any) follows:
            -------------------------------
            =================
            148.5.7.130
            148.5.7.130
            system.sysUpTime.0 13:9:39:02.30
            .iso.org.dod.internet.snmpV2.snmpModules.snmpMIB.snmpMIBObjects.snmpTrap.snmpTrapOID.0 \
                .iso.org.dod.internet.snmpV2.snmpModules.snmpMIB.snmpMIBObjects.snmpTraps.linkUp
                
            .iso.org.dod.internet.snmpV2.snmpModules.snmpCommunityMIB.snmpCommunityMIBObjects.snmpTrapAddress.0 \
                192.168.0.130
            .iso.org.dod.internet.snmpV2.snmpModules.snmpCommunityMIB.snmpCommunityMIBObjects.snmpTrapCommunity.0 \
                "public"
            .iso.org.dod.internet.snmpV2.snmpModules.snmpMIB.snmpMIBObjects.snmpTrap.snmpTrapEnterprise.0 \
enterprises.3.1.1  =================

            I receive traps of Windows 2000 server, Linux, Cisco routers, Cyclades \
routers, Cisco Switch  and it´s the same thing.

            i hope you help me please...

            Thank you so lot. 

         

    André Guizarde Q. de Leão
            Suporte Técnico
    Sysdata Sistemas Integrados
         (91) 3084 1610 (Direto)
         (91) 3084 1600 (Geral)
         0300-789-2214 


[Attachment #3 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Thank you, it&nbsp;</FONT><FONT face=Arial 
size=2>works, but not so fine, i think there is a little problem and i don´t 
know how to do with de default lines of <STRONG>snmp2montrap</STRONG> 
file...&nbsp;</FONT></DIV>
<DIV><FONT face=Arial size=2>Take a look in my confs if you have time, i don´t 
want to disturb you,&nbsp;i think you are capable to solve the problem&nbsp;... 
I think there´s a little problem to work fine... take a look if you have 
time...</FONT></DIV>
<DIV><FONT face=Arial size=2>... Sorry I don´t know perl... </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><FONT size=2>
<P><FONT color=#ff0000>################ YOUR CONFIGURATION 
##################</FONT></P>
<P>my $Patterns = {</P>
<P># Windows backup exec</P>
<P></P>
<P>'\.iso\.org\.dod\.internet\.snmpV2\.snmpModules\.snmpMIB\.snmpMIBObjects\.snmpTraps\.linkDown' \
 =&gt; { </P>
<P>group =&gt; 'IFMIB',</P>
<P>service =&gt; 'link',</P>
<P>status =&gt; 'ok',</P>
<P>},</P>
<P>'\.iso\.org\.dod\.internet\.snmpV2\.snmpModules\.snmpMIB\.snmpMIBObjects\.snmpTraps\.linkUp' \
 =&gt; { </P>
<P>group =&gt; 'IFMIB',</P>
<P>service =&gt; 'link',</P>
<P>status =&gt; 'ok',</P>
<P>},</P>
<P></P>
<P><STRONG><FONT color=#808000>########### WHAT I DO WITH THESE SNMP2MONTRAP 
DEFAULT LINES ???????? ###########</FONT></STRONG></P>
<P>'^enterprises\.1302\.3\.3\.5(.*)' =&gt; {</P>
<P>group =&gt; 
'tr',&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT 
color=#008080>###&nbsp;mon.cf mapped ###</FONT></P>
<P>service =&gt; 'tre',&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT 
color=#ff00ff> </FONT><FONT color=#008080>###&nbsp;mon.cf mapped ###</FONT></P>
<P>},</P>
<P>'\.iso\.org\.dod\.internet\.snmpV2\.snmpModules\.snmpMIB\.snmpMIBObjects\.snmpTraps\.authenticationFailure' \
 =&gt; { ignore =&gt; 1},</P>
<P>};</P>
<P><FONT 
color=#ff0000>######################################################################################</FONT></P></FONT></FONT></DIV>
 <DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2><STRONG></STRONG></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#800080 size=2><STRONG>#########&nbsp;snmptrapd 
deamon with a little problem &nbsp;########</STRONG></FONT></DIV>
<DIV>&nbsp;</DIV></FONT></DIV>
<DIV><FONT face=Arial size=2><STRONG>[root@mail andre]# /usr/sbin/snmptrapd 
-P<BR>2002-11-08 16:16:04 UCD-snmp version 4.2 Started.<BR>2002-11-08 16:16:07 
192.168.0.130 [192.168.0.130] (via 148.5.7.130 [148.5.7.130])&nbsp; 
enterprises.3.1.1<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Link Up Trap (0) 
Uptime: 16 days, 8:11:50.61</STRONG></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><STRONG>Use of uninitialized value in concatenation 
(.) at /home/andre/mont line 99, &lt;&gt; line 7.<BR>Use of uninitialized value 
in concatenation (.) at /home/andre/mont line 99, &lt;&gt; line 
7.</STRONG></FONT></DIV>
<DIV><FONT face=Arial size=2><STRONG></STRONG></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><STRONG></STRONG></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#800080 size=2><STRONG>######### These are the lines 
of the log files on snmp2montrap ########</STRONG></FONT></DIV>
<DIV><FONT face=Arial size=2><FONT size=2></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><FONT size=2>&gt;&gt;&gt;&gt;&gt; Fri Nov 8 
16:16:07 2002 /home/andre/mont &lt;&lt;&lt;&lt;&lt;</DIV>
<DIV>
<P>148.5.7.130</P>
<P>148.5.7.130</P>
<P>system.sysUpTime.0 16:8:11:50.61</P>
<P>.iso.org.dod.internet.snmpV2.snmpModules.snmpMIB.snmpMIBObjects.snmpTrap.snmpTrapOID.0 \
                
.iso.org.dod.internet.snmpV2.snmpModules.snmpMIB.snmpMIBObjects.snmpTraps.linkUp</P>
<P>.iso.org.dod.internet.snmpV2.snmpModules.snmpCommunityMIB.snmpCommunityMIBObjects.snmpTrapAddress.0 \
 192.168.0.130</P>
<P>.iso.org.dod.internet.snmpV2.snmpModules.snmpCommunityMIB.snmpCommunityMIBObjects.snmpTrapCommunity.0 \
 "public"</P>
<P>.iso.org.dod.internet.snmpV2.snmpModules.snmpMIB.snmpMIBObjects.snmpTrap.snmpTrapEnterprise.0 \
 enterprises.3.1.1</P>
<DIV><FONT face=Arial size=2><STRONG></STRONG></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#800080 size=2><STRONG>######### This is the e-mail 
output that works for the trap ########</STRONG></FONT></DIV>
<P></FONT></FONT>Summary output &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : 148.5.7.130: 
<BR><BR>Group&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 : 
IFMIB<BR>Service&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 : link<BR>Time noticed&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : 
Fri Nov&nbsp; 8 16:16:07 2002<BR>Secs until next alert : <BR>Members 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : IFMIB<BR><BR>Detailed text (if any) 
follows:<BR>-------------------------------<BR>148.5.7.130:</P></DIV>
<DIV><FONT face=Arial color=#800080 size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#800080 
size=2>#####################################################</FONT></DIV>
<DIV><FONT face=Arial color=#ff0000 size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#ff0000 size=2>There´s a problem here, in the 
detailed text, theres no information of traps, 'LinkUp', 'LinkDown', 
'ColdStart'.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I hope you understand...</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV>----- Original Message ----- </DIV>
<BLOCKQUOTE dir=ltr 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 \
2px solid; MARGIN-RIGHT: 0px">  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=Bugge@bcbsmo.com href="mailto:Bugge@bcbsmo.com">Ralph.Bugg</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=andre@sysdata.com.br 
  href="mailto:andre@sysdata.com.br">'André Leão'</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Cc:</B> <A title=mon@linux.kernel.org 
  href="mailto:mon@linux.kernel.org">mon@linux.kernel.org</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, November 08, 2002 2:51 
  PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> RE: Hello !!! I would like a 
  help please .... it´s about snmp2montrap....</DIV>
  <DIV><FONT face=Arial size=2></FONT><BR></DIV>
  <DIV><SPAN class=240164717-08112002><FONT face=Arial color=#0000ff 
  size=2>Sorry I misunderstood you... What I told you to do would ignore the 
  messages what you really want to do is map it into&nbsp;a serivce watch 
  statement so you'll want it something like this added to the $Patterns 
  hash...</FONT></SPAN></DIV>
  <DIV><SPAN class=240164717-08112002><FONT face=Arial color=#0000ff 
  size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=240164717-08112002><FONT face=Arial color=#0000ff 
  size=2>---------------------</FONT></SPAN></DIV>
  <DIV><SPAN class=240164717-08112002><FONT face=Arial color=#0000ff 
  size=2><SPAN class=241022913-08112002><FONT face=Arial color=#0000ff 
  size=2>'\.iso\.org\.dod\.internet\.snmpV2\.snmpModules\.snmpMIB\.snmpMIBObjects\.snmpTraps\.linkDown' \
  =&gt; { </FONT></SPAN></FONT></SPAN></DIV>
  <DIV><SPAN class=240164717-08112002><FONT face=Arial color=#0000ff 
  size=2><SPAN 
  class=241022913-08112002>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
  group =&gt; 
  'IFMIB',<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  service =&gt; 
  'link',<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  status =&gt; 'ok',<BR>},<BR>
  <DIV><SPAN class=240164717-08112002><FONT face=Arial color=#0000ff 
  size=2><SPAN class=241022913-08112002><FONT face=Arial color=#0000ff 
  size=2>'\.iso\.org\.dod\.internet\.snmpV2\.snmpModules\.snmpMIB\.snmpMIBObjects\.snmpTraps\.linkUp' \
  =&gt; { </FONT></SPAN></FONT></SPAN></DIV>
  <DIV><SPAN class=240164717-08112002><FONT face=Arial color=#0000ff 
  size=2><SPAN 
  class=241022913-08112002>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
  group =&gt; 
  'IFMIB',<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  service =&gt; 
  'link,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  status =&gt; 'ok',<BR>},</SPAN></FONT></SPAN></DIV>
  <DIV><SPAN class=240164717-08112002><FONT face=Arial color=#0000ff 
  size=2><SPAN 
  class=241022913-08112002>----------------------</SPAN></FONT></SPAN></DIV>
  <DIV><SPAN class=240164717-08112002><FONT face=Arial color=#0000ff 
  size=2><SPAN class=241022913-08112002>Then in your mon.cf you can add a watch 
  for it something like</SPAN></FONT></SPAN></DIV>
  <DIV><SPAN class=240164717-08112002><FONT face=Arial color=#0000ff 
  size=2><SPAN 
  class=241022913-08112002>-----------------------</SPAN></FONT></SPAN></DIV>
  <DIV><SPAN class=240164717-08112002><FONT face=Arial color=#0000ff 
  size=2><SPAN class=241022913-08112002>watch&nbsp;IFMIB<BR>&nbsp; 
  service&nbsp;link<BR>&nbsp;&nbsp;&nbsp; description SNMP Link Status 
  traps<BR>&nbsp;&nbsp;&nbsp; period wd 
  {Sun-Sat}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; alert mail.alert&nbsp;bob 
  joe<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; upalert mail.alert -u bob 
  joe</SPAN></FONT></SPAN></DIV>
  <DIV><SPAN class=240164717-08112002><FONT face=Arial color=#0000ff 
  size=2><SPAN 
  class=241022913-08112002>-----------------------------</SPAN></FONT></SPAN></DIV>
  <DIV><SPAN class=240164717-08112002><FONT face=Arial color=#0000ff 
  size=2><SPAN class=241022913-08112002>Hope this 
  helps<BR></DIV></SPAN></FONT></SPAN></SPAN></FONT></SPAN></DIV>
  <BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
    <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
    size=2>-----Original Message-----<BR><B>From:</B> André Leão 
    [mailto:andre@sysdata.com.br]<BR><B>Sent:</B> Friday, November 08, 2002 
    11:18 AM<BR><B>To:</B> Ralph.Bugg<BR><B>Cc:</B> 
    mon@linux.kernel.org<BR><B>Subject:</B> RE: Hello !!! I would like a help 
    please .... it´s about snmp2montrap....<BR><BR></FONT></DIV>
    <DIV><FONT face=Arial size=2>
    <H1><!--X-TopPNI-End--><!--X-MsgBody--><!--X-Subject-Header-Begin--><!--X-Subject- \
Header-End--><!--X-Head-of-Message--><!--X-Head-of-Message-End--><!--X-Head-Body-Sep-Begin--><!--X-Head-Body-Sep-End--><!--X-Body-of-Message-->
  <TABLE width="100%">
      <TBODY>
      <TR>
        <TD style="BACKGROUND-COLOR: #ffffff" bgColor=#ffffff>
          <DIV><SPAN class=241022913-08112002><FONT size=2>Thank you for yor 
          suggestion, but i don´t know perl so much but i tried to do this and 
          it´s no working fine and, i would like to receive LinkUP 
          </FONT></SPAN></DIV>
          <DIV><SPAN class=241022913-08112002><FONT size=2>and LinkDown 
          Traps...</FONT></SPAN></DIV>
          <DIV><SPAN class=241022913-08112002><FONT 
          size=2><BR>&nbsp;</DIV></FONT></SPAN>
          <DIV><SPAN class=241022913-08112002><FONT face=Arial color=#0000ff 
          size=2>These traps are linkUp traps which get generated whenever an 
          interface comes up... I'm guessing that you are getting them when the 
          machines bootup.</FONT></SPAN></DIV>
          <DIV><SPAN class=241022913-08112002><FONT face=Arial color=#0000ff 
          size=2></FONT></SPAN>&nbsp;</DIV>
          <DIV><SPAN class=241022913-08112002><FONT face=Arial color=#0000ff 
          size=2>If you don't care about them what you could do is add this to 
          the $Patterns hash in snmp2montrap</FONT></SPAN></DIV>
          <DIV><SPAN class=241022913-08112002><FONT face=Arial color=#0000ff 
          size=2></FONT></SPAN>&nbsp;</DIV>
          <DIV><SPAN class=241022913-08112002><FONT face=Arial color=#0000ff 
          size=2><SPAN class=241022913-08112002><FONT face=Arial color=#0000ff 
          size=2>'\.iso\.org\.dod\.internet\.snmpV2\.snmpModules\.snmpMIB\.snmpMIBObjects\.snmpTraps\.linkUp' \
  =&gt; { </FONT></SPAN>ignore =&gt; 1},</FONT></SPAN></DIV>
          <DIV><SPAN class=241022913-08112002><FONT face=Arial color=#0000ff 
          size=2></FONT></SPAN>&nbsp;</DIV>
          <DIV><SPAN class=241022913-08112002><FONT face=Arial color=#0000ff 
          size=2>and that will silently ignore the linkUp traps (you'll probably 
          want to add linkDown traps as well)</FONT></SPAN><SPAN 
          class=241022913-08112002></DIV>
          <DIV><FONT face=Arial><BR><FONT color=#0000ff 
          size=2></FONT></FONT></DIV></SPAN>
          <BLOCKQUOTE dir=ltr>
            <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
            size=2>-----Original Message-----<BR><B>From:</B> André Leão 
            [mailto:andre@sysdata.com.br]<BR><B>Sent:</B> Tuesday, November 05, 
            2002 3:06 PM<BR><B>To:</B> mon@linux.kernel.org<BR><B>Subject:</B> 
            Hello !!! I would like a help please .... it´s about 
            snmp2montrap....<BR><BR></FONT></DIV>
            <DIV><FONT face=Arial size=2>
            <DIV><FONT face=Arial size=2>my snmptrapd.conf</FONT></DIV>
            <DIV><FONT face=Arial size=2>traphandle&nbsp;default 
            /etc/snmp2montrap</FONT></DIV>
            <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
            <DIV><FONT face=Arial size=2>When i receive&nbsp;any trap i always 
            receive&nbsp;something like this:</FONT></DIV>
            <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
            <DIV>Summary output &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : 
            /etc/snmp2montrap: Unrecognized SNMP 
            trap<BR><BR>Group&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
  : 
            default<BR>Service&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
  : default<BR>Time 
            noticed&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : Tue 
            Nov&nbsp; 5 17:43:09 2002<BR>Secs until next alert : <BR>Members 
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : default<BR><BR>Detailed text (if 
            any) 
            follows:<BR>-------------------------------<BR>=================<BR>148.5.7.130<BR>148.5.7.130<BR>system.sysUpTime.0 \
                
            13:9:39:02.30<BR>.iso.org.dod.internet.snmpV2.snmpModules.snmpMIB.snmpMIBObjects.snmpTrap.snmpTrapOID.0 \
                
            .iso.org.dod.internet.snmpV2.snmpModules.snmpMIB.snmpMIBObjects.snmpTraps. \
linkUp<BR>.iso.org.dod.internet.snmpV2.snmpModules.snmpCommunityMIB.snmpCommunityMIBObjects.snmpTrapAddress.0 \
                
            192.168.0.130<BR>.iso.org.dod.internet.snmpV2.snmpModules.snmpCommunityMIB.snmpCommunityMIBObjects.snmpTrapCommunity.0 \
                
            "public"<BR>.iso.org.dod.internet.snmpV2.snmpModules.snmpMIB.snmpMIBObjects.snmpTrap.snmpTrapEnterprise.0 \
  enterprises.3.1.1<BR>=================</DIV>
            <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
            <DIV><FONT face=Arial size=2>I receive traps of Windows 2000 server, 
            Linux, Cisco routers, Cyclades routers, Cisco Switch&nbsp;&nbsp;and 
            it´s the same thing.</FONT></DIV>
            <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
            <DIV><FONT face=Arial size=2>i hope you help me 
            please...</FONT></DIV>
            <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
            <DIV><FONT face=Arial size=2>Thank you so lot.</FONT>&nbsp;</DIV>
            <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
            <DIV>&nbsp;</DIV></FONT></DIV></BLOCKQUOTE></TD></TR></TBODY></TABLE></FONT></H1></DIV>
  <DIV><FONT face=Arial size=2>André Guizarde Q. de 
    Leão<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Suporte 
    Técnico<BR>Sysdata Sistemas Integrados<BR>&nbsp;&nbsp;&nbsp;&nbsp; (91) 3084 
    1610 (Direto)<BR>&nbsp;&nbsp;&nbsp;&nbsp; (91) 3084 1600 
    (Geral)<BR>&nbsp;&nbsp;&nbsp;&nbsp; 0300-789-2214 
</FONT></DIV></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>


_______________________________________________
mon mailing list
mon@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/mon

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic