Install and update extension (Alarms Plus)
To install or update the Alarms Plus extension, perform the following actions:
-
On the SAYMON server, go to the extension directory. By default it’s
cd /opt/saymon-extensions/
.cd /opt/saymon-extensions/
If this directory doesn’t exist, create it:
mkdir /opt/saymon-extensions/
You can configure the extension directory in the extensions parameter of the server configuration. -
Download the archive with extension:
-
Latest
-
Specific version
wget https://downloads.saymon.tech/extensions/cas-incidents/release/latest/cas-incidents.tar.gz -O cas-incidents.tar.gz
-
Select a version of the extension at https://downloads.saymon.tech/extensions/cas-incidents/release or using the following command:
curl -s https://downloads.saymon.tech/extensions/cas-incidents/release/ | grep 'release_' | awk -F'"' '{print $2}' | sed 's/\///' | sort -r
-
Set this version into an environment variable
CAS_INC_VERSION
:export CAS_INC_VERSION="release_6.0"
-
Download the extension:
wget https://downloads.saymon.tech/extensions/cas-incidents/release/$CAS_INC_VERSION/cas-incidents.tar.gz -O cas-incidents.tar.gz
-
-
Unpack the archive:
sudo tar -xvf cas-incidents.tar.gz
-
Copy the extension’s favicon up a level:
sudo cp ./cas-incidents/favicon/favicon.ico ./cas-incidents/favicon.ico
-
Change the owner of the directory an all of its files:
sudo chown root:root -R cas-incidents
-
Add read permissions to all extension files:
sudo chmod +r -R cas-incidents
-
If you are performing a fresh install of the extension or wish to reset the configuration file for the new version, copy the config file example. You can skip the following steps if you have existing configuration you want to keep.
sudo cp cas-incidents/config.js.example cas-incidents/config.js
-
Set the address of the WebSocket-server to your instance of the SAYMON server and the display name of the extension:
sudo nano cas-incidents/config.js
For example:
var config = { title: "Alarms Plus", ws_server: "https://saas.saymon.info:8091", }
After the installation is complete, the extension will be available at http://<server-address>/extensions/cas-incidents
. You can also open it from the extension list. You can open the extension list from the current user menu, submenu Extension.
If the extension works as intended, you can delete the downloaded archive:
sudo rm cas-incidents.tar.gz