<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    Neil,
    <blockquote
cite="mid:1BF7D566CC4F514288455EF3C9B7CF83072BF996@EXSVIRTUAL.express.findel.co.uk"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <meta name="Generator" content="Microsoft Word 11 (filtered
        medium)">
      <style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Segoe UI";
        panose-1:2 11 5 2 4 2 4 2 2 3;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
      <div class="Section1">
        <p class="MsoNormal"><font size="2" face="Arial"><span
              style="font-size: 10pt; font-family: Arial;">Hi all,<o:p></o:p></span></font></p>
        <p class="MsoNormal"><font size="2" face="Arial"><span
              style="font-size: 10pt; font-family: Arial;"><o:p> </o:p></span></font></p>
        <p class="MsoNormal"><font size="2" face="Arial"><span
              style="font-size: 10pt; font-family: Arial;">I’m trying to
              get SNMP Traps from VMWare showing up in
              Xymon.<o:p></o:p></span></font></p>
        <p class="MsoNormal"><font size="2" face="Arial"><span
              style="font-size: 10pt; font-family: Arial;"><o:p> </o:p></span></font></p>
        <p class="MsoNormal"><font size="2" face="Arial"><span
              style="font-size: 10pt; font-family: Arial;">I think the
              issue is with the trap format from VMWare and I
              suspect I may need to tweak my snmptt.conf file for this.
              <o:p></o:p></span></font></p>
        <p class="MsoNormal"><font size="2" face="Arial"><span
              style="font-size: 10pt; font-family: Arial;"><o:p> </o:p></span></font></p>
        <p class="MsoNormal"><font size="2" face="Arial"><span
              style="font-size: 10pt; font-family: Arial;">I have
              attached my snmptt.conf file and here is a an example
              of what I am seeing in my /var/log/messages file. (Text in
              italics has replaced
              what actually shows in the log for security reasons)<o:p></o:p></span></font></p>
        <p class="MsoNormal"><font size="2" face="Arial"><span
              style="font-size: 10pt; font-family: Arial;"><o:p> </o:p></span></font></p>
      </div>
    </blockquote>
    It's not clear that snmptt is actually being invoked.<br>
    <br>
    In my logs I see each trap twice - once the raw snmptrapd log and
    once processed by snmptt - note that snmptt can format a message
    however it likes, discarding trap params according to the FORMAT
    statement (which is static text in the example below - depends what
    snmpttconvertmib finds by default)<br>
    <br>
    <tt>Jul 10 07:45:45 loghost snmptrapd[5438]: 2011-07-10 07:45:45
      tempmon [10.x.x.x] (via UDP: [10.x.x.x]:51794) TRAP, SNMP v1,
      community xxx#012#011PowerNet-MIB::apc Enterprise Specific Trap
      (PowerNet-MIB::apcEnvLTIncTempRateViolationCleared) Uptime: 24
      days, 18:57:56.83#012#011PowerNet-MIB::mtrapargsString02.0 =
      STRING: "XXXXXXXX"#011PowerNet-MIB::mtrapargsString03.0 = STRING:
      "Main Module"#011PowerNet-MIB::mtrapargsInteger04.0 = INTEGER:
      0#011PowerNet-MIB::mtrapargsInteger.0 = INTEGER:
      1#011PowerNet-MIB::mtrapargsString04.0 = STRING: "Temp Sensor
      MM:1"#011PowerNet-MIB::mtrapargsString.0 = STRING: "MM: Short-term
      increasing temperature rate of change violation cleared for 'Temp
      Sensor MM:1' at 'Unknown'."<br>
      Jul 10 07:45:46 loghost snmptt[0]:
      PowerNet-MIB::apcEnvLTIncTempRateViolationCleared INFORMATIONAL
      "Status Events" tempmon - APC ENV: Long-term inc. temp rate
      violation cleared.<br>
    </tt><br>
    <blockquote
cite="mid:1BF7D566CC4F514288455EF3C9B7CF83072BF996@EXSVIRTUAL.express.findel.co.uk"
      type="cite">
      <div class="Section1">
        <p class="MsoNormal"><font size="2" face="Arial"><span
              style="font-size: 10pt; font-family: Arial;">Jul  8
              11:08:02 <i><span style="font-style: italic;">hostname</span></i>
              snmptrapd[7399]: 2011-07-08 11:08:02 <i><span
                  style="font-style: italic;">full
                  host name</span></i> [<i><span style="font-style:
                  italic;">IP ADDRESS</span></i>]
              (via UDP: [<i><span style="font-style: italic;">IP ADDRESS</span></i><o:p></o:p></span></font></p>
        <p class="MsoNormal"><font size="2" face="Arial"><span
              style="font-size: 10pt; font-family: Arial;">]:60701)
              TRAP, SNMP v1, community
              public        SNMPv2-SMI::enterprises.6876.50
              Enterprise Specific Trap (201) Uptime: 28 days, 20:3<o:p></o:p></span></font></p>
        <p class="MsoNormal"><font size="2" face="Arial"><span
              style="font-size: 10pt; font-family: Arial;">3:40.64        
SNMPv2-SMI::enterprises.6876.50.301
              = STRING: "At vm"  
              SNMPv2-SMI::enterprises.6876.50.302 = STRING: "
              "       SNMP<o:p></o:p></span></font></p>
        <p class="MsoNormal"><font size="2" face="Arial"><span
              style="font-size: 10pt; font-family: Arial;">v2-SMI::enterprises.6876.50.303
              = STRING: "<i><span style="font-style: italic;">host name</span></i>"
              SNMPv2-SMI::enterprises.6876.50.304 = STRING: "Error
              (Red)"     SNMPv2-SMI::<o:p></o:p></span></font></p>
        <p class="MsoNormal"><font size="2" face="Arial"><span
              style="font-size: 10pt; font-family: Arial;">enterprises.6876.50.305
              = STRING: "Error (Red)"
              SNMPv2-SMI::enterprises.6876.50.306 = STRING: "Heartbeat
              is missing for VM
              - (Heartb<o:p></o:p></span></font></p>
        <p class="MsoNormal"><font size="2" face="Arial"><span
              style="font-size: 10pt; font-family: Arial;">eat stopped)"<o:p></o:p></span></font></p>
        <p class="MsoNormal"><font size="2" face="Arial"><span
              style="font-size: 10pt; font-family: Arial;"><o:p> </o:p></span></font></p>
        <p class="MsoNormal"><font size="2" face="Arial"><span
              style="font-size: 10pt; font-family: Arial;"><o:p> </o:p></span></font></p>
      </div>
    </blockquote>
    The trap above is a vpxdTrap which according to the definition has 6
    parameters - they seem to match your trap above.<br>
    <tt>#<br>
      EVENT vpxdTrap .1.3.6.1.4.1.6876.50.0.201 "Status Events" Normal<br>
      FORMAT $*<br>
      SDESC<br>
      <br>
      This trap is sent when entity status changed.<br>
      Variables:<br>
        1: vpxdTrapType<br>
        2: vpxdHostName<br>
        3: vpxdVMName<br>
        4: vpxdNewStatus<br>
        5: vpxdOldStatus<br>
        6: vpxdObjValue<br>
      EDESC</tt><br>
    <blockquote
cite="mid:1BF7D566CC4F514288455EF3C9B7CF83072BF996@EXSVIRTUAL.express.findel.co.uk"
      type="cite">
      <div class="Section1">
        <p class="MsoNormal"><font size="2" face="Arial"><span
              style="font-size: 10pt; font-family: Arial;">From what I
              can see it appears that VMWare sends multiple
              OID’s in the same trap. <o:p></o:p></span></font></p>
        <p class="MsoNormal"><font size="2" face="Arial"><span
              style="font-size: 10pt; font-family: Arial;"><o:p> </o:p></span></font></p>
        <p class="MsoNormal"><font size="2" face="Arial"><span
              style="font-size: 10pt; font-family: Arial;">Has anybody
              got this working or can suggest a solution?<o:p></o:p></span></font></p>
        <p class="MsoNormal"><font size="2" face="Arial"><span
              style="font-size: 10pt; font-family: Arial;"><o:p> </o:p></span></font></p>
      </div>
    </blockquote>
    For a start, verify that snmptt is actually working.<br>
    <br>
    David.<br>
    <br>
    <pre class="moz-signature" cols="72">-- 
David Baldwin - IT Unit
Australian Sports Commission          <a class="moz-txt-link-abbreviated" href="http://www.ausport.gov.au">www.ausport.gov.au</a>
Tel 02 62147830 Fax 02 62141830       PO Box 176 Belconnen ACT 2616
<a class="moz-txt-link-abbreviated" href="mailto:david.baldwin@ausport.gov.au">david.baldwin@ausport.gov.au</a>          Leverrier Street Bruce ACT 2617
</pre>
  <br>
<hr>
Keep up to date with what's happening in Australian sport visit <a href="http://www.ausport.gov.au">www.ausport.gov.au</a>
<br><br>
<font size="-2" face="arial">This message is intended for the addressee named and may contain confidential and privileged information.  If you are not the intended recipient please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful.  If you receive this message in error, please delete it and notify the sender.</font>
<hr>
</body>
</html>