mon_procd service utility syntax

Ubuntu 22.04 LTS z/VM guest

If you run the mon_procd daemon as a systemd service unit, you configure the daemon through specifications in a configuration file.

Read syntax diagramSkip visual syntax diagram systemctl startstopstatus restart reloadenable disable mon_procd
Where:
start
starts monitoring of guest process data, using the configuration in /etc/sysconfig/mon_procd.
stop
stops monitoring of guest process data.
status
shows current status of guest process data monitoring.
restart
stops and restarts guest process data monitoring.
reload
reloads the configuration. Use reload to re-read the configuration file when it was changed.
enable
starts the service automatically at boot time.
disable
disables automatic start of the service at boot time.

Configuration file keywords

PROC_INTERVAL="<n>"
specifies the desired sampling interval in seconds.
PROC="yes | no"
specifies whether to enable the mon_procd daemon. Set to "yes" to enable the daemon. Anything other than "yes" will be interpreted as "no".

Examples of systemd service unit use

This example configuration file for mon_procd (/etc/sysconfig/mon_procd) sets the process monitoring interval to 60 seconds:
PROC_INTERVAL=60

Examples of mon_procd use:

  • To start guest process data monitoring:
    # systemctl start mon_procd
    
  • To display the status:
    # systemctl status mon_procd
    | mon_procd.service - Monitor Linux on z/VM
    ...
       Active: active (running) since Mon 2018-02-26 12:16:00 CET; 4s ago
    
  • To stop guest process data monitoring:
    # systemctl stop mon_procd
    
  • To display the status again and check that monitoring is now stopped:
    # systemctl status mon_procd
    | mon_procd.service - Monitor Linux on z/VM
    ...
       Active: inactive (dead)
    ...
  • To restart the daemon and re-read the configuration file:
    # systemctl restart mon_procd