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
  • Hi Adr,

    is this about BSM sending an alert via SNMP trap to another system?

    Then please check out
    BSM Application Administration Guide
    Chapter 9: CI Status Alerts Administration

    If you plan a different thing, please explain in more detail.

    Greetings
    Siggi

  • 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. 

  • 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)

  • Hi Adr,

    thanks for your last reply and this information:

    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)
    ...

    This shouldn't (!) be a problem.
    BSM looks for the file <HPBSM>\AppServer/resources/AlertsAdminServerResources_en_GB.properties (based on the locale settings of your browser), which doesn't exist:

    C:\HPBSM\AppServer\resources>dir AlertsAdminSer*
    09/07/2015 07:57 PM 2,070 AlertsAdminServerResources.properties
    09/07/2015 07:57 PM 2,399 AlertsAdminServerResources_de.properties
    09/07/2015 07:57 PM 2,070 AlertsAdminServerResources_en.properties
    09/07/2015 07:57 PM 2,526 AlertsAdminServerResources_es.properties..
    ..
    if BSM cannot find the file matching the locale it is supposed to fallback and use AlertsAdminServerResources.properties.
    You can of course copy
      AlertsAdminServerResources.properties
    to
      AlertsAdminServerResources_en_GB.properties
    and try again, but I actually don't think that this will make a difference.

    The other error seems to be more significant:

    evb_alerts_ui.log (I've never seen this logfile before!!)
    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)

    No idea if this can cause the GUI not to come up, but you can cure this easily by going to
    BSM -> Admin -> Platform -> Setup and Maintenance -> Infrastructure Settings
    Foundations : Alerting

    and then under
    Alerting - Triggered Alerts
    fill in somethiung useful for all the SNMP-related fields:
    Alerting - Triggered alerts

    Default SNMP v3 authentication passphrase
    <something (stars)>
    Default SNMP v3 authentication protocol
    No authentication
    Default SNMP v3 privacy passphrase
    <something (stars)>
    Default SNMP v3 privacy protocol
    No privacy
    Default SNMP v3 user name
    HPBSMUSER

    see my - out of the box - settings under each line.

    On my box
    "Default SNMP v3 user name" is set to "HPBSMUSER".
    If you specify something here, it might do the trick already.
    The GUI will tell you if a restart of BSM is required after chaning that variable.

    Greetings
    Siggi

  • Hi ,

    Many thanks for you continuos help. We dont have the options you said. Attached you can check what we have.

     

    Regards

  • Hi Adr,

    what you illustrate is the reason for the issue.
    You should see the same settings under "Alerting - Triggered alerts" as I can see on my box:

    All the SNMP v3 Settings are missing (Default and Legacy), leading to the problem that BSM fails when it tries to access the setting via the internal key,
    like as "Default SNMP v3 user name" == "global SNMP v3 user name" via setting for customerID:1 context:alertengine setting:settings.global.snmp.event.user.name

    I checked around and found the default settings in the file <HPBSM>\conf\settings\alertengine.xml
    ..
    <setting nameResource="settings.default.snmp.user.name.name" name="settings.default.snmp.user.name" displayInUI="true" descResource="settings.default.snmp.user.name.desc" sectionResource="sections.alert.actions" refreshRate="Minutes" refreshRateValue="1" settingType="customer">
    <value type="string"> HPBSMUSER </value>
    </setting>
    ..
    <setting nameResource="settings.global.snmp.event.user.name.name" name="settings.global.snmp.event.user.name" displayInUI="true" descResource="settings.global.snmp.event.user.name.desc" sectionResource="sections.alert.actions" refreshRate="Minutes" refreshRateValue="1" settingType="customer">
    <value type="string"> HPBSMUSER </value>
    </setting>
    ..

    Can you please verify if you can find at least these two entries in this file.
    If they are there, then we need to find a way to tell BSM to read it and to add the entries to the database.
    If they are not in, the file needs to be replaced with a good one, and re-read by BSM (as above).
    I guess that the second case applies to your system.

    Another option would be to manually add these entries to the BSM Management database table,
    while BSM keeps the default Infrastructure Settings "somewhere" (I assume in the corresponding xml files) and only keeps changes in the SETTING_PARAMETERS table.

    Greetings
    Siggi

    P.S.: What did you do to your system? This is really, really strange!

  • Hi, 

    thank you very much for your help. 

    You are right, we don't have those two entries in this file. 

    We found that maybe we have to install IP2 patch (you can see in file attached).

    Do you think that it can fix the issue? 

    Regards

     

  • Verified Answer

    HI ADR,

    I had the same issue with my BSM 9.26.

    Please  follow the below steps on DPS server

    1. Backup HPBSM\conf\settings\alertengine.properties and

                     HPBSM\conf\settings\alertengine.xml files       

           2.Stop BSM

           3. Copy the files that attached in the 112524-fix files.zip to HPBSM\conf\setting

           4. Start the BSM.

    Click to download: http://www.filedropper.com/112524-fixfiles

    Thanks.

    Praveen

Reply Children