Add URL's to Smarts client tool sub menu in the notification dashboard
search cancel

Add URL's to Smarts client tool sub menu in the notification dashboard

book

Article ID: 333330

calendar_today

Updated On:

Products

VMware Smart Assurance

Issue/Introduction

  • As the default menu for Client Tools only includes a URL to open M&R, the ability to add in custom URL's is fantastic. 
  • For example: Lets say you want to add in a link to another web page that contains links to web/config pages for devices etc.  
  • You see an interface is showing as down, you right click on the alert, choose the menu option to launch the config page and you can make your config changes/ammendments immediatley, without having to navigate away from the current task.
  • When navigating to Operations > Network > Notifications within the Watch4net GUI. Notifications from Smarts can be viewed within the M&R GUI.
  • The ability to right-click on an event provides a menu with further options.
  • Additional options can be added to the Client Tools sub-menu.

    Screenshot:



Environment

Watch4net | M&r - 7.x

Resolution

  • To add additional URL's to the Client Tools sub-menu the following file needs to be edited:
/APG_HOME/Custom/WebApps-Resources/Default/conf/SmartsTools.json
  • The example text below shows the default "Launch EMC M&R" option and the Google option which has been added:
"tools": {
    "tool": [
      {
        "name": "Launch EMC M&R",
        "url": "/APG/#/0"
      },
        {
        "name": "<website name>",
        "url": "<url of the website?
      }
    ]
  }
  • Once the required options have been added and the file saved, the Tomcat service must be restarted for changes to take effect.

  • To restart the Tomcat service in a Linux environment:

    Run the following command:
/APG_HOME/bin/manage-modules.sh service status all
  • You will see an output with all APG services installed on the host. Take note of the instance name of the Tomcat service, in this case it is "Default"
* Checking 'tomcat Default'...                           [ running ]
  • Run the following command:
/APG_HOME/bin/manage-modules.sh service restart tomcat Default
  • This will restart the tomcat service.