Using Monit and Other Commands
Process management is performed by Monit, an open source utility for managing and monitoring processes, files, directories, and file systems. During the installation of PSM, the configuration files for monit are updated to monitor the PSM server process. The monit configuration can be re-read after installing the PSM by entering the command “monit reload”, or by rebooting the machine.
You can obtain the status of the PSM and other important
services via the monit web interface at
ip address>:2812 or on the command line.
When using the command line, you have access to a number of monit commands but it is recommended that you use the supplied aliases instead of invoking the monit commands directly. Some aliases are provided for convenience while others issue the monit command coupled with a 'monit summary' under the Linux watch command. You can then watch the command progress and complete before proceeding. In many situations, you should not proceed until the command has completed successfully. To exit from the Linux watch command window, type <ctrl> c.
psm-start - Starts the OS processes needed for the PSM server application and displays the monit status summary within the Linux watch command.
psm-stop - Stops the OS processes needed for the PSM server application and displays the monit status summary within the Linux watch command.
psm-restart - Restarts the OS processes needed for the PSM server application and displays the monit status summary within the Linux watch command.
psm-status - Displays the monit status summary within the Linux watch command. The PSM server processes are identified by the 'Ems-' prefix. The processes are in the "Running" state when the server is up and running, and in the "Not monitored" state when the server is stopped. For example:
[user ~]# psm-status Every 2.0s: monit summary Tue Jun 21 15:51:22 2016 The Monit daemon 5.14 uptime: 14d 2h 57m Process 'SSH' Running Process 'radiusd' Running Process 'SNMPD' Running Process 'MySQL' Running Process 'proftpd' Running Filesystem 'rootfs' Accessible Filesystem 'logfs' Accessible Filesystem 'varfs' Accessible Filesystem 'pmsfs' Accessible Process 'Ems-Server-Masters' Running Process 'Ems-Server-Workers' Running Process 'Ems-Server-Discovery' Running Process 'Ems-Dashboard' Running Process 'CROND' Running Process 'carbon' Running System 'psm.example.com' Running
psm-cd - Changes directory to
psm-cd-bin - Changes directory to
psm-cd-conf - Changes directory to
psm-cd-logs - Changes directory to
psm-tail-audit - Performs the Linux 'tail' command on the
psm-tail-discovery - Performs the Linux 'tail' command on the
psm-tail-ems - Performs the Linux 'tail' command on both the
psm-tail-masters - Performs the Linux 'tail' command on the
psm-tail-workers - Performs the Linux 'tail' command on the
getVersionInfo - Displays version information on the Linux kernel and operating system.