Authors: Michelle McCausland
As of writing 22/03/23 - Making a connection between a user and widget visibilities as outlined in this wiki is not possible. You can only hide widgets connected to an ems_profile. If you want a collection of users to have certain widgets hidden, you will need a new Visibility with a new SNMP Manager profile in user profile which is tied to a new EMS profile for these users. If you are creating a new EMS profile, its recommended to clone an existing one via the UI of SNMP Manager. Another thing to note is, if you remove a widget that occupies one half of the width of the screen and do not remove its neighbour, it seems to hit a bug and remove all widgets.
EMS Widgets are configurable per user. Currently the process is a little involved, as we do not yet have a drag and drop system, so hopefully this page will be able to guide you through the process of widget configuration for EMS users.
Essentially the widgets in the EMS are configured to work within a grid like structure that is defined in the EMS View Layout section. Widgets are highly configurable per user and per view.
The controllers/ database tables we work with for this task are (all in snmp_manager):
I would recommend taking a look at each of these items both in the database and via the front-end view to see how they link together.
The ems_view_layout is linked to the shiro_user based on the user_id (SELECT * FROM snmp_manager.ems_view_layout where user_id = <USERID>;)
The ems_widget_permission is then linked to the ems_view_layout based on the view_layout_id (SELECT * from snmp_manager.ems_widget_permission where view_layout_id = <IDOFVIEWLAYOUT>;)
The Element Type refers to the level that this view is for e.g. overview, parent, cluster, parent, child.
Viewable - This option determines whether this view is visible to the user or not.
The Column Count refers to how many columns wide the screen will be.
EMS Button Exclusions This section allows you to configure what buttons to exclude from a view e.g. Ticket History Button, Recent Maintenance Button etc.
EMS Widget Permissions This section contains the list of widgets that are configured to appear in the view. Each of these widget permissions can be configured by clicking on them and updating the values accordingly (See EMS Widget Permissions Controller Section).
User - Here you will see which user this widget view is associated with.
NOTE: Ensure to sanity check all queries before running against a database to ensure correct!