How the SNMP EMANATE Master Agent service works  Configuring clusters to publish SNMP alert traps

Chapter 4: Monitoring e-Biz Impact Events

Pushing traps to a custom port and machine, or multiple machines

This section explains how to enter a custom port number and multiple IP addresses for SNMP trap publication.

  1. On the Windows machine where the e-Biz Impact client is installed, go to C:\WINNT\system32\drivers\etc\ and open the services file in a text editor.

  2. Find this line:

    snmptrap     162/udp     snmp-trap     #SNMP trap
    

    and change “162” to the number of the custom port used for the trap service.

  3. Save the services file and close the text editor.

  4. Restart the Windows machine.

  5. Temporarily stop the SNMP EMANATE Master Agent service:

    On Windows:

    1. Select Start | Settings | Control Panel | Administrative Tasks | Services.

    2. In the Services window, find the SNMP EMANATE Master Agent service in the right pane.

    3. Right-click the service and select Stop. Leave the Services window open but minimized.

    On UNIX:

    1. Verify that the snmpdm process is stopped. In a terminal window, go to the directory where the e-Biz Impact server is installed and enter the following command:

      $ps
      

      You should see a list of processes output to the screen similar to this:

      PID     TTY       TIME     COMMAND 
      
      8347    rt021a0   0:03     ksh 
      
      8376    rt021a0   0:06     ps 
      
    2. If any process beginning with “snmpdm” is running, write down the process identification number (PID) for that process, then kill the process:

      $kill -2 PID
      

      where PID is the process identification number of the snmpdm process.

  6. Create a backup copy of the snmpd.cnf configuration file, which is located in x:\Sybase\ImpactServer-5_4\snmp\srconf\agt on Windows and in ~/Sybase/ImpactServer-5_4/snmp/srconf/agt on UNIX (where “x” and “~” is the directory or system on which the e-Biz Impact Server is installed)

  7. Open snmpd.cnf in a text editor.

    NoteBecause of default file properties, on Windows the snmpd.cnf file may display as a shortcut, may have a description of Speed Dial, and may not display an extension. To open the file in a text editor, right-click the file and select Open With, select a text editor, then click OK.

  8. To specify a custom port number:

    1. Go to the section that begins with:

      #Entry type: snmpTargetAddrEntry
      
    2. In this section only, find each occurrence of:

      snmpUDPDomain 127.0.0.1:0
      
    3. Change each entry you find to:

      snmpUDPDomain 127.0.0.1:<custom_port_number>
      

    where <custom_port_number> is the custom port number you entered in the services file in step 3.

  9. To publish traps to a different IP address:

    1. Go to the section that begins with:

      #Entry type: snmpTargetAddrEntry
      
    2. In this section only, find each occurrence of:

      snmpUDPDomain 127.0.0.1:0
      
    3. Change each entry you find to:

      snmpUDPDomain <Event_Monitor_host_IP>:0
      

      where <Event_Monitor_host_IP> is the IP address of the host that runs the Event Monitor.

    WARNING! Do not use the machine name or “localhost.” You must use the IP address.

  10. To publish traps to multiple machines:

    1. Go to the section that begins with:

      #Entry type: snmpTargetAddrEntry
      
    2. Copy entry 31:

      snmpTargetAddrEntry  31 snmpUDPDomain 127.0.0.1:0 100 3 Console \
      
           v1ExampleParams nonVolatile 255.255.255.255:0 2048
      
    3. Paste the copied entry above entry 31.

    4. Change “31” to “30” and change 127.0.0.1 to the additional IP address.

    5. Repeat this process and create a new entry (29, 28, and so on) for each additional machine on which you have an Event Monitor installed.

    6. Go to the section that begins with:

      #Entry type: snmpNotifyEntry
      
    7. Create an entry for each new entry you created in steps “a” through “e.” For example, if you created new entries 30, 29, and 28, you would create these entries in the #Entry type: snmpNotifyEntry section above entry 31:

      snmpNotifyEntry 28 Console trap nonVolatile
      
      snmpNotifyEntry 29 Console trap nonVolatile
      
      snmpNotifyEntry 30 Console trap nonVolatile
      

      WARNING! Creating too many new entries can have a significant impact on e-Biz Impact performance.

  11. Save the snmpd.cnf file and close the text editor.

  12. Restart the SNMP EMANATE Master Agent service on Windows or UNIX.





Copyright © 2005. Sybase Inc. All rights reserved. Configuring clusters to publish SNMP alert traps

View this book as PDF