Skip to main content

Enabling Health Agent on Observer Server

Objective​

To enable and configure the Health Agent on the Observer server by updating configuration files and service settings, ensuring proper communication with the Primary App server.

Prerequisites​

  • Motadata ObserveOps version should be 8.2.0 and above.
  • Ensure that backup of all files mentioned in this SOP is taken.
  • Verify Hardware sizing should be 8GB memory and 8Core CPU.
  • All servers must be up and running, including the Primary App server.

Procedure​

Step 1: Stop the Motadata Observer Service​

To stop the Motadata observer service execute the following command:

sudo service motadata-observer stop

Step 2: Update IP/FQDN Configuration​

Modify the following keys in agent.json and motadata.json located at /motadata/motadata/config/:

"event.publisher.host": "VIP/FQDN"
"event.subscriber.host": "VIP/FQDN"

Step 3: Update the Observer Service File​

Edit the following service file:

/usr/lib/systemd/system/motadata-observer.service

Now, add the below Environment Variables in the service file:

Environment="PATH=/motadata/python-embedded/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/motadata/go/bin"                           "PYTHONPATH=/motadata/motadata" "GOROOT=/motadata/go" "GOPATH=/motadata/gopath" "GO111MODULE=off" "GOCACHE=/root/.cache/go-bu                          ild" "GOTMPDIR=/motadata/tmp"
Environment="LD_LIBRARY_PATH=/motadata/motadata/"
Environment=NODE_OPTIONS="--max-old-space-size=8192"

Then, replace the below entities in the same service file:

First, ExecStart

Replace: ExecStart=/motadata/motadata/motadata-observer OBSERVER this

With: ExecStart=/motadata/motadata/motadata-managerthis.

Then, Replace TimeoutSec

Replace: TimeoutSec=10

With: TimeoutSec=360

After saving the above changes in the service file, run the below Command:

sudo systemctl daemon-reload

Step 4: Start the Service​

At the end, start the service using the below command:

sudo service motadata-observer start

Expected Outcomes​

  • Health Agent is enabled on the Observer server.
  • Observer communicates correctly using VIP/FQDN.
  • motadata-manager process is running successfully.