arnaudsj / monit

Monit is a free open source utility for managing and monitoring, processes, files, directories and filesystems on a UNIX system. Monit conducts automatic maintenance and repair and can execute meaningful causal actions in error situations. (unofficial mirror)
http://mmonit.com/monit/
Other
519 stars 63 forks source link

Generate output file for other programs to use. #27

Open Bacteriaphage opened 4 years ago

Bacteriaphage commented 4 years ago

Hi,

Currently Monit can show the monitoring result in a static webpage. But I think GET model doesn't fit into this monitoring system very well, because it needs to refresh every time to get the new result, and it will not provide user a good using experience.

I propose adding a new functionality to output result to a file and then we can use other webserver to handle the result. What I am using now is python tornado + websocket. And I can make the checking interval be every short, which almost doesn't work for static page update routine.

shahabtrojan commented 2 years ago

does monit work with other process gitlab or jenkins

dr0i commented 8 months ago

I do this by alerting to an email address. The mail queue is checked with inotifywait if it's changing and if so the http daemon is curled to a file. You could even use monit to check file monit's log and exec a script writing the status file, but using email makes it easier for me to gather information from different machines.