/open-m-monit

opensource version of m/monit

Primary LanguageJavaScript

#Open-m-monit on Nodejs

###Clone this repo and do the follow:

  1. Create the file config.json and add your monit servers:
{"clusterName":
        [
            {
            "hostname": "serverHostname or ip and port",
            "username": "baseAuth username",
            "password": "your baseAuth password",
            "protocol": "https(optional, http by default)",
            "alias"   : "aliasName(optional, means short name)"
            },
            ....
        ],
        ....
    }
  1. Configure your port. U can use tcp or unix socket. Change port.json:
{
    "type": "tcp",
    "port": 3000
}

or:

{
    "type": "unix",
    "socket": "path_to_file"
}
  1. Get inside the containing directory (if you haven't already) and type node app Your open-m-monit is at your.hostname:port.

All information about m-monit is available here.