Skip to content

littlemaneuver/open-m-monit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.