# salt.modules.monit

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

salt.modules.monit.configtest()

  Added in version 2016.3.0.

  Test monit configuration syntax

  CLI Example:

      salt '*' monit.configtest

salt.modules.monit.id_(reset=False)

  Added in version 2016.3.0.

  Return monit unique id.

  resetFalse

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

  CLI Example:

      salt '*' monit.id [reset=True]

salt.modules.monit.monitor(name)

  monitor service via monit

  CLI Example:

      salt '*' monit.monitor <service name>

salt.modules.monit.reload_()

  Added in version 2016.3.0.

  Reload monit configuration

  CLI Example:

      salt '*' monit.reload

salt.modules.monit.restart(name)

  Restart service via monit

  CLI Example:

      salt '*' monit.restart <service name>

salt.modules.monit.start(name)

  CLI Example:

      salt '*' monit.start <service name>

salt.modules.monit.status(svc_name='')

  Display a process status from monit

  CLI Example:

      salt '*' monit.status
      salt '*' monit.status <service name>

salt.modules.monit.stop(name)

  Stops service via monit

  CLI Example:

      salt '*' monit.stop <service name>

salt.modules.monit.summary(svc_name='')

  Display a summary from monit

  CLI Example:

      salt '*' monit.summary
      salt '*' monit.summary <service name>

salt.modules.monit.unmonitor(name)

  Unmonitor service via monit

  CLI Example:

      salt '*' monit.unmonitor <service name>

salt.modules.monit.validate()

  Added in version 2016.3.0.

  Check all services

  CLI Example:

      salt '*' monit.validate

salt.modules.monit.version()

  Added in version 2016.3.0.

  Return version from monit -V

  CLI Example:

      salt '*' monit.version