mon_fsstatd systemd service syntax

6.10 z/VM guest

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

Read syntax diagramSkip visual syntax diagramsystemctlstartstopstatus restart reloadenable disablemon_fsstatd
Where:
start
starts monitoring of guest file system size, using the configuration in /etc/sysconfig/mon_fsstatd.
stop
stops monitoring of guest file system size.
status
shows current status of guest file system size monitoring.
restart
stops and restarts 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

FSSTAT_INTERVAL="<n>"
specifies the wanted sampling interval in seconds.

Examples of systemd service unit use

This example configuration file for mon_fsstatd (/etc/sysconfig/mon_fsstatd) sets the sampling interval to 30 seconds:
FSSTAT_INTERVAL="30"
Examples of mon_fsstatd use:
  • To start guest file system size monitoring:
    # systemctl start mon_fsstatd
    
  • To display the status:
    # systemctl status mon_fsstatd
    | mon_fsstatd.service - Monitor z/VM guest file system size
    ...
       Active: active (running) since Wed 2018-02-21 14:52:11 CET; 4s ago
    
  • To stop guest file system size monitoring:
    # systemctl stop mon_fsstatd
    
  • To display the status again and check that monitoring is now stopped:
    # systemctl status mon_fsstatd
    | mon_fsstatd.service - Monitor z/VM guest file system size
    ...
       Active: inactive (dead)
    ...
  • To restart the daemon and re-read the configuration file:
    # systemctl restart mon_fsstatd