0.9.2 • Published 2 years ago
comlog-system-monitor v0.9.2
System monitoring software
Installation local
$ npm install comlog-system-monitor
Installation global
$ npm install -g comlog-system-monitor
$ comlog-system-monitor /path/to/config.json/if/not/in/working/directory
Installation of needed modules
$ npm install -s comlog-system-monitor-filetime
Usage
- Rename config.example.json or config.example.js and configure them.
- Remove all the blocks you do not need.
- Start node bin/run.js (or run comlog-system-monitor if global installed)
Integration
// Disable ssl check if you need it
process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";
var CSM = new (require('./comlog-system-monitor.js'))();
// Add a watcher service
CSM.addWatcher({
"name": "Processlog",
"interval": 10000,
"type": "filetime",
"timeout": 60000,
"debug": true,
"path": "function() {\n\tvar path = process.env.TEMP;\n\n\tpath += '\\\\process.log'\nreturn path;}",
"on": {
"down": [
{
"type": "email",
"to": "my.email@mydomain.com"
}
],
"up": [
{
"type": "email",
"to": "my.email@mydomain.com"
}
]
}
});
// Global action configuration (./actions folder)
CSM.addActionSettings('email', {
"host": "smtp.mydomain.de",
"user": "noreply",
"password": "Password",
"ssl": false,
"tls": true
});
// Define on error event
CSM.on('error', function (err) {
console.error(err.stack || err+'');
});
// Start monitoring
CSM.start();
0.9.2
2 years ago
0.9.1
2 years ago
0.9.0
5 years ago
0.8.4
6 years ago
0.8.3
6 years ago
0.8.2
6 years ago
0.8.0
6 years ago
0.7.9
6 years ago
0.7.8
6 years ago
0.7.7
6 years ago
0.7.6
6 years ago
0.7.5
6 years ago
0.7.4
6 years ago
0.7.3
6 years ago
0.7.2
6 years ago
0.7.1
7 years ago
0.7.0
7 years ago
0.6.0
7 years ago
0.5.0
7 years ago