Comments (6)
e.g.
WatchMen.prototype.start = function (cb){
var self = this;
self.daemon_status = 1;
function launch (service){
self.ping ({service:service}, function (err, state){
if (err){ console.error (err); }
if (self.daemon_status){
setTimeout(launch, parseInt(state.next_attempt_secs, 10) * 1000, service);
}
});
}
this.services(function (err, services) {
if(err) {
console.log("Exiting: " + err.message);
process.exit();
}
services.forEach(function(service){
if (service.enabled !== false){
launch(service);
}
});
console.log('watchmen monitor started.');
cb();
});
};
from watchmen.
Yes, resolving dynamically what servers to ping would be nice (so you can keep them in a database and add/remove services while the process is running). Now you have to change the config file and restart the process, what is not as good.
from watchmen.
I see this issue was opened 3 years ago... is this actively maintained?
from watchmen.
@ericelliott Yes, it is. I guess nobody has issued a PR for this yet... If you do, I will happily review it and merge it.
from watchmen.
👍
from watchmen.
Thanks for raising this issue. This has been Implemented in b8b5bb5
from watchmen.
Related Issues (20)
- always: restart
- Add User-Agent to Config
- Service from file
- Error: Invalid URI HOT 3
- Server offline for 24h+ goes from 0% to 100%
- Error: ERR wrong number of arguments for 'set' command HOT 1
- Add Service Button is not showing up HOT 1
- how and where do we set any env variable like I want to export WATCHMEN_WEB_NO_AUTH='true' how do I do it HOT 4
- Redis scrubs and truncates services HOT 1
- Google+ API Sunset HOT 1
- Service 'watchmenweb' failed to build: The command '/bin/sh -c set -x && npm install -g bower && npm install && bower install --allow-root' returned a non-zero code: 137
- is it possible to do post request to API with login info?
- Pause monitoring HOT 2
- New Ping Service HOT 1
- Notify with email question
- Add elapsedTime and timestamp to notitication callbacks
- Can you explain how to include external service lib
- Admin settings dropdown menu automatically closes down
- Plugin for Staytus
- docker-compose fails to build with getaddrinfo ENOTFOUND bower.herokuapp.com
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from watchmen.