#Open-m-monit on Nodejs
###Clone this repo and do the follow:
- 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)"
},
....
],
....
}
- Configure your port. U can use tcp or unix socket. Change port.json:
{
"type": "tcp",
"port": 3000
}
or:
{
"type": "unix",
"socket": "path_to_file"
}
- Get inside the containing directory (if you haven't already) and type
node app
Your open-m-monit is atyour.hostname:port
.
All information about m-monit is available here.