Skip to content

Latest commit

 

History

History
41 lines (35 loc) · 852 Bytes

README.md

File metadata and controls

41 lines (35 loc) · 852 Bytes

Open-m-monit on Nodejs

how to run

  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. run node app Your open-m-monit is at your.hostname:port.

All information about m-monit is available here.