ติดตั้ง munin แล้ว error permission

แก้ยังไงก็ติดpermission ลองแก้หมดทุกอย่างก็ยังไม่ได้ ใครพอมีวิธีแนะนำไหนครับ

[h=1]Forbidden[/h][COLOR=#000000][FONT=Times New Roman]You don’t have permission to access /munin/ on this server.[/FONT][/COLOR]
[COLOR=#000000][FONT=Times New Roman]Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.[/FONT][/COLOR]

chmod o+x /var/www แล้วยังครับ

อ้อแล้วก็ มันทำงานแล้วหรือยัง ถ้า cron ยังไม่ทำงาน มันไม่ขึ้นอะไรมาก็ไม่แปลกน่ะ

รอให้ cron ทำงานก่อนครับ
เมื่อทำงานแล้วมันถึงจะสร้างหน้า index

ทำแล้วครับ แล้วต้องรอ[COLOR=#333333]cronทำงานนานไหมอะครับ ลองทำมาหลายวันแล้วยังไม่ได้เลยครับ ต้องรีสตาร์ตัวไหนอีกไหมครับ [/COLOR]

ผมว่ายังไม่ได้สร้าง symbolic ไปที่ /var/www/munin แหงๆ

หรือไม่ก็ย้าย munin ไปไว้ที่ /var/www/html/munin แต่ไม่ได้แก้ htmldir ใน munin.conf

ลองเช็คดูนะครับ

ในนี้มีแน่นอนครับ /var/www/munin

และใน munin.conf ได้แก้ตามนี้ครับ
dbdir /var/lib/munin
htmldir /var/www/munin
logdir /var/log/munin
rundir /var/run/munin

ผมทำถูกไหมครับ

htmldir /var/www/munin <- ตรงนี้มันผิด DA อ้างจาก /var/www/html เป็น root ครับ

สั่งตามนี้ฮะ ถ้าคุณไม่ได้สร้าง symbolic link ที่ /var/www/html/munin ชี้ไปยัง /var/www/munin

mv /var/www/munin /var/www/html/munin

และแก้ munin.conf ตรง htmldir

htmldir /var/www/html/munin

chmod o+x /var/www ด้วยฮะ

และสั่ง chkconfig munin-node และสั่ง restart munin-node ไปครับ

ผมสั่ง restart munin-node ไม่ได้ครับ
restart: Unknown job: munin-node หมายถึงอะไรครับ

service munin-node restart

แก้แล้วก็ยังติดpermissionอยู่เลยครับ :5c745924:

ไปลองทำตามนี้ใหม่ดูทีครับ http://www.thaihosttalk.com/showthread.php/69716

ถ้ามั่นใจว่าเหมือนเป๊ะแล้ว น่าจะติดที่ permission ไม่ก็เซ๊ท cron ไม่ถูก มันเลยไม่ทำงาน

ไปดู cron logs ว่ามันทำงานหรือเปล่าครับ

su - munin -s /bin/sh -c munin-cron ดูครับ มันรันได้ไหม


permission ของ /var/www 551

cron ต้องแก้ไขไฟล์ /etc/cron.d/munin
*/5 * * * * munin test -x /usr/bin/munin-cron && /usr/bin/munin-cron > /dev/null 2>&1

หรือสั่งแบบนี้ครับ #crontab -e ทำงาน */5 * * * * munin test -x /usr/bin/munin-cron && /usr/bin/munin-cron

สั่งแล้วมันขึ้นแบบนี้ครับ
Can’t locate RRDs.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/s
hare/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/
perl5 /usr/share/perl5 .) at /usr/share/perl5/vendor_perl/Munin/Master/Utils.pm line 22.
BEGIN failed–compilation aborted at /usr/share/perl5/vendor_perl/Munin/Master/U tils.pm line 22.
Compilation failed in require at /usr/share/perl5/vendor_perl/Munin/Master/Updat eWorker.pm line 18.
BEGIN failed–compilation aborted at /usr/share/perl5/vendor_perl/Munin/Master/U pdateWorker.pm line 18.
Compilation failed in require at /usr/share/perl5/vendor_perl/Munin/Master/Updat e.pm line 17.
BEGIN failed–compilation aborted at /usr/share/perl5/vendor_perl/Munin/Master/U pdate.pm line 17.
Compilation failed in require at /usr/share/munin/munin-update line 13.
BEGIN failed–compilation aborted at /usr/share/munin/munin-update line 13.

บางเครื่องผมก็จนปัญญาเหมือนกันครับ Munin สู้ๆ ครับ ทำได้เอามาแชร์หน่อยก็ดีครับ จุ๊บๆ

ผมคิดว่าลงไม่สมบูรณ์ ลองใหม่ฮะ

ไปหา เช็คดูจากนี่เอาละกันนะครับ mirrors.thzhost.com/epel/6/x86_64/

สมมุติใช้ epel 6 ตัวนี้ละกัน

rpm -Uvh http://mirrors.thzhost.com/epel/6/x86_64/epel-release-6-7.noarch.rpm
เมื่อเสร็จ แล้วสั่ง

yum install munin munin-node -y
หลังจากนั้นเข้าไปแก้ munin config ที่

nano -w /etc/munin/munin.conf
หา

htmldir

ใส่เป็น

htmldir /var/www/html/munin

และก็สั่ง

nano -w /etc/cron.d/munin
จะเจอ ราวๆนี้

*/5 * * * * munin test -x /usr/bin/munin-cron && /usr/bin/munin-cron

ก็ให้แก้เป็น

*/5 * * * * munin test -x /usr/bin/munin-cron && /usr/bin/munin-cron > /dev/null 2>&1

แล้วก็สั่ง

chmos o+x /var/www

ตามด้วย

/etc/init.d/munin-node start

แล้วก็สั่ง chkconfig munin-node on

ปล. ผมไม่แน่ใจว่าอาจจะมีอะไรเปลี่ยนรึเปล่านะครับ แต่ที่ขึ้น error มาผมคิดว่าลงไม่สมบูรณ์ ไม่ก็ผิดเวอร์ชั่น เลยเอาของ x64 มาให้ลงแทน ส่วนตัว 64 บิท มันจะต่างจาก 32 บิทนิดหน่อยตอนลง

mirrors thzhost เดี้ยงอยู่ฮะ กำลังกู้คืน T_T

ถ้าจะลบตัวเก่าออกก่อนต้องลบยังไงครับ

yum remove munin munin-node

เช็ค munin.conf ใน /etc/httpd/conf/extra/ ดูครับ