salt.modules.monit

Monit service module. This module will create a monit type service watcher.

salt.modules.monit.configtest()

2016.3.0 新版功能.

Test monit configuration syntax

CLI 范例:

salt '*' monit.configtest
salt.modules.monit.id(reset=False)

2016.3.0 新版功能.

Return monit unique id.

reset : False
Reset current id and generate a new id when it's True.

CLI 范例:

salt '*' monit.id [reset=True]
salt.modules.monit.monitor(name)

monitor service via monit

CLI 范例:

salt '*' monit.monitor <service name>
salt.modules.monit.reload()

2016.3.0 新版功能.

Reload monit configuration

CLI 范例:

salt '*' monit.reload
salt.modules.monit.restart(name)

Restart service via monit

CLI 范例:

salt '*' monit.restart <service name>
salt.modules.monit.start(name)

CLI 范例:

salt '*' monit.start <service name>
salt.modules.monit.status(svc_name='')

Display a process status from monit

CLI 范例:

salt '*' monit.status
salt '*' monit.status <service name>
salt.modules.monit.stop(name)

Stops service via monit

CLI 范例:

salt '*' monit.stop <service name>
salt.modules.monit.summary(svc_name='')

Display a summary from monit

CLI 范例:

salt '*' monit.summary
salt '*' monit.summary <service name>
salt.modules.monit.unmonitor(name)

Unmonitor service via monit

CLI 范例:

salt '*' monit.unmonitor <service name>
salt.modules.monit.validate()

2016.3.0 新版功能.

Check all services

CLI 范例:

salt '*' monit.validate
salt.modules.monit.version()

2016.3.0 新版功能.

Return version from monit -V

CLI 范例:

salt '*' monit.version