Table of Contents

Administration

Purpose

This section in accessible only for super admin user.

Getting started

Once done, you will be able to log into your first tenant and start configuring the monitoring.

Don't use the same DB name for Primary database and tenant database

Administration sections

Find here below a description of the different sections :

Settings Description
DB Connectors Configure connection parameters to the application databases
Tenants Configure tenants and tenant admin users
Settings Configure main application settings
Logs Download application logs
Updates Manage application updates
Collector updates Manage collector updates
Super user Manage super user properties
Statistics Check and investigate problems

Security

Sensitive data

Certificates

Generating a self signed certificate:

# Backup existing keystore
cp /opt/Pro.Monitor-Cockpit/certificates/.keystore /opt/Pro.Monitor-Cockpit/certificates/.keystore.backup
# Convert existing keystore to pkcs12
keytool -importkeystore -srckeystore /opt/Pro.Monitor-Cockpit/certificates/.keystore -destkeystore /opt/Pro.Monitor-Cockpit/certificates/.keystore -deststoretype pkcs12 -srcstorepass agentilKeyStore
# Generate private key and certificate : Use the actual server FQDN as Common Name in the formular.
openssl genrsa  -out domain.key 2048
openssl req -key domain.key -new -x509 -days 1800 -out domain.crt -addext "subjectAltName = DNS:HOSTNAME"
# or with IP 
openssl req -key domain.key -new -x509 -days 1800 -out domain.crt -addext "subjectAltName = IP:YOUR_IP"
# Bundle the key and certificate together
openssl pkcs12 -export -in domain.crt -inkey domain.key -name pro_monitor -out ks.p12
# Replace existing certificate
keytool -importkeystore -destkeystore /opt/Pro.Monitor-Cockpit/certificates/.keystore  -storepass agentilKeyStore -noprompt -alias pro_monitor -srckeystore ks.p12
# Restart Redpeaks service

Maintenance

The promonitor cockpit has been designed for a low maintenance, however, there are few aspects you need to pay attention

Database restore

In case of major problem with the application, you might need to restore the database.

Reset tenant

Conditions:

Probable cause:

Resolution:

Reset SuperAdmin password

Using JVM argument

Using reset password library

Reset all

Conditions
It is not possible to log into the application, even in superadmin mode.
Server log is showing serialization errors or SQL errors
Probable cause
The server configuration is corrupted
Resolution 1:
stop promonitor-service
Use a mysql client and remove the last line of table server_configuration
Depending on the timestamp of the line, you might remove several lines, up to a time you knew the configuration was working
Once done, start promonitor-service
Probable cause 2
The local server DB is corrupted
Resolution 2
stop promonitor-service
rename local db folder: [PROMONITOR_HOME]/db
start promonitor-service
register a new superadmin account
Recreate the SQL connector to the main DB
restart promonitor-service