Linux Web監視内容の詳細
1. 監視内容
1.1 監視内容詳細
1.1.1 TCPポート監視
1.1.2 プロセス監視
2. 設定ファイルの内容

1. 監視内容
アプリケーション

タイプ

監視項目

設定項目

備考

Apache HTTP サーバ

Web

TCP ポート

80

HTTP

TCP ポート

443

HTTPS

プロセス

httpd

1.1 監視内容詳細
1.1.1 TCPポート監視
1) HTTP
設定項目

設定値

備考

service-

Service name. e.g. ftp, smtp, pop, imap and so on

hostnamelocalhost

Host name or IP Address

port

80

Port numbersend-

String to send to the server

expect-pattern-

Regexp pattern to expect in server responsequit-

String to send server to initiate a clean close of the connection

ssl-Use SSL for the connection

no-check-certificate-

Do not check certificate

unix-sock-

Unix Domain Socket

timeout-

Seconds before connection times out (default: 10)

maxbytes-

Close connection once more than this number of bytes are received

delay

-

Seconds to wait between sending string and polling for response

warning-

Response time to result in warning status (seconds)

critical-Response time to result in critical status (seconds)

escape-Can use \n, \r, \t or \ in send or quit string. Must come before send or quit
option.
By default, nothing added to send, \r\n added to end of quit

2) HTTPS
設定項目

設定値

備考

service-

Service name. e.g. ftp, smtp, pop, imap and so on

hostnamelocalhost

Host name or IP Address

port

443

Port numbersend-

String to send to the server

expect-pattern-

Regexp pattern to expect in server responsequit-

String to send server to initiate a clean close of the connection

ssl-

Use SSL for the connection

no-check-certificate-

Do not check certificate

unix-sock-

Unix Domain Socket

timeout-

Seconds before connection times out (default: 10)

maxbytes-

Close connection once more than this number of bytes are received

delay-

Seconds to wait between sending string and polling for response

warning-

Response time to result in warning status (seconds)

critical-Response time to result in critical status (seconds)

escape-Can use \n, \r, \t or \ in send or quit string. Must come before send or quit
option.
By default, nothing added to send, \r\n added to end of quit

1.1.2 プロセス監視1) httpd
設定項目

設定値

備考

warning-over-

Trigger a warning if over a number

critical-over-

Trigger a critical if over a number

warning-under-

Trigger a warning if under a number (default: 1)

critical-under-

Trigger a critical if under a number (default: 1)

match-self-

Match itself

match-parent-

Match parent

pattern

httpd

Match a command against this patternexclude-pattern-

Don't match against a pattern to prevent false positives

ppid

-

Check against a specific PPID

file-pid-

Check against a specific PID

virtual-memory-size-

Trigger on a Virtual Memory size is bigger than thisresident-set-size-

Trigger on a Resident Set size is bigger than this

proportional-set-size-

Trigger on a Proportional Set Size is bigger than thisthread-count-

Trigger on a Thread Count is bigger than thisstate-

Trigger on a specific state, example: Z for zombie

user

-

Trigger on a specific user

user-not-Trigger if not owned a specific user

esec-over-Match processes that older that this, in SECONDS

esec-under-

Match process that are younger than this, in SECONDS

cpu-over-Match processes cpu time that is older than this, in SECONDS

cpu-under-

Match processes cpu time that is younger than this, inSECONDS

2. 設定ファイルの内容
mackerei-agent.conf[plugin.check.tcp_80]
command = "check-tcp -H localhost -p 80"[plugin.check.tcp_443]
command = "check-tcp -H localhost -p 443"
[plugin.check.procs_httpd]
command = "check-procs -p 'httpd'"