Sha256: c7dfc2b7985342788ab6a7096d62d79d6b88d875e835909ee30fc1584bec7218
Contents?: true
Size: 945 Bytes
Versions: 9
Compression:
Stored size: 945 Bytes
Contents
Returns information about a process, or set of processes. Can look simply for a process name, or match against an expression, search for all processed owned by a user... can also match processes that match certain characteristics as defined in the optional arguments section. ps -wwo 'pid,time,etime,thcount,pcpu,ni,pri,vsz,rss,command' \ -p $(pgrep -d, sshd) # Config The "checks" hash contains a list of check names, plus info for invoking pgrep. ```json { interval: 60, checks: { sshd: { pattern: "^sshd", # also 'full: "^/usr/sbin/sshd" user: "root,daemon" } } } ``` # Return: Information about each matched process, plus a count. process|ssh|count => 1 process|ssh|0|time => 400 process|ssh|0|etime => 6000 process|ssh|0|pcpu => 0.2 process|ssh|0|thcount => 1 process|ssh|0|rss => ... process|ssh|0|nice => ... process|ssh|0|priority => ... process|ssh|_info => { 'cmd' => [...] }
Version data entries
9 entries across 9 versions & 1 rubygems