Bosun Linux进程和系统服务监视
示例
Scollector将监视配置文件中指定的Linux进程。
[[Process]] Command = "/opt/bosun/bosun" Name = "bosun" [[Process]] Command = "ruby" Name = "puppet-agent" Args = "puppet" [[Process]] Command = "/haproxy$" Name = "haproxy-t1" Args = "/etc/haproxy-t1/haproxy-t1.cfg" [[Process]] Command = '/usr/bin/redis-server \*:16389' Name = "redis-bosun-dev" IncludeCount = true
Scollector也可以使用D-BusAPI来确定由systemd管理并在配置文件中指定的服务的状态。
[[SystemdService]] Name = "^(puppet|redis-.*|keepalived|haproxy-t.*)$" WatchProc = false [[SystemdService]] Name = "^(scollector|memcached)$" WatchProc = true