[gentoo-user]
-- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Re: [Very OT] - Kill-A-Watt (240V Version) to measure my Gentoo Server Power Usage
On Friday 11 August 2006 11:22, Hamish Marson wrote: Dale wrote: Mike Williams wrote: On Thursday 03 August 2006 19:27, James wrote: The simplist solution is NOBODY puts a 240 VAC power supply into a computer unless it's going to draw some serious current (amps) thus by the nature of it being 240 VAC, you already know it is a power hog. Now, I'm not electrical engineer, but I know my way around a fuse board and electricity having fitted out both our new offices for power, network, and some walls. In the UK, and most (if not all) of Europe, Africa, and Asia too, run on about 240 volts, 230 +-10% I think now. Pretty much the whole world, except the Americas. Well, the USA has the same coming in too. We have 220v to 240v coming in but that is split into different legs for the 110v to 120v stuff. Unless those two legs are in phase, you're still only getting 110V-120V AC. IIRC (And it's from 20 years ago I'm working here) it's not, it's just two legs of the 3 phase generated power. Which means they're 120 deg out of phase, and so you still only get 110-120V. In order to get 220-240V, you'd need 3 phase power. Safer to use a transformer 110V-220V which will lessen the danger of playing with two or three live wires, a misconnection can cause an outage with all sorts of problems generated, died disks and other apparatus. I suspect you get two 110V lines because of current limitations. Not to provide you with 220V which you'r enot going to get from just adding two out of phase lines. (Unless of course the US has wired up two in-phase separate 110V lines. In which case you can get 220V outof it, but I seem to remember a lecture in Eng Sci saying it was common to take 2 of 3 phases to a house in the US alternate which 2 between successive houses. If you are using transformers to reduce it from 220v to 110v, that will waste some energy right there. Transformers are not real efficient. If you touch it and it is warm, that is what you are wasting. That will also make whatever you are cooling with work harder too. Plus you need twice the current at 110V vs 220V. (Volts are big 'V' BTW! Named after Voltaire). Sorry, the french writer Voltaire was not dabbling in science. It was Alessandro Guiseppe Antonio Volta who detected the reaction of different metals on the muscles of a hindlegs of a frog and build the first electric battery from that detection. This means higher line losses as loss is proportional to current. Higher line losses mean that cable length becomes more of a problem. (A 10V drop in 240V is less than 5%. 10V drop in 120V is almost 10%. Much more significant). All-in-all I prefer 240V single phase. So do I, although in itself that voltage is deadly -- Herman Grootaers -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Newbie question re: /usr
On Tuesday 25 April 2006 18:00, K. Mike Bradley wrote: Thanks for the URL, but I had this question after reading this very document. It doesn't explain the history or the reason there are two /bin, /sbin. -Original Message- From: Justin Findlay [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 25, 2006 11:36 AM To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Newbie question re: /usr On 4/25/06, K. Mike Bradley [EMAIL PROTECTED] wrote: I wonder if anyone can explain why /usr was created? It has a /bin and /sbin with similar binaries as the root equivalents. I have read that it's called the secondary hierarchy and it's sharable and meant to be read only (these days) ... but what is it for and why do we have duplication of /bin and /sbin? The duplications is of old. The binaries are to be stored in /sbin; /bin; /usr/bin; /usr/sbin and optionally in /opt/bin or /opt/sbin. The division is not so strange as it seems. In */sbin the binaries placed are used by the systemuser root, that means the binaries can be used by anyone. in */bin the binaries are under user-control that is they are owned by the user who created the binary. In /sbin are therefore the general utilities which are necessary to boot the system, in /bin the rest of the utilities, in /usr and /opt are placed the programs which are installed by the user. The first one is for the standard applications, the latter is for the optional software, although some will install in /usr. Problem however is that the different writers of software do not comply with this division and come up with an other scheme to install their software. That makes maintenance of a system with parts of more than one distribution harder to maintain than in a single distribution, It also makes tracking down bugs harder. I hope this will help. == Herman Grootaers -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] nagios cgi.cfg SOLVED
On Friday 17 February 2006 11:29, Arnau Bria Ramírez wrote: El Thu, 16 Feb 2006 16:46:23 + Arnau Bria Ramírez dijo: In order to let apache move into nagios directories, I add to include apache into nagios group. All my problems moved away! Many thanks to all how read this threat! Stupid of me not to think about this. It is so simple afterwards to think about it, but I was not on my work when I was reading this thread. I had Nagios running for 59 servers and over 400 tests, it took an hour (yes 3600 seconds) to give accurate results about the machines; and I am still no Nagios-guru. thanks -- Herman Grootaers -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] nagios cgi.cfg
On Wednesday 15 February 2006 18:20, Arnau Bria Ramírez wrote: Hi, I've installed nagios on my gentoo box and after some time of configuration I pointed my web-browser to localhost/nagios and found Error: Could not open CGI config file '/etc/nagios/cgi.cfg' for reading! error message. So I check file permission: SrLobo nagios # pwd /etc/nagios SrLobo nagios # ls -lsa cgi.cfg 20 -rw-r--r-- 1 root root 17161 feb 15 16:06 cgi.cfg and I think they're ok (I also tried with 777), but I still have the error message. Nagios is ok: SrLobo nagios # /usr/nagios/bin/nagios -v /etc/nagios/nagios.cfg [...] Total Warnings: 0 Total Errors: 0 Things look okay - No serious problems were detected during the pre-flight check Could anyone help me, please? You just tested the configuration of nagios. To start it run either the startscript in /etc/init.d, or if it does not exists with the same command replacing the -v with -d. That should start nagios, and start also the output on the webpage. Note, that the startup-time for nagios is depending on the number of tests to be done and the time between two successive tests. Success. -- Herman Grootaers -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] nagios cgi.cfg
On Thursday 16 February 2006 12:26, Arnau Bria Ramírez wrote: El Thu, 16 Feb 2006 11:03:12 +0100 Herman Grootaers dijo: You just tested the configuration of nagios. To start it run either the startscript in /etc/init.d, or if it does not exists with the same command replacing the -v with -d. That should start nagios, and start also the output on the webpage. SrLobo nagios # /etc/init.d/nagios status * Caching service dependencies ... [ ok ] * status: started Sorry, I had to copy this output too. Note, that the startup-time for nagios is depending on the number of tests to be done and the time between two successive tests. Well, I think Nagios itself is working fine: SrLobo nagios # cat nagios.log [1140048000] LOG ROTATION: DAILY [1140051357] Auto-save of retention data completed successfully. [1140054957] Auto-save of retention data completed successfully. [1140058557] Auto-save of retention data completed successfully. [1140062157] Auto-save of retention data completed successfully. [1140065757] Auto-save of retention data completed successfully. [1140069357] Auto-save of retention data completed successfully. [1140072957] Auto-save of retention data completed successfully. [1140076557] Auto-save of retention data completed successfully. [1140079834] Caught SIGTERM, shutting down... [1140079835] Nagios 1.3 starting... (PID=10161) [1140079835] Successfully shutdown... (PID=7217) [1140079835] Finished daemonizing... (New PID=10162) [1140083435] Auto-save of retention data completed successfully. [1140087035] Auto-save of retention data completed successfully. SrLobo nagios # cat status.log # Nagios 1.3 Status File [1140089030] PROGRAM;1140079835;10162;1;0;0;1;1;1;1;0;0;1;0 [1140089030] HOST;Afrodita;UP;1140079902;1140022624;0;57211;0;0;0;0;1;1;1;1;0;0.00 ;0;1;1;(Host assumed to be up) [1140089030] SERVICE;Afrodita;HTTP;OK;1/3;HARD;1140088903;1140089203;ACTIVE;1;1;1; 1140022624;0;OK;57211;0;0;0;0;0;1;0;0;1;0;0.00;0;1;1;1;HTTP OK HTTP/1.1 200 OK - 798 bytes in 0.003 seconds [1140089030] SERVICE;Afrodita;PING;OK;1/3;HARD;1140088971;1140089271;ACTIVE;1;1;1; 1140022692;0;OK;57143;0;0;0;0;0;1;0;4;1;0;0.00;0;1;1;1;PING OK - Packet loss = 0%, RTA = 0.33 ms [1140089030] SERVICE;Afrodita;POP3;OK;1/3;HARD;1140088737;1140089037;ACTIVE;1;1;1; 1140022759;0;OK;57076;0;0;0;0;0;1;0;0;1;0;0.00;0;1;1;1;POP OK - 0,017 second response time on port 110 [+OK afrodita Cyrus POP3 v2.1.18-IPv6-Debian-2.1.18-3 server ready [EMAIL PROTECTED]] [1140089030] SERVICE;Afrodita;SMTP;OK;1/3;HARD;1140088925;1140089105;ACTIVE;1;1;1; 1140022827;0;OK;57008;0;0;0;0;0;1;0;0;1;0;0.00;0;1;1;1;SMTP OK - 0,054 sec. response time So Nagios is started correctly. Now another question: is apache running and if so is there an entry in the apache-configuration for the nagios web-site? You must realize that the output of nagios does have to be parsed to a webserver, before you can see it on the screen with your browser. I hope this helped. -- Herman Grootaers -- gentoo-user@gentoo.org mailing list