Hacker News new | ask | show | jobs
by maraksquires 5681 days ago
Well, we can call native node.js code from our process monitor now.

We can extend our process monitor with functionality that would be difficult to implement in those other tools.

2 comments

Any examples of when this would be desirable? Seems to me that monitoring and running tools should just, you know, monitor and run things. Separation of concerns.
How would you setup alerts for your monitoring?

I'd much rather have access to a well structured library (node.js) where sockets and http are first class citizens, opposed to being forced into a solution or having to write C or bash.

@intranation Just to toss out a scenario: Lets say under high traffic your application hits an edge case and starts to crash very frequently. Suppose you want to receive an email, SMS, or IM when something like this happens as a devops person.

Would you consider that a valid concern of process monitoring?

Planned features to Forever include this from the command line, but if you use it from node directly one could implement that feature now:

https://github.com/indexzero/forever

Bit by bit... monit restarts the server a defined number of times per second. Then it stops if the service fails to start. If the service is not running, nagios dispatches the snmp traps, sms-es, ims and all the rest.
I want my monitoring process to be rock solid. Extensions such as notifications should be done in another process, otherwise you're at the mercy of whatever email/SMS/IM library you include to do the notification.