Re: ERRORが発生している ( No.1 ) |
|
- ????????? 2007/02/07 20:29
- ????????? 管理者
-
色々と調べていたのですがクローズされてしまいましたので再オープンさせて頂きました。
(解決されたのでしょうか?)
恐らく、logwatchに出力されたものと、メールログの内容は関係なさそうです。 メールログは以前のスレッド(以下参照)でご返信させて頂いた物と思われます。
http://kajuhome.com/cgi-bin/patio/patio.cgi?mode=view&no=984
logwatchは不明です。
/etc/freshclam.confの内容を明記して頂けますか?
それと、「/etc/clamd.conf」って存在していますか?(当方にはありません)
|
Re: ERRORが発生している ( No.2 ) |
|
- ????????? 2007/02/07 20:37
- ????????? とんとん
-
管理人様ありがとうございます。
>色々と調べていたのですがクローズされてしまいましたので再オープンさせて頂きました。 >(解決されたのでしょうか?) そうとはしらず大変失礼いたしました。 いいえ、まだ解決はいたしておりません
>恐らく、logwatchに出力されたものと、メールログの内容は関係なさそうです。 >メールログは以前のスレッド(以下参照)でご返信させて頂いた物と思われます。
>http://kajuhome.com/cgi-bin/patio/patio.cgi?mode=view&no=984 そうでした、あとでこの部分は気がつきました。
>logwatchは不明です。 >/etc/freshclam.confの内容を明記して頂けますか? >それと、「/etc/clamd.conf」って存在していますか?(当方にはありません) はい、こちらもありませんでした。
|
Re: ERRORが発生している ( No.3 ) |
|
- ????????? 2007/02/07 20:45
- ????????? とんとん
-
すみません忘れました。
/etc/freshclam.confです。
## ## Example config file for freshclam ## Please read the freshclam.conf(5) manual before editing this file. ## This file may be optionally merged with clamd.conf. ##
# Comment or remove the line below. #Example
# Path to the database directory. # WARNING: It must match clamd.conf's directive! # Default: hardcoded (depends on installation options) #DatabaseDirectory /var/lib/clamav
# Path to the log file (make sure it has proper permissions) # Default: disabled UpdateLogFile /var/log/freshclam.log
# Enable verbose logging. # Default: disabled #LogVerbose
# Use system logger (can work together with UpdateLogFile). # Default: disabled #LogSyslog
# Specify the type of syslog messages - please refer to 'man syslog' # for facility names. # Default: LOG_LOCAL6 #LogFacility LOG_MAIL
# This option allows you to save the process identifier of the daemon # Default: disabled #PidFile /var/run/freshclam.pid
# By default when started freshclam drops privileges and switches to the # "clamav" user. This directive allows you to change the database owner. # Default: clamav (may depend on installation options) #DatabaseOwner clamav
# Initialize supplementary group access (freshclam must be started by root). # Default: disabled #AllowSupplementaryGroups
# Use DNS to verify virus database version. Freshclam uses DNS TXT records # to verify database and software versions. With this directive you can change # the database verification domain. # Default: enabled, pointing to current.cvd.clamav.net #DNSDatabaseInfo current.cvd.clamav.net
# Uncomment the following line and replace XY with your country # code. See http://www.iana.org/cctld/cctld-whois.htm for the full list. # Default: There is no default, which results in an error when running freshclam #DatabaseMirror db.XY.clamav.net
# database.clamav.net is a round-robin record which points to our most # reliable mirrors. It's used as a fall back in case db.XY.clamav.net is # not working. DO NOT TOUCH the following line unless you know what you # are doing. DatabaseMirror database.clamav.net
# How many attempts to make before giving up. # Default: 3 (per mirror) #MaxAttempts 5
# Number of database checks per day. # Default: 12 (every two hours) #Checks 24
# Proxy settings # Default: disabled #HTTPProxyServer myproxy.com #HTTPProxyPort 1234 #HTTPProxyUsername myusername #HTTPProxyPassword mypass
# Use aaa.bbb.ccc.ddd as client address for downloading databases. Useful for # multi-homed systems. # Default: Use OS'es default outgoing IP address. #LocalIPAddress aaa.bbb.ccc.ddd
# Send the RELOAD command to clamd. # Default: disabled #NotifyClamd # By default it uses the hardcoded configuration file but you can force an # another one. #NotifyClamd /config/file/path
# Run command after successful database update. # Default: disabled #OnUpdateExecute command
# Run command when database update process fails. # Default: disabled #OnErrorExecute command
# Run command when freshclam reports outdated version. # In the command string %v will be replaced by the new version number. # Default: disabled #OnOutdatedExecute command
# Don't fork into background. # Default: disabled #Foreground
# Enable debug messages in libclamav. # Default: disabled #Debug
# Timeout in seconds when connecting to the database server. # Default: 30 #ConnectTimeout 60
# Timeout in seconds when reading from the database server. # Default: 30 #ReceiveTimeout 60
|
Re: ERRORが発生している ( No.4 ) |
|
- ????????? 2007/02/07 20:52
- ????????? 管理者
-
特に、おかしな所はありませんね。当方の内容と全く同じです。
「/var/log/freshclam.log」に定義ファイル更新結果が出力されますが、以下の様なログはありますか?
-------------------------------------- ClamAV update process started at Wed Feb 7 18:21:22 2007 main.cvd is up to date (version: 42, sigs: 83951, f-level: 10, builder: tkojm) daily.cvd is up to date (version: 2529, sigs: 5312, f-level: 9, builder: sven)
|
Re: ERRORが発生している ( No.5 ) |
|
- ????????? 2007/02/07 21:01
- ????????? とんとん
-
お世話になります。
>特に、おかしな所はありませんね。当方の内容と全く同じです。 そうですか、良かったです。
>「/var/log/freshclam.log」に定義ファイル更新結果が出力されますが、以下の様なログはありますか?
はい、ありました。 ちゃんと定義ファイル更新がされているみたいです。 どうもエラーの要因はClamAVではないみたいですね。
-------------------------------------- ClamAV update process started at Wed Feb 7 17:02:09 2007 main.cvd is up to date (version: 42, sigs: 83951, f-level: 10, builder: tkojm) daily.cvd is up to date (version: 2529, sigs: 5312, f-level: 9, builder: sven)
|
Re: ERRORが発生している ( No.6 ) |
|
- ????????? 2007/02/07 21:14
- ????????? 管理者
-
関連するものを列挙します。
?「/etc/clamd.d/amavisd.conf」の内容 # Use system logger. LogSyslog
# Specify the type of syslog messages - please refer to 'man syslog' # for facility names. LogFacility LOG_MAIL
# This option allows you to save a process identifier of the listening # daemon (main thread). PidFile /var/run/amavisd/clamd.pid
# Remove stale socket after unclean shutdown. # Default: disabled FixStaleSocket
# Run as a selected user (clamd must be started by root). User amavis
# Path to a local socket file the daemon will listen on. LocalSocket /var/spool/amavisd/clamd.sock
?「/etc/cron.d/clamav-update」の内容 ## Adjust this line... MAILTO=root,postmaster,webmaster,clamav
## It is ok to execute it as root; freshclam drops privileges and becomes ## user 'clamav' as soon as possible 0 */3 * * * root /usr/share/clamav/freshclam-sleep 注意:当方は3時間毎に定義ファイルをアップデートしています。
?「/etc/freshclam.conf」の内容 ## ## Example config file for freshclam ## Please read the freshclam.conf(5) manual before editing this file. ## This file may be optionally merged with clamd.conf. ##
# Comment or remove the line below. #Example
# Path to the database directory. # WARNING: It must match clamd.conf's directive! # Default: hardcoded (depends on installation options) #DatabaseDirectory /var/lib/clamav
# Path to the log file (make sure it has proper permissions) # Default: disabled UpdateLogFile /var/log/freshclam.log
# Enable verbose logging. # Default: disabled #LogVerbose
# Use system logger (can work together with UpdateLogFile). # Default: disabled #LogSyslog
# Specify the type of syslog messages - please refer to 'man syslog' # for facility names. # Default: LOG_LOCAL6 #LogFacility LOG_MAIL
# This option allows you to save the process identifier of the daemon # Default: disabled #PidFile /var/run/freshclam.pid
# By default when started freshclam drops privileges and switches to the # "clamav" user. This directive allows you to change the database owner. # Default: clamav (may depend on installation options) #DatabaseOwner clamav
# Initialize supplementary group access (freshclam must be started by root). # Default: disabled #AllowSupplementaryGroups
# Use DNS to verify virus database version. Freshclam uses DNS TXT records # to verify database and software versions. With this directive you can change # the database verification domain. # Default: enabled, pointing to current.cvd.clamav.net #DNSDatabaseInfo current.cvd.clamav.net
# Uncomment the following line and replace XY with your country # code. See http://www.iana.org/cctld/cctld-whois.htm for the full list. # Default: There is no default, which results in an error when running freshclam #DatabaseMirror db.XY.clamav.net
# database.clamav.net is a round-robin record which points to our most # reliable mirrors. It's used as a fall back in case db.XY.clamav.net is # not working. DO NOT TOUCH the following line unless you know what you # are doing. DatabaseMirror database.clamav.net
# How many attempts to make before giving up. # Default: 3 (per mirror) #MaxAttempts 5
# Number of database checks per day. # Default: 12 (every two hours) #Checks 24
# Proxy settings # Default: disabled #HTTPProxyServer myproxy.com #HTTPProxyPort 1234 #HTTPProxyUsername myusername #HTTPProxyPassword mypass
# Use aaa.bbb.ccc.ddd as client address for downloading databases. Useful for # multi-homed systems. # Default: Use OS'es default outgoing IP address. #LocalIPAddress aaa.bbb.ccc.ddd
# Send the RELOAD command to clamd. # Default: disabled #NotifyClamd # By default it uses the hardcoded configuration file but you can force an # another one. #NotifyClamd /config/file/path
# Run command after successful database update. # Default: disabled #OnUpdateExecute command
# Run command when database update process fails. # Default: disabled #OnErrorExecute command
# Run command when freshclam reports outdated version. # In the command string %v will be replaced by the new version number. # Default: disabled #OnOutdatedExecute command
# Don't fork into background. # Default: disabled #Foreground
# Enable debug messages in libclamav. # Default: disabled #Debug
# Timeout in seconds when connecting to the database server. # Default: 30 #ConnectTimeout 60
# Timeout in seconds when reading from the database server. # Default: 30 #ReceiveTimeout 60
? 実行プロセスの表示 # ps -ef | grep clam amavis 2192 1 0 Jan19 ? 00:01:51 clamd.amavisd -c /etc/clamd.d/amavisd.conf root 20493 20482 0 21:00 ? 00:00:00 /bin/bash /usr/share/clamav/freshclam-sleep root 20921 19061 0 21:10 pts/1 00:00:00 grep clam
# ps -ef | grep amavisd amavis 2192 1 0 Jan19 ? 00:01:51 clamd.amavisd -c /etc/clamd.d/amavisd.conf amavis 2203 1 0 Jan19 ? 00:00:01 amavisd (master) amavis 20563 2203 0 21:00 ? 00:00:00 amavisd (ch2-avail) amavis 20599 2203 0 21:00 ? 00:00:00 amavisd (ch1-avail) root 20941 19061 0 21:11 pts/1 00:00:00 grep amavisd
|
Re: ERRORが発生している ( No.7 ) |
|
- ????????? 2007/02/07 21:47
- ????????? とんとん
-
詳細にありがとうございます。
下記は私のですが問題ないように見えます、実際はどうなのでしょうか?
>?「/etc/clamd.d/amavisd.conf」の内容 # Use system logger. LogSyslog
# Specify the type of syslog messages - please refer to 'man syslog' # for facility names. LogFacility LOG_MAIL
# This option allows you to save a process identifier of the listening # daemon (main thread). PidFile /var/run/amavisd/clamd.pid
# Remove stale socket after unclean shutdown. # Default: disabled FixStaleSocket
# Run as a selected user (clamd must be started by root). User amavis
# Path to a local socket file the daemon will listen on. LocalSocket /var/spool/amavisd/clamd.sock
ScanMail
>?「/etc/cron.d/clamav-update」の内容 ## Adjust this line... MAILTO=root,postmaster,webmaster,clamav
## It is ok to execute it as root; freshclam drops privileges and becomes ## user 'clamav' as soon as possible 0 */3 * * * root /usr/share/clamav/freshclam-sleep
>?「/etc/freshclam.conf」の内容 ## ## Example config file for freshclam ## Please read the freshclam.conf(5) manual before editing this file. ## This file may be optionally merged with clamd.conf. ##
# Comment or remove the line below. #Example
# Path to the database directory. # WARNING: It must match clamd.conf's directive! # Default: hardcoded (depends on installation options) #DatabaseDirectory /var/lib/clamav
# Path to the log file (make sure it has proper permissions) # Default: disabled UpdateLogFile /var/log/freshclam.log
# Enable verbose logging. # Default: disabled #LogVerbose
# Use system logger (can work together with UpdateLogFile). # Default: disabled #LogSyslog
# Specify the type of syslog messages - please refer to 'man syslog' # for facility names. # Default: LOG_LOCAL6 #LogFacility LOG_MAIL
# This option allows you to save the process identifier of the daemon # Default: disabled #PidFile /var/run/freshclam.pid
# By default when started freshclam drops privileges and switches to the # "clamav" user. This directive allows you to change the database owner. # Default: clamav (may depend on installation options) #DatabaseOwner clamav
# Initialize supplementary group access (freshclam must be started by root). # Default: disabled #AllowSupplementaryGroups
# Use DNS to verify virus database version. Freshclam uses DNS TXT records # to verify database and software versions. With this directive you can change # the database verification domain. # Default: enabled, pointing to current.cvd.clamav.net #DNSDatabaseInfo current.cvd.clamav.net
# Uncomment the following line and replace XY with your country # code. See http://www.iana.org/cctld/cctld-whois.htm for the full list. # Default: There is no default, which results in an error when running freshclam #DatabaseMirror db.XY.clamav.net
# database.clamav.net is a round-robin record which points to our most # reliable mirrors. It's used as a fall back in case db.XY.clamav.net is # not working. DO NOT TOUCH the following line unless you know what you # are doing. DatabaseMirror database.clamav.net
# How many attempts to make before giving up. # Default: 3 (per mirror) #MaxAttempts 5
# Number of database checks per day. # Default: 12 (every two hours) #Checks 24
# Proxy settings # Default: disabled #HTTPProxyServer myproxy.com #HTTPProxyPort 1234 #HTTPProxyUsername myusername #HTTPProxyPassword mypass
# Use aaa.bbb.ccc.ddd as client address for downloading databases. Useful for # multi-homed systems. # Default: Use OS'es default outgoing IP address. #LocalIPAddress aaa.bbb.ccc.ddd
# Send the RELOAD command to clamd. # Default: disabled #NotifyClamd # By default it uses the hardcoded configuration file but you can force an # another one. #NotifyClamd /config/file/path
# Run command after successful database update. # Default: disabled #OnUpdateExecute command
# Run command when database update process fails. # Default: disabled #OnErrorExecute command
# Run command when freshclam reports outdated version. # In the command string %v will be replaced by the new version number. # Default: disabled #OnOutdatedExecute command
# Don't fork into background. # Default: disabled #Foreground
# Enable debug messages in libclamav. # Default: disabled #Debug
# Timeout in seconds when connecting to the database server. # Default: 30 #ConnectTimeout 60
# Timeout in seconds when reading from the database server. # Default: 30 #ReceiveTimeout 60
>? 実行プロセスの表示 # ps -ef | grep clam amavis 2021 1 0 08:06 ? 00:00:02 clamd.amavisd -c /etc/clamd.d/am avisd.conf root 7211 7210 0 21:00 ? 00:00:00 /bin/bash /usr/share/clamav/fres hclam-sleep root 7461 7360 0 21:35 pts/1 00:00:00 grep clam
# ps -ef | grep amavisd amavis 2021 1 0 08:06 ? 00:00:02 clamd.amavisd -c /etc/clamd.d/amavisd.conf amavis 2040 1 0 08:06 ? 00:00:00 amavisd (master) amavis 2069 2040 0 08:06 ? 00:00:00 amavisd (virgin child) amavis 2070 2040 0 08:06 ? 00:00:00 amavisd (virgin child) root 7472 7360 0 21:38 pts/1 00:00:00 grep amavisd
|