Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #11  
Old 4th June 2008, 22:09
lordshadow lordshadow is offline
Member
 
Join Date: Apr 2008
Posts: 89
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi, I've gone over the settings and I still get Forbidden message??

Since the howto above claims that there is a cgi script involved:

Quote:
AddHandler cgi-script .cgi
DirectoryIndex index.
I had a look at my apache2.conf file which has cgi disabled.... I think (as I've never dealt with this before!)


Code:
    #
    # AddHandler allows you to map certain file extensions to "handlers":
    # actions unrelated to filetype. These can be either built into the server
    # or added with the Action directive (see below)
    #
    # To use CGI scripts outside of ScriptAliased directories:
    # (You will also need to add "ExecCGI" to the "Options" directive.)
    #
    #AddHandler cgi-script .cgi
Code:
# Action lets you define media types that will execute a script whenever
# a matching file is called. This eliminates the need for repeated URL
# pathnames for oft-used CGI file processors.
# Format: Action media/type /cgi-script/location
# Format: Action handler-name /cgi-script/location

Would enabling any of these help?

This is also output of my error.log file from /var/log/apache2:

Code:
[Wed Jun 04 22:58:51 2008] [error] [client 192.168.1.40] Directory index forbidden by Options directive: /var/www/munin/
What do you think the problem could be??
Reply With Quote
Sponsored Links
  #12  
Old 5th June 2008, 17:41
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

You can try to enable this line:
Code:
AddHandler cgi-script .cgi
and restart Apache.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #13  
Old 5th June 2008, 21:48
lordshadow lordshadow is offline
Member
 
Join Date: Apr 2008
Posts: 89
Thanks: 0
Thanked 0 Times in 0 Posts
Default

It didn't work

I realy don't understand this as munin was working fine before I tried adding the password???

The only changes I made actually, following the link posted above were:

Code:
htpasswd -c /etc/munin/munin.passwd munin

nano /etc/apache2/sites-available/munin.conf

Alias /munin /var/www/munin/

<directory /var/www/munin/>
        AllowOverride None
        Options ExecCGI FollowSymlinks
        AddHandler cgi-script .cgi
        DirectoryIndex index.cgi
        AuthUserFile /etc/munin/munin.passwd
        AuthType basic
        AuthName "Munin stats"
        require valid-user
</directory>

a2ensite munin.conf
Then restarted Apache
Code:
/etc/init.d/apache2 restart
I just don't even know where to begin checking the problem!

Last edited by lordshadow; 5th June 2008 at 21:52.
Reply With Quote
  #14  
Old 5th June 2008, 21:57
lordshadow lordshadow is offline
Member
 
Join Date: Apr 2008
Posts: 89
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ok I've understood what's going on - Finally

The URL used to resolve for mydomain.com/munin and automatically change to */munin/index.html

however now it has stopped redirrecting so */munin is forbidden but */munin/index.html is fine?

How can I get Apache to redirect again?
Reply With Quote
  #15  
Old 6th June 2008, 11:38
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Add index.html to the DirectoryIndex line.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #16  
Old 9th June 2008, 16:56
lordshadow lordshadow is offline
Member
 
Join Date: Apr 2008
Posts: 89
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks so much that worked!

Is there a way to recover or add plugins like when munin first launches it autodetects alot of services? The reason I am asking is because the NTP plugin stopped functioning after my servers host name changed. I have deleted the file from /etc/ntp/plugins but I don't know how to add it again for it to work properly.

Also is there a way to password Webalizer as I have googled but found nothing?
Reply With Quote
  #17  
Old 10th June 2008, 14:21
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Quote:
Originally Posted by lordshadow View Post
Is there a way to recover or add plugins like when munin first launches it autodetects alot of services? The reason I am asking is because the NTP plugin stopped functioning after my servers host name changed. I have deleted the file from /etc/ntp/plugins but I don't know how to add it again for it to work properly.
What's the output of
Code:
ls -la /etc/munin/plugins/
? What's in /etc/munin/plugin-conf.d/munin-node?

Quote:
Originally Posted by lordshadow View Post
Also is there a way to password Webalizer as I have googled but found nothing?
You can do this with .htaccess. You can find an example how to do this here: http://www.howtoforge.com/server_mon...it_debian_etch (chapter 3).
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #18  
Old 11th June 2008, 23:50
lordshadow lordshadow is offline
Member
 
Join Date: Apr 2008
Posts: 89
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
What's the output of
ls -la /etc/munin/plugins/
Code:
kayasaman@OptiplexGX270D:~$ ls -la /etc/munin/plugins/
total 8
drwxr-xr-x 2 root root 4096 2008-06-06 00:52 .
drwxr-xr-x 5 root root 4096 2008-05-31 09:36 ..
lrwxrwxrwx 1 root root   28 2008-05-31 09:36 cpu -> /usr/share/munin/plugins/cpulrwxrwxrwx 1 root root   27 2008-05-31 09:36 df -> /usr/share/munin/plugins/df
lrwxrwxrwx 1 root root   33 2008-05-31 09:36 df_inode -> /usr/share/munin/plugins/df_inode
lrwxrwxrwx 1 root root   32 2008-05-31 09:36 entropy -> /usr/share/munin/plugins/entropy
lrwxrwxrwx 1 root root   39 2008-05-31 09:36 exim_mailqueue -> /usr/share/munin/plugins/exim_mailqueue
lrwxrwxrwx 1 root root   39 2008-05-31 09:36 exim_mailstats -> /usr/share/munin/plugins/exim_mailstats
lrwxrwxrwx 1 root root   30 2008-05-31 09:36 forks -> /usr/share/munin/plugins/forks
lrwxrwxrwx 1 root root   28 2008-05-31 09:36 if_ath0 -> /usr/share/munin/plugins/if_
lrwxrwxrwx 1 root root   32 2008-05-31 09:36 if_err_ath0 -> /usr/share/munin/plugins/if_err_
lrwxrwxrwx 1 root root   32 2008-05-31 09:36 if_err_eth0 -> /usr/share/munin/plugins/if_err_
lrwxrwxrwx 1 root root   28 2008-05-31 09:36 if_eth0 -> /usr/share/munin/plugins/if_
lrwxrwxrwx 1 root root   35 2008-05-31 09:36 interrupts -> /usr/share/munin/plugins/interrupts
lrwxrwxrwx 1 root root   31 2008-05-31 09:36 iostat -> /usr/share/munin/plugins/iostat
lrwxrwxrwx 1 root root   33 2008-05-31 09:36 irqstats -> /usr/share/munin/plugins/irqstats
lrwxrwxrwx 1 root root   29 2008-05-31 09:36 load -> /usr/share/munin/plugins/load
lrwxrwxrwx 1 root root   31 2008-05-31 09:36 memory -> /usr/share/munin/plugins/memory
lrwxrwxrwx 1 root root   32 2008-05-31 09:36 netstat -> /usr/share/munin/plugins/netstat
lrwxrwxrwx 1 root root   35 2008-05-31 09:36 nfs_client -> /usr/share/munin/plugins/nfs_client
lrwxrwxrwx 1 root root   35 2008-05-31 09:36 open_files -> /usr/share/munin/plugins/open_files
lrwxrwxrwx 1 root root   36 2008-05-31 09:36 open_inodes -> /usr/share/munin/plugins/open_inodes
lrwxrwxrwx 1 root root   34 2008-05-31 09:36 processes -> /usr/share/munin/plugins/processes
lrwxrwxrwx 1 root root   29 2008-05-31 09:36 swap -> /usr/share/munin/plugins/swap
lrwxrwxrwx 1 root root   31 2008-05-31 09:36 vmstat -> /usr/share/munin/plugins/vmstat

Quote:
What's in /etc/munin/plugin-conf.d/munin-node?
Code:
kayasaman@OptiplexGX270D:~$ cat /etc/munin/plugin-conf.d/munin-node
# This file is used to configure how the plugins are invoked.
#
# user <user>         # Set the user to run the plugin as.
# group <group>       # Set the group to run the plugin as.
# command <command>   # Run <command> instead of the plugin. %c expands to
#                       what would normally be run.
# env.<variable>      # Sets <variable> in the plugin's environment, see the
#                       individual plugins to find out which variables they
#                       care about.

[apt]
user root

[courier_mta_mailqueue]
group daemon

[courier_mta_mailstats]
group adm

[courier_mta_mailvolume]
group adm

[cps*]
user root

[exim_mailqueue]
group mail, (Debian-exim)

[exim_mailstats]
group mail, adm

[fw_conntrack]
user root

[hddtemp_smartctl]
user root

[if_*]
user root

[if_err_*]
user nobody

[ip_*]
user root

[mysql*]
user root
env.mysqlopts --defaults-extra-file=/etc/mysql/debian.cnf

[postfix_mailqueue]
user (postfix)

[postfix_mailstats]
group adm

[postfix_mailvolume]
group adm

[smart_*]
user root

[vlan*]
user root
I never had any NTP section even from the start when the NTP file was in: /etc/munin/plugins/
Somehow Munin managed to auto-generate the NTP part but then lost it due to a DNS change.



Also I have been to the website given but my directory structure is slightly different from the howto which I think is what got me stuck when I attempted it the first time then switched and didn't use the .htpasswd and access for Munin.

Quote:
To do this, we create an .htaccess file in /var/www/www.example.com/web/monitoring:

vi /var/www/www.example.com/web/monitoring/.htaccess
This is the directory tree for webalizer on my Debian Etch build:

Code:
kayasaman@OptiplexGX110:/var/www/webalizer$ ls
ctry_usage_200804.png   hourly_usage_200804.png  usage_200806.html
ctry_usage_200805.png   hourly_usage_200805.png  usage.png
ctry_usage_200806.png   hourly_usage_200806.png  webalizer.current
daily_usage_200804.png  index.html               webalizer.hist
daily_usage_200805.png  usage_200804.html
daily_usage_200806.png  usage_200805.html
Would this mean that I would put the .htaccess and .htpasswd files in/var/ww/webalizer???
Reply With Quote
  #19  
Old 12th June 2008, 15:05
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Quote:
Originally Posted by lordshadow View Post
Would this mean that I would put the .htaccess and .htpasswd files in/var/ww/webalizer???
Put the .htaccess file in munin's output directory (I'm not sure if it is /var/www/webalizer on your system) and the .htpasswd file somewhere outside your document root, but make sure that you specify the correct path to it in .htaccess.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #20  
Old 12th June 2008, 15:18
lordshadow lordshadow is offline
Member
 
Join Date: Apr 2008
Posts: 89
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Quote:
Put the .htaccess file in munin's output directory (I'm not sure if it is /var/www/webalizer on your system) and the .htpasswd file somewhere outside your document root, but make sure that you specify the correct path to it in .htaccess.
Sorry are we geting mixed up with topics here because I'm trying to solve 2 things at once!

With the .htaccess and .htpasswd, I want that for webalizer not Munin as I've already got a username and password for Munin via a different method.

For Munin I ask above for the NTP plugin and posted the result as requested.

Sorry if there was a mix up
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ASSP hook for Server Monitoring With munin And monit Slicer HOWTO-Related Questions 2 19th December 2006 20:38
Server Monitoring With munin And monit kdclaver Installation/Configuration 3 14th December 2006 18:52
Munin & Monit Hans Server Operation 16 6th November 2006 17:38
Extension for the monit and munin programs(tut from falko) ColdDoT Server Operation 7 4th May 2006 11:37
Server Monitoring With munin And monit - Page 2 Hans Server Operation 6 28th April 2006 16:17


All times are GMT +2. The time now is 13:50.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.