OSSECの実行ファイル一覧とデーモン一覧

# はじめに
[前回記事](https://qiita.com/Diavolo/items/7a5391578abe5ca67536)でAmazon Linux2にインストールしたOSSECの実行ファイルについて調査しました。また、インストール種別毎に起動するデーモンを一覧表にしました。なお、インストール種別毎にインストール手順を記事にしていますので、ご興味のある方はご参照ください。
- [OSSEC-Agentインストール](https://qiita.com/Diavolo/items/2bab537c36203049188d)
- [OSSEC-Serverインストール](https://qiita.com/Diavolo/items/81ce9ecdfca2a7c6b1a4)
- [OSSEC-Localインストール](https://qiita.com/Diavolo/items/7a5391578abe5ca67536)


# OSSECの実行ファイルのパス
```
# cd /var/ossec/bin

# OSSECの実行ファイル一覧
# ls
agent_control  manage_agents     ossec-authd     ossec-dbd           ossec-logtest    ossec-monitord  ossec-reportd      syscheck_control  verify-agent-conf
clear_stats    ossec-agentlessd  ossec-control   ossec-execd         ossec-maild      ossec-regex     ossec-syscheckd    syscheck_update
list_agents    ossec-analysisd   ossec-csyslogd  ossec-logcollector  ossec-makelists  ossec-remoted   rootcheck_control  util.sh
```

# OSSECの実行ファイル一覧（ファイルサイズ昇順）
```
# ls -lhSr
total 4.6M
-r-xr-x--- 1 root root 4.4K Mar  1 08:25 util.sh
-r-xr-x--- 1 root root 7.1K Mar  1 08:25 ossec-control
-r-xr-x--- 1 root root  29K Mar  1 08:25 clear_stats
-r-xr-x--- 1 root root  43K Mar  1 08:25 ossec-regex
-r-xr-x--- 1 root root  64K Mar  1 08:25 ossec-reportd
-r-xr-x--- 1 root root  67K Mar  1 08:25 ossec-execd
-r-xr-x--- 1 root root 105K Mar  1 08:25 list_agents
-r-xr-x--- 1 root root 153K Mar  1 08:25 syscheck_update
-r-xr-x--- 1 root root 157K Mar  1 08:25 rootcheck_control
-r-xr-x--- 1 root root 161K Mar  1 08:25 syscheck_control
-r-xr-x--- 1 root root 165K Mar  1 08:25 manage_agents
-r-xr-x--- 1 root root 166K Mar  1 08:25 agent_control
-r-xr-x--- 1 root root 177K Mar  1 08:25 ossec-authd
-r-xr-x--- 1 root root 193K Mar  1 08:25 verify-agent-conf
-r-xr-x--- 1 root root 210K Mar  1 08:25 ossec-agentlessd
-r-xr-x--- 1 root root 220K Mar  1 08:25 ossec-maild
-r-xr-x--- 1 root root 232K Mar  1 08:25 ossec-logcollector
-r-xr-x--- 1 root root 235K Mar  1 08:25 ossec-csyslogd
-r-xr-x--- 1 root root 236K Mar  1 08:25 ossec-dbd
-r-xr-x--- 1 root root 250K Mar  1 08:25 ossec-remoted
-r-xr-x--- 1 root root 282K Mar  1 08:25 ossec-monitord
-r-xr-x--- 1 root root 284K Mar  1 08:25 ossec-syscheckd
-r-xr-x--- 1 root root 361K Mar  1 08:25 ossec-makelists
-r-xr-x--- 1 root root 425K Mar  1 08:25 ossec-analysisd
-r-xr-x--- 1 root root 434K Mar  1 08:25 ossec-logtest
```
# OSSEC実行ファイルの種類
|  FileName  |  FileType  |  Daemon |
| ---- | ---- | ---- |
|util.sh|POSIX shell script|No|
|ossec-control|POSIX shell script|No|
|clear_stats|ELF 64-bit LSB executable, x86-64, version 1 (SYSV)|No|
|ossec-regex|ELF 64-bit LSB executable, x86-64, version 1 (SYSV)|No|
|ossec-reportd|ELF 64-bit LSB executable, x86-64, version 1 (SYSV)|Yes|
|ossec-execd|ELF 64-bit LSB executable, x86-64, version 1 (SYSV)|Yes|
|list_agents|ELF 64-bit LSB executable, x86-64, version 1 (SYSV)|No|
|syscheck_update|ELF 64-bit LSB executable, x86-64, version 1 (SYSV)|No|
|rootcheck_control|ELF 64-bit LSB executable, x86-64, version 1 (SYSV)|No|
|syscheck_control|ELF 64-bit LSB executable, x86-64, version 1 (SYSV)|No|
|manage_agents|ELF 64-bit LSB executable, x86-64, version 1 (SYSV)|No|
|agent_control|ELF 64-bit LSB executable, x86-64, version 1 (SYSV)|No|
|ossec-authd|ELF 64-bit LSB executable, x86-64, version 1 (SYSV)|Yes|
|verify-agent-conf|ELF 64-bit LSB executable, x86-64, version 1 (SYSV)|No|
|ossec-agentlessd|ELF 64-bit LSB executable, x86-64, version 1 (SYSV)|Yes|
|ossec-maild|ELF 64-bit LSB executable, x86-64, version 1 (SYSV)|Yes|
|ossec-logcollector|ELF 64-bit LSB executable, x86-64, version 1 (SYSV)|Yes|
|ossec-csyslogd|ELF 64-bit LSB executable, x86-64, version 1 (SYSV)|Yes|
|ossec-dbd|ELF 64-bit LSB executable, x86-64, version 1 (SYSV)|Yes|
|ossec-remoted|ELF 64-bit LSB executable, x86-64, version 1 (SYSV)|Yes|
|ossec-monitord|ELF 64-bit LSB executable, x86-64, version 1 (SYSV)|Yes|
|ossec-syscheckd|ELF 64-bit LSB executable, x86-64, version 1 (SYSV)|Yes|
|ossec-makelists|ELF 64-bit LSB executable, x86-64, version 1 (SYSV)|No|
|ossec-analysisd|ELF 64-bit LSB executable, x86-64, version 1 (SYSV)|Yes|
|ossec-logtest|ELF 64-bit LSB executable, x86-64, version 1 (SYSV)|No|
|ossec-agentd|ELF 64-bit LSB executable, x86-64, version 1 (SYSV)|Yes|

# OSSEC起動デーモン一覧（インストール種別毎）
|  FileName  |  FileType  |  local |  Server |  Agent |
| ---- | ---- | ---- | ---- | ---- |
|ossec-reportd|ELF 64-bit LSB executable, x86-64, version 1 (SYSV)|No|No|No|
|ossec-execd|ELF 64-bit LSB executable, x86-64, version 1 (SYSV)|Yes|Yes|Yes|
|ossec-authd|ELF 64-bit LSB executable, x86-64, version 1 (SYSV)|No|No|No|
|ossec-agentlessd|ELF 64-bit LSB executable, x86-64, version 1 (SYSV)|Option|Option|Option|
|ossec-maild|ELF 64-bit LSB executable, x86-64, version 1 (SYSV)|Yes|Yes|No|
|ossec-logcollector|ELF 64-bit LSB executable, x86-64, version 1 (SYSV)|Yes|Yes|Yes|
|ossec-csyslogd|ELF 64-bit LSB executable, x86-64, version 1 (SYSV)|Option|Option|Option|
|ossec-dbd|ELF 64-bit LSB executable, x86-64, version 1 (SYSV)|Option|Option|Option|
|ossec-remoted|ELF 64-bit LSB executable, x86-64, version 1 (SYSV)|No|Yes|No|
|ossec-monitord|ELF 64-bit LSB executable, x86-64, version 1 (SYSV)|Yes|Yes|No|
|ossec-syscheckd|ELF 64-bit LSB executable, x86-64, version 1 (SYSV)|Yes|Yes|Yes|
|ossec-analysisd|ELF 64-bit LSB executable, x86-64, version 1 (SYSV)|Yes|Yes|No|
|ossec-agentd|ELF 64-bit LSB executable, x86-64, version 1 (SYSV)|No|No|Yes|

# おわりに
今回の記事は以上です。では、また。