Re: [gentoo-user] monitoring system resource usage
Agreed! Although getting apache, mysql, and nginx plugins fully working is proving to be a little trickier. To get those going it's necessary to edit /etc/munin/plugin-conf.d/munin-node as well as some apache and nginx config. Still working on getting it all 100%. - Grant If you have a fairly basic setup, post what you are using to help others later on. At least it could give someone a config to go by. I promise I will do this once I feel good about my config. - Grant That's good. Sometimes when I am setting up something, I google for the config file to see if I can find something to go by at least. I did that the other day with my xorg.conf file. I found out that when I logout and leave, my monitor never goes to standby. I found a config file that someone posted that had the info I needed. It was MUCH faster than trying to read man pages and find it. I thought about setting up a site or something and putting different config files there and allowing others to post theirs. Thing is, I'm sort of low income and I don't know how much that would end up costing me. I'd do it for free so I'd pay for whatever it was. I think a central place for this sort of thing would be great. Anyway, it may help the next person if you post what works for you and maybe how you are using it. At least give someone a start. If they google, they will find it. I used this as a base which is excellent: http://wiki.gentoo.org/wiki/Munin Extra config is required if you want to get other plugins working like apache, mysql, and nginx The extra config takes place in /etc/munin/plugin-conf.d/munin-node and in whatever program you are configuring the plugin for. This setup assumes the master and node are on the same machine. apache: /etc/munin/plugin-conf.d/munin-node: [apache_*] env.ports 80 env.url http://127.0.0.1:80/server-status?auto /etc/conf.d/apache2: add -D STATUS to APACHE2_OPTS (apache must be compiled with APACHE2_MODULES=status) mysql: /etc/munin/plugin-conf.d/munin-node: [mysql*] env.mysqlopts -u root --password=PASSWORDHERE (I'm still having a problem with the myisam and InnoDB graphs.) nginx: This should work but it doesn't for me yet: http://www.nginxtips.com/nginx-configuration-for-munin/ It's a good idea to change the following for security as long as the master and node are on the same machine: #host * host 127.0.0.1 It's handy to use 'munin-run PLUGIN_NAME' to test a plugin. - Grant
Re: [gentoo-user] monitoring system resource usage
Can anyone recommend a method for monitoring system resource usage in a way that would allow me to correlate a rise in my web server's response time with the usage of a particular system resource if such a correlation exists? I don't need it to be 100% accurate, just accurate enough to be able to make the correlation with a reasonable degree of certainty. http://munin-monitoring.org/ Looks very cool indeed! I am reading more about it now. Do you find it easy to set up and maintain? In my opinion it's very easy to setup. Basically you just merge it, enable your plugins (via symlink), add munin-node to the runlevel and make sure the munin cron job is enabled. Then just browse to http://localhost/munin There's also a entry on the gentoo wiki: http://wiki.gentoo.org/wiki/Munin Do you have CGI graphs working? I can generate CGI HTML and I can CGI zoom on graphs but I can't get munin to generate CGI graphs instead of generating them statically. I'm not sure Gentoo's /etc/apache2/vhosts.d/munin.include is right since it doesn't reference /munin-cgi/munin-cgi-html/ at all. - Grant
[gentoo-user] sendmail: warning: inet_protocols: disabling IPv6
Every time I compile a package I get a message: sendmail: warning: inet_protocols: disabling IPv6 name/address support: Address family not supported by protocol What is it looking for? -- Joseph
Re: [gentoo-user] sendmail: warning: inet_protocols: disabling IPv6
On Tuesday 18 Jun 2013 16:00:38 Joseph wrote: Every time I compile a package I get a message: sendmail: warning: inet_protocols: disabling IPv6 name/address support: Address family not supported by protocol What is it looking for? Probably it is looking for a router (DNS repeater) that resolves DNS queries to IPv6. -- Regards, Mick signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] monitoring system resource usage
On Tuesday 18 Jun 2013 13:55:41 Grant wrote: Can anyone recommend a method for monitoring system resource usage in a way that would allow me to correlate a rise in my web server's response time with the usage of a particular system resource if such a correlation exists? I don't need it to be 100% accurate, just accurate enough to be able to make the correlation with a reasonable degree of certainty. http://munin-monitoring.org/ Looks very cool indeed! I am reading more about it now. Do you find it easy to set up and maintain? In my opinion it's very easy to setup. Basically you just merge it, enable your plugins (via symlink), add munin-node to the runlevel and make sure the munin cron job is enabled. Then just browse to http://localhost/munin There's also a entry on the gentoo wiki: http://wiki.gentoo.org/wiki/Munin Do you have CGI graphs working? I can generate CGI HTML and I can CGI zoom on graphs but I can't get munin to generate CGI graphs instead of generating them statically. I'm not sure Gentoo's /etc/apache2/vhosts.d/munin.include is right since it doesn't reference /munin-cgi/munin-cgi-html/ at all. I haven't tried munin, but in case it helps, you'd want to set user or group to be readable/executable by apache to dynamically be running the cgi scripts when you visit the web page. -- Regards, Mick signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] sendmail: warning: inet_protocols: disabling IPv6
On 06/18/13 16:19, Mick wrote: On Tuesday 18 Jun 2013 16:00:38 Joseph wrote: Every time I compile a package I get a message: sendmail: warning: inet_protocols: disabling IPv6 name/address support: Address family not supported by protocol What is it looking for? Probably it is looking for a router (DNS repeater) that resolves DNS queries to IPv6. -- Regards, Mick It never did it before, it start doing it when I upgraded to new portage -- Joseph
Re: [gentoo-user] sendmail: warning: inet_protocols: disabling IPv6
On 18 June 2013, at 16:00, Joseph wrote: Every time I compile a package I get a message: sendmail: warning: inet_protocols: disabling IPv6 name/address support: Address family not supported by protocol 1. Could you post the output of `grep -i mail /etc/make.conf` please? 2. Could you show us some relevant output indicating the status of the ipv6 USE flag on your system, please? Please show us all packages installed with it activated. I don't have an uptodate Gentoo system handy right now, so I'm not immediately sure the best way to perform that latter. There must be something cleaner and faster than `emerge -ep world | grep -i ipv6`, probably something in Gentoolkit. You get the message when you compile packages, and the error message begins with sendmail - this makes me think you have portage configured (in your make.conf) to send you its output by email (the ewarn, eerror c messages), and that it is your mailer which is giving this warning. Googling the message suggests that your mailer might be Postfix: http://www.google.com/search?q=sendmail:+warning:+inet_protocols:+disabling+IPv6 If so, the second hit looks promising: http://unix.stackexchange.com/a/70962 Stroller.
Re: [gentoo-user] sendmail: warning: inet_protocols: disabling IPv6
On 06/18/13 16:57, Stroller wrote: On 18 June 2013, at 16:00, Joseph wrote: Every time I compile a package I get a message: sendmail: warning: inet_protocols: disabling IPv6 name/address support: Address family not supported by protocol 1. Could you post the output of `grep -i mail /etc/make.conf` please? 2. Could you show us some relevant output indicating the status of the ipv6 USE flag on your system, please? Please show us all packages installed with it activated. I don't have an uptodate Gentoo system handy right now, so I'm not immediately sure the best way to perform that latter. There must be something cleaner and faster than `emerge -ep world | grep -i ipv6`, probably something in Gentoolkit. You get the message when you compile packages, and the error message begins with sendmail - this makes me think you have portage configured (in your make.conf) to send you its output by email (the ewarn, eerror c messages), and that it is your mailer which is giving this warning. Googling the message suggests that your mailer might be Postfix: http://www.google.com/search?q=sendmail:+warning:+inet_protocols:+disabling+IPv6 If so, the second hit looks promising: http://unix.stackexchange.com/a/70962 Stroller. You are correct, I'm using postfix and after emerge system is emailing me the notification. grep -i mail /etc/make.conf PORTAGE_ELOG_SYSTEM=mail PORTAGE_ELOG_MAILURI=root /usr/sbin/sendmail PORTAGE_ELOG_MAILSUBJECT=package \${PACKAGE} merged on \${HOST} with notice I've tried to edit /etc/postfix/main.cf but it does not contain any statement such as inet_protocols It could be something to do with a new portage :-/ -- Joseph
Re: [gentoo-user] sendmail: warning: inet_protocols: disabling IPv6
On 06/18/13 16:57, Stroller wrote: On 18 June 2013, at 16:00, Joseph wrote: Every time I compile a package I get a message: sendmail: warning: inet_protocols: disabling IPv6 name/address support: Address family not supported by protocol 1. Could you post the output of `grep -i mail /etc/make.conf` please? 2. Could you show us some relevant output indicating the status of the ipv6 USE flag on your system, please? Please show us all packages installed with it activated. I don't have an uptodate Gentoo system handy right now, so I'm not immediately sure the best way to perform that latter. There must be something cleaner and faster than `emerge -ep world | grep -i ipv6`, probably something in Gentoolkit. You get the message when you compile packages, and the error message begins with sendmail - this makes me think you have portage configured (in your make.conf) to send you its output by email (the ewarn, eerror c messages), and that it is your mailer which is giving this warning. Googling the message suggests that your mailer might be Postfix: http://www.google.com/search?q=sendmail:+warning:+inet_protocols:+disabling+IPv6 If so, the second hit looks promising: http://unix.stackexchange.com/a/70962 Stroller. Update. Putting: inet_protocols = ipv4 in main.cf and it help the message no longer appears. According to postifix inet_protocols = ipv4 is a default option but I could not find it anywhere inet_protocols in main.cf. What surprises me is that this only happens on my x86 machine my other amd64 is not effected by it. -- Joseph
Re: [gentoo-user] sendmail: warning: inet_protocols: disabling IPv6
On Tue, 18 Jun 2013 12:39:12 -0400, Joseph syscon...@gmail.com wrote: I've tried to edit /etc/postfix/main.cf but it does not contain any statement such as inet_protocols It could be something to do with a new portage :-/ I use inet_protocols = all on my mail system (that way it's dual stack). I bet if you add that line, you'll be good to go. -- R
Re: [gentoo-user] sendmail: warning: inet_protocols: disabling IPv6
On 06/18/13 13:40, Randy Barlow wrote: On Tue, 18 Jun 2013 12:39:12 -0400, Joseph syscon...@gmail.com wrote: I've tried to edit /etc/postfix/main.cf but it does not contain any statement such as inet_protocols It could be something to do with a new portage :-/ I use inet_protocols = all on my mail system (that way it's dual stack). I bet if you add that line, you'll be good to go. -- R I just used inet_protocols = ipv4 nad problem is solved. I think if I use inet_protocols = all I'll be getting the same error message. -- Joseph
[gentoo-user] pycrypto-2.6-r2 fails to build
Hi people! I am trying to build pycrypto, by it fails to merge. Always I get ACCESS VIOLATION. I didn't make the merge as user (with sudo), I am doing it as root from a shell. Not even a shell opened in gnome. Just in a plain terminal session. If anybody of you could tell me where the error might be, I would kindly thank you. Tamer The complete build error is here: http://pastebin.com/raw.php?i=wJsrm2ZH here the pqv: [ebuild U ] dev-python/pycrypto-2.6-r2 [2.6] USE=doc* gmp PYTHON_TARGETS=python2_7%* -python2_5% -python2_6% -python3_1% -python3_2% (-python3_3) and info: Portage 2.1.12.2 (default/linux/amd64/13.0/desktop/gnome, gcc-4.6.3, glibc-2.15-r3, 3.8.13-gentoo x86_64) = System Settings = System uname: Linux-3.8.13-gentoo-x86_64-Intel-R-_Core-TM-2_CPU_6600_@_2.40GHz-with-gentoo-2.2 KiB Mem: 3087856 total,716656 free KiB Swap:3116572 total, 3116572 free Timestamp of tree: Mon, 17 Jun 2013 21:30:01 + ld GNU ld (GNU Binutils) 2.22 app-shells/bash: 4.2_p45 dev-java/java-config: 2.1.12-r1 dev-lang/python: 2.7.3-r3, 3.2.3-r2 dev-util/cmake: 2.8.10.2-r2 dev-util/pkgconfig: 0.28 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.11.8 sys-apps/sandbox: 2.5 sys-devel/autoconf: 2.13, 2.69 sys-devel/automake: 1.11.6, 1.12.6 sys-devel/binutils: 2.22-r1 sys-devel/gcc:4.6.3 sys-devel/gcc-config: 1.7.3 sys-devel/libtool:2.4-r1 sys-devel/make: 3.82-r4 sys-kernel/linux-headers: 3.8 (virtual/os-headers) sys-libs/glibc: 2.15-r3 Repositories: gentoo freeswitch ACCEPT_KEYWORDS=amd64 ACCEPT_LICENSE=* CBUILD=x86_64-pc-linux-gnu CFLAGS=-march=core2 -O3 -pipe CHOST=x86_64-pc-linux-gnu CONFIG_PROTECT=/etc /opt/openfire/resources/security/ /usr/lib64/fax /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions /var/spool/fax/etc CONFIG_PROTECT_MASK=/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c CXXFLAGS=-march=core2 -O3 -pipe DISTDIR=/usr/portage/distfiles EMERGE_DEFAULT_OPTS=--autounmask=n FCFLAGS=-O2 -pipe FEATURES=assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans FFLAGS=-O2 -pipe GENTOO_MIRRORS=ftp://ftp.free.fr/mirrors/ftp.gentoo.org/; LANG=de_DE.UTF-8 LDFLAGS=-Wl,-O1 -Wl,--as-needed MAKEOPTS=-j3 PKGDIR=/usr/portage/packages PORTAGE_CONFIGROOT=/ PORTAGE_RSYNC_OPTS=--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages PORTAGE_TMPDIR=/var/tmp PORTDIR=/usr/portage PORTDIR_OVERLAY=/var/lib/layman/freeswitch SYNC=rsync://rsync.gentoo.org/gentoo-portage USE=X a52 aac acl acpi alsa amd64 apm avahi berkdb bluetooth branding bzip2 cairo cdda cdr cli colord consolekit cracklib crypt cups custom-cflags cxx dbus disk-partition dri dts dvd dvdr eds emboss encode evo exif fam firefox flac fontconfig fortran gdbm gif gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk gtk3 iconv ipv6 java jpeg kde lcms ldap libnotify libsecret mad mmx mng modules mp3 mp4 mpeg mudflap multilib nautilus ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio python qt3 qt3support qt4 readline scanner sdl session socialweb spell sqlite sse sse2 ssl startup-notification svg system-sqlite tcpd tiff truetype udev udisks unicode unlock-notify upower usb vorbis wxwidgets x264 xcb xinerama xml xv xvid zlib ABI_X86=64 ALSA_CARDS=ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci APACHE2_MODULES=actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi%* cgid%* dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias CALLIGRA_FEATURES=kexi words flow plan sheets stage tables krita karbon braindump author CAMERAS=ptp2 COLLECTD_PLUGINS=df interface irq load memory rrdtool swap syslog ELIBC=glibc GPSD_PROTOCOLS=ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx