Sha256: 6ca829b0cc7891a6298cb4904bbfe667f6d5ccd1d50832e97838d8870181c9df
Contents?: true
Size: 1.22 KB
Versions: 9
Compression:
Stored size: 1.22 KB
Contents
upstart: `initctl list` ```none qemu-kvm start/running rc stop/waiting rsyslog start/running, process 1237 network-interface (lo) start/running ``` daemontools: `svstat /service/\*` (aside: `ps -eo %a | grep '[s]vscan ' | cut -d' ' -f2 | sort -u`) ```none /service/chef-client: up (pid 14971) 1197 seconds /service/hubot: up (pid 6583) 8895 seconds /service/resmon: up (pid 633) 4131042 seconds /service/syslog-ng: up (pid 632) 4131042 seconds /service/mail-in: down 3 seconds, normally up ``` systemd: `systemctl list-units --full --type=service --all`, `systemctl show NAME NAME NAME ...` ## Config ```json { interval: 60 flaptime: 30, since: 900, services: { init: { foo : { status_cmd : "..."} }, systemd: { sshd : {...} }, daemontools: { "-monitor" : ["/service/*"], # probably all you need "-options" : { "svstat" : ["..."] }, "chef-client" : { }, "syslog-ng" : {"path" : "/service/syslog-ng"}, # is the default } } } ``` ## Output * up: seconds the service has been up (negative if it has been shutdown) * flaps: number of flaps (runs under 'flaptime') within the 'since' horizon services|daemontools|syslog-ng|up => $seconds services|daemontools|syslog-ng|flaps => $n
Version data entries
9 entries across 9 versions & 1 rubygems