Skip to content

Instantly share code, notes, and snippets.

@aogilvie
Created August 27, 2015 05:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aogilvie/ca323dd692b76f4d9cb9 to your computer and use it in GitHub Desktop.
Save aogilvie/ca323dd692b76f4d9cb9 to your computer and use it in GitHub Desktop.
Setup and Install Monit (Yum)

Install

  • Download monit-5.5-1.el6.rf.x86_64.rpm
  • $ sudo yum install monit-5.5-1.el6.rf.x86_64.rpm
  • Installs to /usr/bin/monit
  • Start deamon $ monit
  • Start services $ monit start all (all is monitor all)

Setup

Process Config

  • sudo $ sudo vi /opt/monit.conf
  • Example match process:
## Check MyService service is running
  check process MyService
    matching "string_in_pid_path_or_name"
  • Restart service $ monit restart all

HTTP webportal and port config

  • sudo $ sudo vi /opt/monit.conf
set httpd port 5901 and
    use address 0.0.0.0
    allow admin:"admin"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment