Gentoo Archives: gentoo-user

From: Grant <emailgrant@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] monitoring system resource usage
Date: Wed, 19 Jun 2013 07:30:38
Message-Id: CAN0CFw1D5+_76d1duZP3PYG3dUMZ8AD3w6oyecBxM2AMg7WUgA@mail.gmail.com
In Reply to: Re: [gentoo-user] monitoring system resource usage by Mick
1 >> >>>> Can anyone recommend a method for monitoring system resource usage in
2 >> >>>> a way that would allow me to correlate a rise in my web server's
3 >> >>>> response time with the usage of a particular system resource if such a
4 >> >>>> correlation exists? I don't need it to be 100% accurate, just
5 >> >>>> accurate enough to be able to make the correlation with a reasonable
6 >> >>>> degree of certainty.
7 >> >>>
8 >> >>> http://munin-monitoring.org/
9 >> >>
10 >> >> Looks very cool indeed! I am reading more about it now. Do you find
11 >> >> it easy to set up and maintain?
12 >> >
13 >> > In my opinion it's very easy to setup. Basically you just merge it,
14 >> > enable your plugins (via symlink), add munin-node to the runlevel and
15 >> > make sure the munin cron job is enabled. Then just browse to
16 >> > http://localhost/munin
17 >> >
18 >> > There's also a entry on the gentoo wiki:
19 >> > http://wiki.gentoo.org/wiki/Munin
20 >>
21 >> Do you have CGI graphs working? I can generate CGI HTML and I can CGI
22 >> zoom on graphs but I can't get munin to generate CGI graphs instead of
23 >> generating them statically. I'm not sure Gentoo's
24 >> /etc/apache2/vhosts.d/munin.include is right since it doesn't
25 >> reference /munin-cgi/munin-cgi-html/ at all.
26 >
27 > I haven't tried munin, but in case it helps, you'd want to set user or group
28 > to be readable/executable by apache to dynamically be running the cgi scripts
29 > when you visit the web page.
30
31 The thing is, there are 3 CGI components. There is HTML generation,
32 graph zooming, and graph generation. The first two work for me so CGI
33 must be working. I think there is a problem with the Gentoo's
34 munin.include for apache since it doesn't reference
35 /munin-cgi/munin-cgi-graph/. I've filed a bug:
36
37 https://bugs.gentoo.org/show_bug.cgi?id=473698
38
39 Actually, I think I just fixed it and I've updated the bug. It's a
40 Gentoo issue.
41
42 - Grant