Incorrect services owners for '/opt/monit/bin/monit(monit)'
Symptom
The following errors appear in the Diagnostics report:
1 ./tasks/PTA/task015. sh - [P015] Verifying PTA services... [ FAIL ] (Watchdog is not running, run 'service appmgr start' command)
1 ./tasks/PTA/task016. sh - [P016] Verifying PTA services owners... [ FAIL ] (Incorrect services owners for '/opt/monit/bin/monit(monit)', contact support.)
Running MONIT_STATUS command, gives the following error: Monit: the monit daemon is not running.
Environment
11.1;11;11.2;11.3;11.4;11.5;11.6 Privileged Access Manager (PAM, self-hosted) PTA PTA Other
Cause
- This could be a temporary issue caused by running the Diagnostics right after performing a system restart.
- Incorrect file owners or permissions.
- PID file contains incorrect PID information
Resolution
- Restart the PTA server, and wait 5-10 minutes before running the Diagnostics .
- Make sure the owners and permissions match the following. Use the ls -l command to view current permissions and owners and modify using the following commands if necessary:
#ls -l /opt/monit/bin/monit
#ls -l /etc/monitrc
#ls -l /etc/monit.d/
#ls -l /etc/monit.d/exec
#chown monit:monit /opt/monit/bin/monit
#chmod 700 /opt/monit/bin/monit
#chown monit:monit /etc/monitrc
#chmod 500 /etc/monitrc
#chown -R monit:monit /etc/monit.d
#chmod 644 /etc/monit.d/*
#chmod 755 /etc/monit.d/exec
#chmod 544 /etc/monit.d/exec/*
*. Stop PTA services.
*. This can be done using the Utility Manager by running the script ./run.sh located in the Utility folder or by running the command service appmgr stop
*. Backup the file @ /opt/monit/logs/monit.pid
*. Delete the file @ /opt/monit/logs/monit.pid
*.Restart the machine
*.Start PTA - service appmgr start
*.Run service monit status