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
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 |
[PROMONITOR_HOME]/certificates/.keystore
keytool -import -trustcacerts -keystore [PROMONITOR_HOME]/certificates/.keystore -storepass agentilKeyStore -noprompt -alias yourAliasName -file [PROMONITOR_HOME]/certificates/[certificate.cer]
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
The promonitor cockpit has been designed for a low maintenance, however, there are few aspects you need to pay attention
In case of major problem with the application, you might need to restore the database.
mysql -u root -p database_name < database_name.sql
Conditions:
Probable cause:
Resolution:
tenant_configuration
systemctl stop promonitor-cockpit
-DsuperAdminPassword=“NewPass”
systemctl start promonitor-cockpit
systemctl stop promonitor-cockpit
systemctl start promonitor-cockpit
systemctl stop promonitor-cockpit
db
folder : cp -r db db.backup
java -jar cockpit-reset-password.jar superadmin [newPassword]
systemctl start promonitor-cockpit
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 |