HTTP service that returns a list of process' names with boolean values that respectively telling us if process is running or not. For UNIX-like OS only.
Alexander "Arav" Andreev
c7fe073623
Ditched JSON configuration file. Replaced with simple key = value format. Added indented_output option to format output with indent. |
||
---|---|---|
contrib | ||
.gitignore | ||
confguration.go | ||
errors.go | ||
go.mod | ||
LICENSE | ||
main.go | ||
Makefile | ||
processlist.go | ||
README.md | ||
server.go | ||
util.go |
httpprocwatchd Ver 1.3
License: MIT+NIGGER.
This utility provides a HTTP /processes
GET endpoint that returns a list of
processes and if they are currently running or not.
A list of processes could be in JSON or XML format, By default JSON being returned.
To get XML you need to provide a Accept: application/xml
header in GET reqest.
A JSON object looks like this: { "process": true|false, ... }
.
And XML <ProcessList><Process name="process">true|false</Process>...</ProcessList>
.
Configuration file is a simple JSON object consisting of listen_address
string field
in form "[<ip|host>]:<port>"
. And processes
array of process names.