Munin link not working.

cosmicwombat
Posts: 1144
Member Since:
2006-05-31

I have trixbox 1.0.2 installed and the Munin link comes back with a permission error.

Forbidden

You don't have permission to access /munin/ on this server.

And the permissions look ok?

Robert

--

Robert Keller - Chief Technologist at large
The VoIP Experience
Get Official FreePBX Training



cosmicwombat
Posts: 1144
Member Since:
2006-05-31
Re: Munin link not working.

Anyone have this working?

Robert.

--

Robert Keller - Chief Technologist at large
The VoIP Experience
Get Official FreePBX Training



pat
Posts: 16
Member Since:
2006-06-01
Re: Munin link not working.

do this:

$ chown -R munin:munin /var/log/munin



cosmicwombat
Posts: 1144
Member Since:
2006-05-31
Re: Munin link not working.

No joy.

chown -R munin:munin /var/log/munin

didn't fix.

--

Robert Keller - Chief Technologist at large
The VoIP Experience
Get Official FreePBX Training



pcott
Posts: 124
Member Since:
2006-05-31
Re: Munin link not working.

Im pretty sure it has something to do with the apache config. Im working on it, but am no expert.



jcostom
Posts: 21
Member Since:
2006-06-07
Re: Munin link not working.

It seems to be because of directory ownership of /var/www/html/munin. Chown it to munin:munin and you'll get an index.html created, which will enable you to bring up that directory.



pcott
Posts: 124
Member Since:
2006-05-31
Re: Munin link not working.

I had to add the following directive to httpd.conf

Order allow,deny
Allow from all

Now it works very nicely indeed.



havoc
Posts: 22
Member Since:
2006-06-03
Re: Munin link not working.

it didn't create index.html as for me, I have directory listing enabled so all I see is just

Quote:
Index of /munin

* Parent Directory
* cgi/
* style.css



andrew
Posts: 730
Member Since:
2006-05-30
Re: Munin link not working.

on trixbox apache runs as asterisk:asterisk

try

chown -R asterisk:asterisk /var/www/html/*



cosmicwombat
Posts: 1144
Member Since:
2006-05-31
Re: Munin link not working.

Thanks Andrew, that did it.

Ah, so that is what Munin is. So it is a Netmrg replacement, yes? I like it. A lot. It must have installed Sunday around when trixbox-update.sh became 1.0.0.5 because I have data in the graphs from then. Just could not see it. Cool.

Robert.

--

Robert Keller - Chief Technologist at large
The VoIP Experience
Get Official FreePBX Training



waipeng
Posts: 1
Member Since:
2006-06-12
Re: Munin link not working.

Because munin is run as munin, you will have to set the HTML directory to be writable.

chown -R munin:munin /var/www/html/munin/

How do we let the devs know about this?



oneobserve
Posts: 85
Member Since:
2006-06-06
Re: Munin link not working.

The only two steps that appear to be needed are:

chown -R munin:munin /var/log/munin
chown -R munin:munin /var/www/html/munin/

Once that is done, the next time the munin cronjob fires off, the missing index and support files will be created. Key was to look at your email local to the box and note that it was generating the following email every 5 minutes:

Subject: Cron test -x /usr/bin/munin-cron && /usr/bin/munin-cron

cp: cannot create regular file `/var/www/html/munin/logo.png': Permission denied
cp: cannot create regular file `/var/www/html/munin/definitions.html': Permission denied
Cannot open /var/www/html/munin/localdomain/localhost.localdomain-cpu.html at /usr/share/munin/munin-html line 488.

markh

--

====================================================
Mark A. Holm
InfoArch, Inc.                                  Cell:    (503) 750-9741
7456 SW Baseline, PMB#123.          Office: (503) 943-3202
Hillsboro, OR 97123                     ...



amigliora
Posts: 8
Member Since:
2006-06-01
Re: Munin link not working.

Someone can help on a step by step or a link where we can find how to make munin up and running?

I follow the chown instruction and had the webpage, then I put the cron task in the crontab :

*/5 * * * * munin /usr/bin/munin-cron
and start to do something since I've seen a new file call munin in the cron.d directory, but I can not see any graph.

I don't know where is the missing config to have my munin running.

Thanks



SuprSurfr
Posts: 11
Member Since:
2006-07-04
Re: Munin link not working.

I get this when i click the munin link:
Warning: main(modules//): failed to open stream: No such file or directory in /var/www/html/maint/index.php on line 60



rootkit
Posts: 1
Member Since:
2007-01-09
Re: Munin link not working.

http://yourbox/munin should load up.

But no graphs are popping up, ill stick to cacti :)



rehmans
Posts: 181
Member Since:
2007-06-24
Munin Link not working . . . . .

OK ! I had the same problem. However, upon executing

chown -R asterisk:asterisk /var/www/html/*

I was able to bring up my munin interface up. Nevertheless, the cron daemon fired an email with the following,

Use of uninitialized value in concatenation (.) or string at /usr/lib/perl5/vendor_perl/5.8.5/Munin.pm
line 784.
Use of uninitialized value in concatenation (.) or string at /usr/lib/perl5/vendor_perl/5.8.5/Munin.pm
line 784.
Use of uninitialized value in concatenation (.) or string at /usr/lib/perl5/vendor_perl/5.8.5/Munin.pm
line 784.
Use of uninitialized value in concatenation (.) or string at /usr/lib/perl5/vendor_perl/5.8.5/Munin.pm

What could be the reason for that ? Has to do something with perl ?

--


mobiusworks
Posts: 2
Member Since:
2007-10-05
try chmod -R 775

try

chmod -R 775 /var/www/html/munin
chown -R asterisk:munin /var/www/html/munin



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.