FreeBSD/Apacheで変なエラー の変更点
*Apacheで変なエラー [#vc3b4c9b]
net-snmpを入れなおしたり、phpをアップデートしたりしてたら・・・
動作は正常だけど、こんなエラーが出るようになってしまった。
net-snmpを始めportsで入れていて、ソースのものに変えたからかな????
httpd[83478]: [error] [client xx.xx.xx.xx] No log handling enabled - turning on stderr logging
httpd[83478]: [error] [client xx.xx.xx.xx] read_config_store open failure on /var/net-snmp/snmpapp.conf
httpd[83478]: [error] [client xx.xx.xx.xx] read_config_store open failure on /var/net-snmp/snmpapp.conf
httpd[83478]: [error] [client xx.xx.xx.xx] read_config_store open failure on /var/net-snmp/snmpapp.conf
httpd[83478]: [error] [client xx.xx.xx.xx] read_config_store open failure on /var/net-snmp/snmpapp.conf
結局原因は良く分からなかったが、これではログさえ見えない。 (..;
■対処
httpd.confにこれを追加する事で、とりあえずログは元に戻った。
SetEnv SNMP_PERSISTENT_FILE /dev/null
http://www.mail-archive.com/net-snmp-coders@lists.sourceforge.net/msg03171.html
こんな書き込みを見つけた。
NET-SNMPのライブラリは、SNMPv3のエンジンID、ブート(起動)回数、
暗号化したパスワードなどを保存するために、設定ファイルを保存します。