SNMP configuration

Hi, 

After install a 9.26 version of BSM, we are going to configure the SNMP traps. We have the MIB file ready but we dont know how to load it in the BSM and we are not finding documentation clear about that.

Could you please guide us about how to do and if its necessary anything more ?

 

Regards

Parents Reply Children
  • Hi, 

     

    Thanks for your reply.

    I've read this part of the guide but I have some doubts.

     To configure the alerts MIB in your SNMP management console:
    a. Copy the <HPBSM root directory on the Data Processing Server>\SNMP_
    MIBS\CIAlerts.mib file from the HP Business Service Management Documentation and
    Utilities DVD to your SNMP management console.
    b. To view the alerts varbinds, use your SNMP management console's MIB browser. For a list of
    varbinds and their descriptions, see "Alerts MIB Varbinds" below.
    c. Using your SNMP management console's event configuration utility, configure the notification
    content and method for the various alert types. For a list of alert types and their corresponding
    SNMP-specific codes, see "SNMP-Specific Codes" below.

    I have ready EBAlerts.mib file, can i use this? 

    How i can use the SNMP management console? Where is it? 

    Regards. 

  • Hi Adr,

    you didn't tell us yet what you wanna do with the MIB and the SNMP traps.

    The "thing" you send the SNMP trap has to receieve the SNMP trap.
    In the documentation it is assumed that this receiver is a piece of software which offers a SNMP management console,
    that's where you need to configure what it should do in case of an incomping SNMP trap from BSM.
    Typical products are NNMi or NetCool and many others.

    BSM comes with a pre-defined MIB file (CIAlerts.mib) for CI Status alerts.

    You are talking about EBAlerts.mib, which is a similar file, but used with EUM alerts,
    see
    BSM Application Administration Guide, Chapter 79: End User Management Alerts Administration

    > I have ready EBAlerts.mib file, can i use this?
    BSM comes with a predefined one, as explained above.
    As long as you follow the varbinds as listed in the section
    Alerts MIB Varbinds
    I think that you can use yours as well.

    BSM uses the OID as listed in the varbinds, for example
      1.3.6.1.4.1.5233.4.2 for the name of the alert
    no matter what you do to the EBAlerts.mib file, it will always use
      1.3.6.1.4.1.5233.4.2 for the name of the alert
    the file itself is only useful for consumers of the trap, like NNMi.
    You need to import / compile / load it it into the SNMP Management Console to enable it to translate the OID to the real names behind it.

    Greetings
    Siggi

  • Hi, 

    Sorry for the lack of information. We need to send traps to Netcool when the transaction fail. 

    We were thinking that maybe we needed to import/load the MIB file because we can't open the dialog in the EUM alert in order to enter the IP of the destination (Netcool). Please, check the attached images. You can see the error in SNMP image.

    In Netcool side everything is ready.

    Regards

  • Hi Adr,

    thanks for the clarification.
    As far as I know the .mib file is not used actively within BSM, all the information (OID and alike) is hard-coded.
    You say that you cannot open the dialog in the EUM alert in order to enter the IP of the destination (Netcool).
    What happens when you click in Definitions Details on "specified host address(es)?
    I cannot see an error ...

    It should open a dialog like this one:

    Greetings
    Siggi

  • Hi,

    This is the problem, nothing happen. The dialog doesn't appear.

    Regards

  • Aaah, we finally reached the point of the problem ;-)

    As this is BSM 9.26, give it a try with IE11, FF or Chrome.

    Greetings
    Siggi

  • Hi,

    We already tried with Firefox, and we have the same issue.

    regards

     

  • Hi Adr,

    I had a look at the code but couldn't find any DEBUG logging statements, so I actually cannot find out what logfile to look at,
    but I found one interesting thing I forgot about initially:
    ..
    boolean contentEnabled = authentication.isSNMPPermitted() && !storyPanel.isViewOnly();
    ..

    Does your user have SNMP permission assigned, as described in the manual:
    ..
    1. Set up the appropriate administrative privileges
    You can set the appropriate administrative privileges to create a command that can be attached to
    an alert scheme and run when the alert it is attached to is triggered.
    To set the appropriate administrative privileges:
    a. Select Admin > Platform > Users and Permissions > User Management.
    b. Select the appropriate user in the left column, and click the Permissions tab.
    c. Select the Platform context, and under Business Service Management, click Send SNMP
    trap.
    d. Click the Operations tab, and select the Change option.
    ..

    did you try to reset the Infrastructure Settings
    Default SNMP target address
    and
    Legacy SNMP target address
    back to the default and try again?

    Did you already try to setup another alert and try it there?

    If this all doesn't help, check out the logs for any related looking errors (like unable to read setting, or a null pointer exception) or alike.

    Greetings
    Siggi

  • Hi, 

    Thank you very much for response. 

    I worked as admin, so I have all permission assigned. 

    I have reset  the Infrastructure Settings, but the issue remains. 

    I have checked all logs but there is not related errors.

    Regards. 

     

     

  • Hi again, 

    when I click in "specified host address" appears an exception in Java Console:

    Exception in thread "AWT-EventQueue-2" java.util.MissingResourceException: Can't find bundle for base name AppServer/resources/AlertsAdminServerResources, locale en_GB
    at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1499)
    at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1322)
    at java.util.ResourceBundle.getBundle(ResourceBundle.java:721)
    at com.mercury.am.alerts.admin.ui.server.AlertsAdminServerImpl.getText(AlertsAdminServerImpl.java:514)
    at com.mercury.am.alerts.admin.ui.server.AlertsAdminServerImpl.getGlobalSnmpv3UserName(AlertsAdminServerImpl.java:331)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    ...

     

    Also in evb_alerts_ui. log we have :

     

    2016-09-22 14:10:46,847 [ajp-/127.0.0.1:8009-2] (AlertsAdminServerImpl.java:330) ERROR - Customer '1': Failed to get global SNMP v3 user name.
    com.mercury.infra.setting.utils.SettingException: No such setting for customerID:1 context:alertengine setting:settings.global.snmp.event.user.name
    at com.mercury.infra.setting.base.settingApi.SettingServiceAPIImpl.getVariablePerCustomer(SettingServiceAPIImpl.java:205)