mon_statd service utility syntax
If you run the mon_procd daemon through the service utility, you configure the daemon through specifications in a configuration file.
Where:
- start
- enables monitoring of guest process data, using the configuration in /etc/sysconfig/mon_statd.
- stop
- disables monitoring of guest process data.
- status
- shows current status of guest process data monitoring.
- restart
- stops and restarts guest process data monitoring. Useful in order to re-read the configuration file when it has changed.
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 service utility use
- This example sets the sampling interval to 30 seconds and enables
the mon_procd:
PROC_INTERVAL="30" PROC="yes"
Example of mon_statd use (note that your output might look different and include messages for other daemons, such as mon_fsstatd):
- To enable guest process data monitoring:
> service mon_statd start ... Starting mon_procd:[ OK ] ...
- To display the status:
> service mon_statd status ... mon_procd (pid 1075, interval: 30) is running. ...
- To disable guest process data monitoring:
> service mon_statd stop ... Stopping mon_procd:[ OK ] ...
- To display the status again and check that monitoring is now disabled:
> service mon_statd status ... mon_procd is not running ...
- To restart the daemon and re-read the configuration file:
> service mon_statd restart ... stopping mon_procd:[ OK ] starting mon_procd:[ OK ] ...