[링크] 우분투 14.04 Munin 설치 방법
우분투 14.04 Munin 설치 방법
설치후 환경설정에서
# htmldir /var/cache/munin/www 을 # htmldir /var/www/munin/
설치후 500 internel 오류 발생 해결 방법
<?xml version="1.0" encoding="iso-8859-1"?>
에러의 내용
Parse error: syntax error, unexpected T_STRING in /usr/local/www/munin/index.html on line 1
이 경우 php.ini 설정 파일에 short_open_tag 가 On 일때 발생하는 문제이며, short_open_tag 는 <? ?> 형태의 태그 형식을 사용 할수 있도록 해주고 Off 로 설정시 <?php ?> 와 <script> 같은 형태의 태그만 허용 시켜준다.
unexpected T_STRING 에러는 short_open_tag = Off 로 변경 해주시면 해결 된다. 하지만 이 경우에는 <?=$XXX?> 같은 short_open_tag 를 사용하지 못하기 때문에 더 많은 에러를 발생 시킨다.
short_open_tag 를 Off 한 환경에서 가상 호스팅 사용자에게만 On 시켜줄 경우 아래와 같이 설정 후 아파치를 재시작 해주시면 된다.
<VirtualHost *:80>
<Directory "/home/*/public_html/">
Options FollowSymLinks
AllowOverride None
php_value short_open_tag 0
</Directory>
</VirtualHost>
잘 전송되는지 tail -f /var/log/munin/munin-node.log 해서 로그를 확인한다.
2009/10/14-17:35:01 CONNECT TCP Peer: “192.168.0.4:33896″ Local: “192.168.0.5:4949″
2009/10/14-17:40:01 CONNECT TCP Peer: “192.168.0.4:34895″ Local: “192.168.0.5:4949″
이렇게 나온다면 정상.
업데이트가 잘 되는 지 tail -f /var/log/munin/munin-update.log 해서 로그를 확인한다.
Oct 14 18:35:06 [4955] – Fetched service: localhost-server -> memory (0.08 sec)
Oct 14 18:35:07 [4955] – Fetched service: localhost-server -> vmstat (1.06 sec)
Oct 14 18:35:07 [4955] – Fetched node: localhost-server (4.71 sec)
Oct 14 18:35:01 [4954] – Processed node: localhost2 (0.01 sec)
Oct 14 18:35:01 [4954] – Processed domain: localhost2 (0.01 sec)
Oct 14 18:35:07 [4954] – connection from localhost2 -> localhost2 (4957)
Oct 14 18:35:07 [4954] – connection from localhost2 -> localhost2 (4957) closed
Oct 14 18:35:07 [4954] – connection from localhost-server -> localhost-server (4955)
Oct 14 18:35:07 [4954] – connection from localhost-server -> localhost-server (4955) closed
Oct 14 18:35:07 [4954] – Munin-update finished (6.43 sec)
이렇게 나온다면 정상.
크론 탭 정보는 /etc/cron.d/munin
실행유저는 munin유저로
test -x /usr/bin/munin-cron && /usr/bin/munin-cron
링크 : http://www.autoboy.pe.kr/entry/unexpected-TSTRING-error
그 외 오류 정보 : http://igoni.kr/?p=232
▼ 이 게시물의 댓글 + 0
* 엮인글 + 0