Web application configuration
Configuration parameters of Saymon web application are stored in the configuration file /etc/saymon/saymon-client.yaml
.
Web application configuration files can also be stored in the following locations (in descending order of priority):
A lower priority configuration file is used if there is no higher priority configuration file. |
Below is a description of the configuration parameters that are stored in saymon-client.yaml
.
authentication
In this section, you can configure user authentication parameters.
authentication:
availableMethods:
- native
- keycloak
methodByDefault: keycloak
services:
keycloak:
configUri: keycloak_frontend.json
legacySupport: false
authentication.availableMethods
List of available user authentication methods:
-
"native" – username and password authentication
-
"keycloak" – authentication via Keycloak
By default "native" is used.
authentication.methodByDefault
Authentication method that is used by default.
By default "native" is used.
authentication.services.keycloak
Section with parameters for authentication via Keycloak.
authentication.services.keycloak.configUri
Name of the configuration file generated by the Keycloak server for the web application.
The file must be placed on the SAYMON server in the /etc/saymon directory.
|
comet
configuration
Section with system configuration window parameters.
configuration:
objectPermissions:
displayType: tree
configuration.objectPermissions
Object access settings.
defaultClassImage
documentation
This section allows to set links to SAYMON documentation.
documentation:
main:
root: https://wiki.saymon.info/display/SAYMONEN
ru: https://wiki.saymon.info
notificationTemplates:
root: https://wiki.saymon.info/display/SAYMONEN/Notification+templates
ru: https://wiki.saymon.info/pages/viewpage.action?pageId=45385140
restApi:
root: https://api.saymon.tech
geoMap
SAYMON allows to link objects to their geographical location and browse them on a map.
geoMap:
serverName: openstreetmap.org
initialPosition:
- 30.341306
- 59.930089
initialZoom: 8
geoMap.initialPosition
Initial position on the map [longitude, latitude].
By default Russia, Saint Petersburg.
geoMap.serverName
Name of the server used for displaying the map.
Default – openstreetmap.org.
It is also possible to use a local OSM server.
grid
This section allows to set a grid for objects alignment in the Standard view.
grid:
dim: 20
color: rgba(128, 128, 128, 0.3)
border: 4
gridView
This section contains parameters of displaying objects in the Grid view.
gridView:
cols: 6
colWidth: 240
rowHeight: 90
gutterSize: 5
history
This section contains parameters for displaying data on graphs, also some additional interface elements, used for plotting, can be activated here.
history:
slider: false,
downsampling:
- period: 1-hours
dsp: 15s-avg
- period: 1-days
dsp: 5m-avg
- period: 1-weeks
dsp: 1h-avg
- dsp: 1d-avg
modelChangeAnnotations: false
history.downsampling
Downsampling parameters.
incidents
In this section additional fields for the lists of active alarms and historical alarms can be set.
incidents:
additionalFields:
- properties.address,
additionalFieldNames:
- IP-address
languages
This section allows to control installed languages of web interface.
languages:
en:
short: us
long: English
ru:
short: ru
long: Русский
it:
short: it
long: Italiano
languages.<id>
Language identifier. Web interface is available on three languages:
-
en | English,
-
it | Italian,
-
ru | Russian.
languages.<id>.long
Language full name.
This name displayed in SAYMON current user menu with selecting an interface language.
languages.<id>.short
Identifier of the flag icon.
This icon displayed in SAYMON current user menu with selecting an interface language.
– es,
– gb,
– it,
– ru,
– us.
monitoring
This section contains parameters to hide unused monitoring probes from the interface.
monitoring:
standardTasks:
- ping
- snmpGet
tree
This section contains parameters for object tree.
tree:
filterSubmit: true
Other parameters
authEnabled
It activates manual registration for users;
-
false – registration is disabled,
-
true – registration is enabled.
Default – false – registration is disabled.
canEditObjectStyle
It allows to configure CSS styles for objects and links.
With the option is enabled, the section Parameters contains the subsection Style (of objects, links);
-
false – style configuration is disabled,
-
true – style configuration is enabled.
Default – true – style configuration is enabled.
collapseSections
-
false – sections are pinned, graphs are shown,,
-
true – sections are unpinned, graphs are hidden.
Default – true – sections are unpinned, graphs are hidden.
defaultPieChartColors
Default colors for pie chart (Circle).
defaultPieChartColors:
- "#a90329"
- "#3276b1"
- "#009F3D"
- "#9868B8"
- "#F2C001"
- "#FF742C"
- "#90574E"
- "#EB77BE"
- "#FF9796"
- "#AAC6E5"
- "#8BDE90"
- "#FDB5D0"
disabledSections
It allows to remove sections shown in the End view in the upper part of the screen.
The list of all available sections:
-
audit-log (Change log),
-
config-log (Configuration changes),
-
documents (Documents),
-
entity-incident-conditions (Alarm generation conditions),
-
entity-state-conditions (State change conditions),
-
history-graph (Graphs),
-
monitoring (Monitoring),
-
operations (Operations),
-
properties (Properties),
-
stat (Data),
-
stat-rules (Data forming rules),
-
state-history (State history),
-
state-triggers (Actions on state changes),
-
widgets (Widgets).
enableAnalytics
It enables analytics module;
-
false – analytics disabled,
-
true – analytics enabled.
Default – false – analytics disabled.
enableJiraTrigger
Enables creation of a Jira task on object’s state change.
-
false – functionality is disabled,
-
true – functionality is enabled.
Default – false – functionality is disabled.
enableConditionalIncidents
It enables incidents functionality;
-
false – functionality is disabled,
-
true – functionality is enabled.
Default – false – functionality is disabled.
enableSmsTrigger
It enables SMS-notifications;
-
false – SMS-notifications are disabled,
-
true – SMS-notifications are enabled.
Default – false – SMS-notifications are disabled.
enableSnmpTranslate
It enables translation of numeric SNMP OIDs to the text format;
-
false – translation is disabled,
-
true – translation is enabled.
Default – false – translation is disabled.
enableVoiceCallTrigger
It enables voice notifications;
-
false – voice notifications are disabled,
-
true – voice notifications are enabled.
Default – false – voice notifications are disabled.
forceEmptyStandardView
By default, when an object is selected, SAYMON shows its End view, even if the object does not contain other objects.
The list of Class IDs, for which SAYMON will display the Standard view if the selected object is empty, can be set in this parameter.
By default:
-
1 (Root),
-
3 (Host),
-
13 (Node),
-
43 (Dashboard).
hideConnectionStatusNotifications
It hides notifications about connection status with the Comet server;
-
false – notifications are displayed in the web interface,
-
true – notifications are displayed in the console.
Default – false – notifications about connection status with the Comet server are displayed in the web interface.
hideResponseErrorNotifications
It hides notifications about errors which can take place with sending automatic requests to the server;
-
false – notifications are displayed in the web interface,
-
true – notifications are hidden.
Default – false – notifications are displayed in the web interface.
The errors which take place with the participation of the user, for instance, saving any data in forms, will be displayed in the web interface in any case. |
millisecondMonitoring
It enables data update every millisecond.;
-
false – update is disabled,
-
true – update is enabled.
Default – false – update is disabled.
pollInterval
Time period between data requests from the REST server, if the connection between the client and the Comet server is unavailable (in milliseconds).
Default – 5000 – 5 seconds.
pollIntervalSocket
Time period between data requests from the Comet server, if the connection between the client and the Comet server is available (in milliseconds).
Default – 60000 – 1 minute.
statHistory
Show the "Stat history" button.
-
true – button is enabled,
-
false – button is disabled.
Server configuration parameter agent_stat must be enabled. |
By default – false
title
Header for tabs, and also the name, displayed at the top left corner of web interface.
Default – SAYMON.
themes
This parameter is used to configure SAYMON themes.
The theme Light is used by default. There is also the available theme Dark.
CSS files with the themes are located in the directory $SAYMON_ROOT/target/client/css
.
$SAYMON_ROOT
is the directory where SAYMON is installed.
themes:
default:
name: Light
dark:
name: Dark
useNaturalSort
It enables sorting objects with the javascript-natural-sort library:
-
false – objects are sorted with native functions of the browser,
-
true – objects are sorted with the javascript-natural-sort library.
Default – false – objects are sorted with native functions of the browser.
With set useNaturalSort = true performance of the web interface can degrade if there is huge number of objects in the system (100 000 and more). |