Acceldata
Pulse

ADMON

Pulse containers and services are monitored via ADMON.

Configure the tools as a systemd service to keep them running in the event of a system reboot or crash.

You need a custom SMTP server credentials to set up the email notifications when a Pulse container or service crashes or does not operate for any reason.

Configure ADMON

Follow the steps to deploy ADMON to monitor the containers and services :

  1. Type the command into the $AcceloHome directory:
cd $AcceloHome
  1. Download the admon binary by using your credentials and adding the following command.
wget -np -l 1 --auth-no-challenge -O "admon" --http-user=<CUSTOMER_NAME> --ask-password https://ci.acceldata.dev/downloads/commons/admon
  1. Make the admon binary executable by adding the following command.
chmod +x <ACCELO_HOME>/admon
  1. Use the following command to generate the admon configuration file.
./admon
a configuration file is generated in the path: <ACCELO_HOME>/config/admon.yml>
  1. Edit the file in the path, <ACCELO_HOME>/config/admon.yml> by comparing the list of containers running on the host.

Note

Replace all the instances of the <> properties with the appropriate values.

network: ad-default
apmServerIP: <PULSE_UI_SERVER_IP>
containers:
- ad-director_default
- ad-graphql_default
- ad-connectors_default
- ad-sparkstats_default
- ad-alerts_default
- ad-streaming_default
- ad-tsdb_default
- ad-db_default
smtp:
username: <sender_email_id>
password: <password>
server: <server>
port: <port>
sender: <sender_email_id>
senderName: <sender_user_name>
receivers:
- <accel_data_user_email_address>
- <customer_email_address>
emailSubject: '[<cluster_name> - ALERT] AccelData APM Containers Not Running'
authEnabled: true
slackTeamURL: ""
CheckInterval: 60
SnoozeTime: 600
  1. Create an new file in the path /etc/systemd/system/admon.service with the following contents:
[Unit]
Description=AccelData AdMon Daemon
Wants=syslog.target network.target
After=syslog.target network.target
[Service]
Type=simple
PIDFile=/run/admon.pid
ExecStartPre=/usr/bin/test -f /usr/bin/docker
ExecStart=<ACCELO_HOME>/admon -r -c <ACCELO_HOME>
ExecStop=/bin/kill -9 $MAINPID
TimeoutStopSec=10
Restart=always
RestartSec=10
[Install]

Note

Replace all the instances of the <> properties with the appropriate values.

  1. Run the commands to start and enable admon as a systemd service:
systemctl daemon-reload
systemctl start admon
  1. Check if the status of the service is Up and Running. Now use the following command to enable auto start of the service on server reboots.
systemctl enable admon
systemctl status admon
You have now successfully installed ADMON and configured it monitor the services and containers.

Stop ADMON Service

To stop the ADMON service run the following command.

systemctl stop admon