[CentOS] DHCP/DNS server for LAN with mainly Windows clients : Outlook Express vs. Webmail problem
Hi, I recently setup a CentOS 5 file server for a small LAN consisting of 15 Windows XP clients. The LAN is eventually expected to migrate to Linux, at least some of the client machines. The previous setup made by a local Windows-only computer firm was an unhealthy mix of static and dynamic IP addresses with conflicting adresses, etc. First thing I undertook was clean up this mess by setting up a DHCP + local cache DNS server on the Linux machine. Now the curious problem I have: IP addresses are attributed correctly, people can surf on the internet all right. But the only thing they can't seem to do is send mail with Outlook or Outlook Express. I have to revert to the ISP's DNS, but so I lose the benefit of local DNS. And I don't have the slightest clue as to why that is so. Here's my setup, maybe one of the gurus on the list has an idea: 1) /etc/dhcpd.conf (the fixed addresses are attributed because the local printer has a page counting device that works with IP adresses): --8<--- ddns-update-style interim; authoritative; default-lease-time 86400; max-lease-time 86400; option broadcast-address 192.168.0.255; option subnet-mask 255.255.255.0; option routers 192.168.0.1; option domain-name-servers 192.168.0.2; option domain-name "regards.arles"; subnet 192.168.0.0 netmask 255.255.255.0 { range 192.168.0.100 192.168.0.150; } host poste1 { hardware ethernet 00:26:18:B7:D6:10; fixed-address 192.168.0.101; option host-name "poste1"; } host poste2 { hardware ethernet 00:24:81:69:A3:DE; fixed-address 192.168.0.102; option host-name "poste2"; } host poste3 { hardware ethernet 00:1B:FC:6F:66:2C; fixed-address 192.168.0.103; option host-name "poste3"; } ... --8<--- For setting up Bind, I used a "dummy" domain name, like I usually do in LAN's. For example, my home network is "presbytere.montpezat", the local town hall's network is "mairie.montpezat". The network here is "regards.arles". ("Regards" is the name of a local association, and "Arles" is the city in South France where it's located). 2) /etc/named.conf: --8<--- options { directory "/var/named"; listen-on { 127.0.0.1; 192.168.0.0/24; }; }; zone "." IN { type hint; file "named.root"; }; zone "localhost" IN { type master; file "zone.localhost"; allow-update { none; }; }; zone "0.0.127.in-addr.arpa" IN { type master; file "revp.127.0.0"; allow-update { none; }; }; zone "regards.arles" IN { type master; file "zone.arles.regards"; }; zone "0.168.192.in-addr.arpa" { type master; file "revp.192.168.0"; }; --8<--- 3) /var/named/named.root: --8<--- ; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5 <<>> ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 42704 ;; flags: qr rd ra; QUERY: 1, ANSWER: 13, AUTHORITY: 0, ADDITIONAL: 14 ;; QUESTION SECTION: ;. IN NS ;; ANSWER SECTION: . 106187 IN NS h.root-servers.net. . 106187 IN NS i.root-servers.net. . 106187 IN NS j.root-servers.net. . 106187 IN NS k.root-servers.net. . 106187 IN NS l.root-servers.net. . 106187 IN NS m.root-servers.net. . 106187 IN NS a.root-servers.net. . 106187 IN NS b.root-servers.net. . 106187 IN NS c.root-servers.net. . 106187 IN NS d.root-servers.net. . 106187 IN NS e.root-servers.net. . 106187 IN NS f.root-servers.net. . 106187 IN NS g.root-servers.net. ;; ADDITIONAL SECTION: a.root-servers.net. 401883 IN A 198.41.0.4 a.root-servers.net. 401883 IN 2001:503:ba3e::2:30 b.root-servers.net. 401883 IN A 192.228.79.201 c.root-servers.net. 401883 IN A 192.33.4.12 d.root-servers.net. 401883 IN A 128.8.10.90 e.root-servers.net. 401883 IN A 192.203.230.10 f.root-servers.net. 401883 IN A 192.5.5.241 f.root-servers.net. 401883 IN 2001:500:2f::f g.root-servers.net. 401883 IN A 192.112.36.4 h.root-servers.net. 401883 IN A 128.63.2.53 h.root-servers.net. 401883 IN 2001:500:1::803f:235 i.root-servers.net. 401883 IN A 192.36.148.17 j.root-servers.net. 192587 IN A 192.58.128.30 j.root-servers.net. 192587 IN 2001:503:c27::2:30 ;; Query time: 6 msec ;; SERVER: 192.168.1.252#53(192.168.1.252) ;; WHEN: Wed May 26 18:
[CentOS] Service monitoring/"Monit"?
Has anybody here tried the "Monit" utility (http://mmonit.com/monit/)? I need to set up some kind of "watchdog" functionality for a custom service otherwise started via init (i.e. via a script in /etc/init.d + rc*.d links managed by chkconfig) and it seems like this system may give me nearly what I want. However, something that concerns me about it, is that it appears to take full ownership of the services it monitors, and pretty much bypass the init system, in that once I've told monit to watch a process, it makes not difference if the associated service is enabled or not (via "chkconfig") , and there is no good way to fully stop the service, besides removing the Monit config or disabling Monit itself. (Or maybe I can use special "monit" commands, too, but that means precisely that Monit "owns" the service, which I somehow don't quite like.) What I'd really like, is to have my process watched and restarted if it goes a way, but only if it had already been started via "init" or through the "service" command, or possibly direct execution of the "init.d" script. This also means it should be restarted if it crashes or if is stopped via a direct "kill", but not after "service stop" or similar. Which might mean it all boils down to checking if, and only if, the pid file for the service already exists. (Does that make any sense?) So, does anyone know if there is a way to convince Monit to do this for me? Or alternatively, is there a different tool that might do the job? And yes, I know it shouldn't be that hard to design a program/script/cron job to do it all for me, but I still think not having to maintain another software component would be nice... - Toralf This e-mail, including any attachments and response string, may contain proprietary information which is confidential and may be legally privileged. It is for the intended recipient only. If you are not the intended recipient or transmission error has misdirected this e-mail, please notify the author by return e-mail and delete this message and any attachment immediately. If you are not the intended recipient you must not use, disclose, distribute, forward, copy, print or rely on this e-mail in any way except as permitted by the author. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Service monitoring/"Monit"?
Toralf Lund píše v Pá 11. 06. 2010 v 09:21 +0200: > Has anybody here tried the "Monit" utility (http://mmonit.com/monit/)? I > need to set up some kind of "watchdog" functionality for a custom > service otherwise started via init (i.e. via a script in /etc/init.d + > rc*.d links managed by chkconfig) and it seems like this system may give > me nearly what I want. However, something that concerns me about it, is > that it appears to take full ownership of the services it monitors, and > pretty much bypass the init system, in that once I've told monit to > watch a process, it makes not difference if the associated service is > enabled or not (via "chkconfig") , and there is no good way to fully > stop the service, besides removing the Monit config or disabling Monit > itself. (Or maybe I can use special "monit" commands, too, but that > means precisely that Monit "owns" the service, which I somehow don't > quite like.) > > What I'd really like, is to have my process watched and restarted if it > goes a way, but only if it had already been started via "init" or > through the "service" command, or possibly direct execution of the > "init.d" script. This also means it should be restarted if it crashes or > if is stopped via a direct "kill", but not after "service stop" > or similar. Which might mean it all boils down to checking if, and only > if, the pid file for the service already exists. (Does that make any > sense?) > > So, does anyone know if there is a way to convince Monit to do this for > me? Or alternatively, is there a different tool that might do the job? > > And yes, I know it shouldn't be that hard to design a > program/script/cron job to do it all for me, but I still think not > having to maintain another software component would be nice... Try this: 1. put to /etc/monit.conf this line: include /etc/monit.d/*.conf 2. for active services make you own files in /etc/monit.d, ex. /etc/monit.d/sshd.conf: # ssh control check process sshd with pidfile /var/run/sshd.pid start program "/etc/init.d/sshd start" stop program "/etc/init.d/sshd stop" if 5 restarts within 5 cycles then timeout 3. when you change service to chkconfig sshd off rename /etc/monit.d/sshd.conf to something different: mv /etc/monit.d/sshd.conf /etc/monit.d/sshd.conf-dontuse Pavel ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Service monitoring/"Monit"?
Pavel Lisý wrote: > Toralf Lund píše v Pá 11. 06. 2010 v 09:21 +0200: > >> Has anybody here tried the "Monit" utility (http://mmonit.com/monit/)? I >> need to set up some kind of "watchdog" functionality for a custom >> service otherwise started via init (i.e. via a script in /etc/init.d + >> rc*.d links managed by chkconfig) and it seems like this system may give >> me nearly what I want. However, something that concerns me about it, is >> that it appears to take full ownership of the services it monitors, and >> pretty much bypass the init system, in that once I've told monit to >> watch a process, it makes not difference if the associated service is >> enabled or not (via "chkconfig") , and there is no good way to fully >> stop the service, besides removing the Monit config or disabling Monit >> itself. (Or maybe I can use special "monit" commands, too, but that >> means precisely that Monit "owns" the service, which I somehow don't >> quite like.) >> >> What I'd really like, is to have my process watched and restarted if it >> goes a way, but only if it had already been started via "init" or >> through the "service" command, or possibly direct execution of the >> "init.d" script. This also means it should be restarted if it crashes or >> if is stopped via a direct "kill", but not after "service stop" >> or similar. Which might mean it all boils down to checking if, and only >> if, the pid file for the service already exists. (Does that make any >> sense?) >> >> So, does anyone know if there is a way to convince Monit to do this for >> me? Or alternatively, is there a different tool that might do the job? >> >> And yes, I know it shouldn't be that hard to design a >> program/script/cron job to do it all for me, but I still think not >> having to maintain another software component would be nice... >> > Try this: > > 1. put to /etc/monit.conf this line: > include /etc/monit.d/*.conf > > 2. for active services make you own files in /etc/monit.d, > ex. /etc/monit.d/sshd.conf: > > # ssh control > check process sshd with pidfile /var/run/sshd.pid > start program "/etc/init.d/sshd start" > stop program "/etc/init.d/sshd stop" > if 5 restarts within 5 cycles then timeout > > 3. when you change service to > chkconfig sshd off > > rename /etc/monit.d/sshd.conf to something different: > mv /etc/monit.d/sshd.conf /etc/monit.d/sshd.conf-dontuse > I think you are missing my point. This is precisely what I do not want to do. The last bit here, I mean - i.e. I'm asking for a way to set up so the "rename /etc/monit.d/sshd.conf to something different" step won't be necessary. - Toralf This e-mail, including any attachments and response string, may contain proprietary information which is confidential and may be legally privileged. It is for the intended recipient only. If you are not the intended recipient or transmission error has misdirected this e-mail, please notify the author by return e-mail and delete this message and any attachment immediately. If you are not the intended recipient you must not use, disclose, distribute, forward, copy, print or rely on this e-mail in any way except as permitted by the author. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Service monitoring/"Monit"?
On 11/06/2010 08:21, Toralf Lund wrote: > Has anybody here tried the "Monit" utility (http://mmonit.com/monit/)? For what you are trying to do - take a look at God ( http://god.rubyforge.org/ ) instead or : as lesser complex solution - bluepill ( http://github.com/arya/bluepill ) I've used Monit quite extensively in the past and found it to be quite limiting in that it wont let you easily wrap your app into a self managed bundle, or be able to use arbitrary conditions to influence monitoring state. Eg. When you are doing a yum upgrade httpd; you dont really want monit to try starting httpd when the rpm -e has just happened. In your specific case, it will be nearly impossible for you to get Monit to do something like ' keen an eye on sshd, but only if it was already running and keep it in its state I left it manually.' hth - KB ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Service monitoring/"Monit"?
> > > I think you are missing my point. This is precisely what I do not want > to do. The last bit here, I mean - i.e. I'm asking for a way to set up > so the "rename /etc/monit.d/sshd.conf to something different" step won't > be necessary. Depending on how much effort you are willing to put into this, you can get nagios to do this. There are two options: 1) Create a custom plugin that checks "service [app] status" or directly check the pid file and pgrep/grep for the app. 2) Write a small script that you stick into the service init script that tells nagios to start or stop monitoring a service. I used perl and LWP to do something very similar but you can probably find another CPAN module or something similar to act as interface to nagios. If you are comfortable with scripting and nagios you can bang out a solution in an afternoon. Option 1 you can probably do in less than an hour and is probably better for you. - Geoff Galitz Blankenheim NRW, Germany http://www.galitz.org/ http://german-way.com/blog/ ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] where to download CENTOS 5.5 DVD version?
I want to CENTOS download side and tried to download CENTOS 5.5 X86_64 DVD version. I can NOT find on any site. Any ideal? Thanks. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] where to download CENTOS 5.5 DVD version?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 thus mcclnx mcc spake: > I want to CENTOS download side and tried to download CENTOS 5.5 X86_64 DVD > version. I can NOT find on any site. > > Any ideal? http://www.centos.org/modules/tinycontent/index.php?id=30 Check for your region and be sure that the mirror provides a DVD iso. > Thanks. HTH, Timo -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQFMEgU6fg746kcGBOwRAiMyAJ4tky0k/TF4cbgf7IzGb8B4uyaxkgCfV/J4 5Cb9tj95Pbo9AyXQvuQuhoY= =u0yv -END PGP SIGNATURE- ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Service monitoring/"Monit"?
Karanbir Singh wrote: > On 11/06/2010 08:21, Toralf Lund wrote: > >> Has anybody here tried the "Monit" utility (http://mmonit.com/monit/)? >> > > For what you are trying to do - take a look at God ( > http://god.rubyforge.org/ ) instead or : as lesser complex solution - > bluepill ( http://github.com/arya/bluepill ) > OK, thanks, I'll have a look. > I've used Monit quite extensively in the past and found it to be quite > limiting in that it wont let you easily wrap your app into a self > managed bundle, That's actually part of what I want to do. I'd like to have an rpm package install put a "real" monitoring config in /etc/monitors.d, but I can't really do it if that means automatically starting the service - it must be possible (and simple) to install the software without forcing it to run directly. > or be able to use arbitrary conditions to influence > monitoring state. Eg. When you are doing a yum upgrade httpd; you dont > really want monit to try starting httpd when the rpm -e has just happened. > Quite. But if you could set up the way I want, it wouldn't, provided that it was stopped in a controlled manner (which is something one of the rpm scriptlets might do.) > In your specific case, it will be nearly impossible for you to get Monit > to do something like ' keen an eye on sshd, but only if it was already > running and keep it in its state I left it manually.' > Too bad, really, since it seems like it very nearly has what's needed. There is also a "dependency" mechanism that would do this, if only it implemented real, hard dependencies. Right now, (as far as I can tell) "depending" on another service merely means that monit will try to start the other service first - the "dependent" service will not be stopped or skipped if the operation fails. - Toralf This e-mail, including any attachments and response string, may contain proprietary information which is confidential and may be legally privileged. It is for the intended recipient only. If you are not the intended recipient or transmission error has misdirected this e-mail, please notify the author by return e-mail and delete this message and any attachment immediately. If you are not the intended recipient you must not use, disclose, distribute, forward, copy, print or rely on this e-mail in any way except as permitted by the author. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] where to download CENTOS 5.5 DVD version?
Strange. http://isoredirect.centos.org/centos/5/isos/x86_64/ On Fri, 2010-06-11 at 17:40 +0800, mcclnx mcc wrote: > I want to CENTOS download side and tried to download CENTOS 5.5 X86_64 DVD > version. I can NOT find on any site. > > Any ideal? > > Thanks. > > > > ___ > CentOS mailing list > CentOS@centos.org > http://lists.centos.org/mailman/listinfo/centos ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] DHCP/DNS server for LAN with mainly Windows clients : Outlook Express vs. Webmail problem
2010/6/11 Niki Kovacs : > Now the curious problem I have: IP addresses are attributed correctly, > people can surf on the internet all right. But the only thing they can't > seem to do is send mail with Outlook or Outlook Express. I have to > revert to the ISP's DNS, but so I lose the benefit of local DNS. And I > don't have the slightest clue as to why that is so. > Perhaps, they cannot resolve the IP address of their outgoing SMTP server? ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] MooseFS repository
Hi, A repository for MooseFS is just born. It provides CentOS 5.5 SRPMS, i386 and x86_64. cd /etc/yum.repos.d/; wget http://centos.kodros.fr/moosefs.repo ; yum install mfs Two points: - DNS may not be up to date where you are. The subdomain has just been created. Please be patient. - I have made an update to the .spec file, to move config files to /etc/mfs instead of /etc. I had no time to test it yet. I guess it works :) What is MooseFS ? MooseFS is a fault tolerant, network distributed file system. It spreads data over several physical servers which are visible to the user as one resource. For standard file operations MooseFS acts as other Unix-alike file systems: * A hierarchical structure (directory tree) * Stores POSIX file attributes (permissions, last access and modification times) * Supports special files (block and character devices, pipes and sockets) * Symbolic links (file names pointing to target files, not necessarily on MooseFS) and hard links (different names of files which refer to the same data on MooseFS) * Access to the file system can be limited based on IP address and/or password Distinctive features of MooseFS are: * High reliability (several copies of the data can be stored across separate computers) * Capacity is dynamically expandable by attaching new computers/disks * Deleted files are retained for a configurable period of time (a file system level "trash bin") * Coherent snapshots of files, even while the file is being written/accessed For more details, see http://www.moosefs.org Feedback welcome ! Thanks, Laurent. pgpCZQhS6Ln2z.pgp Description: PGP signature ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Service monitoring/"Monit"?
On 11/06/2010 10:49, Toralf Lund wrote: > That's actually part of what I want to do. I'd like to have an rpm > package install put a "real" monitoring config in /etc/monitors.d, but I > can't really do it if that means automatically starting the service - it > must be possible (and simple) to install the software without forcing it > to run directly. God and Bluepill can both do these things. Its a classic case of what I call reactive-monitoring. So you only look at specific conditions - then wrap them around a policy each. The problem with monit is that its unable to handle more than one condition in one run cycle, and its extremely hard to do co-ordinated scheduling across tasks using the monit config files. Imho, Monit is a good implementation of init; and useful for situations where the app can handle contingencies and policy itself. > Too bad, really, since it seems like it very nearly has what's needed. > There is also a "dependency" mechanism that would do this, Deps are important, specially when you daisy chain tasks. eg. Nagios to monitor machine state, user facing external ( or cross machine ) interfaces, and BluePill. Then have BluePill handle app state locally. - KB ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Service monitoring/"Monit"?
Geoff Galitz wrote: >> I think you are missing my point. This is precisely what I do not want >> to do. The last bit here, I mean - i.e. I'm asking for a way to set up >> so the "rename /etc/monit.d/sshd.conf to something different" step won't >> be necessary. >> > > > Depending on how much effort you are willing to put into this, you can get > nagios to do this. There are two options: > Hmmm... I've used Nagios before, but it must be 10 years ago now, so probably I'd have to re-learn it. But I'm sure it could be done. I have a feeling that introducing nagios monitoring is a little too involved, though. I want to distribute the setup to external systems, so ideally there should be one "monitoring" package install and a simple "enable" command at the most, in addition to installation of the actual software. rpm -Uvh monit-.rpm chkconfig monit on Is really quite ideal, except for the fact that it only nearly gives me what I want :-( But thanks anyway, - Toralf > 1) Create a custom plugin that checks "service [app] status" or directly > check the pid file and pgrep/grep for the app. > > 2) Write a small script that you stick into the service init script that > tells nagios to start or stop monitoring a service. I used perl and LWP to > do something very similar but you can probably find another CPAN module or > something similar to act as interface to nagios. > > > If you are comfortable with scripting and nagios you can bang out a solution > in an afternoon. Option 1 you can probably do in less than an hour and is > probably better for you. > > - > Geoff Galitz > Blankenheim NRW, Germany > http://www.galitz.org/ > http://german-way.com/blog/ > > > > ___ > CentOS mailing list > CentOS@centos.org > http://lists.centos.org/mailman/listinfo/centos > This e-mail, including any attachments and response string, may contain proprietary information which is confidential and may be legally privileged. It is for the intended recipient only. If you are not the intended recipient or transmission error has misdirected this e-mail, please notify the author by return e-mail and delete this message and any attachment immediately. If you are not the intended recipient you must not use, disclose, distribute, forward, copy, print or rely on this e-mail in any way except as permitted by the author. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Service monitoring/"Monit"?
Karanbir Singh wrote: > On 11/06/2010 10:49, Toralf Lund wrote: > >> That's actually part of what I want to do. I'd like to have an rpm >> package install put a "real" monitoring config in /etc/monitors.d, but I >> can't really do it if that means automatically starting the service - it >> must be possible (and simple) to install the software without forcing it >> to run directly. >> > > God and Bluepill can both do these things. Its a classic case of what I > call reactive-monitoring. OK. From reading the docs on the web sites, there are a number of things that are not quite clear, like what the "process" tests actually do, or how I might combine a file test ("does the pid file xist"?) with them (f that's what I want. This is perhaps partly because I don't speak Ruby, and I'm sure what I want is doable... Do you happen to know if any of these tools are available from yum repositories and/or in rpm package form? > So you only look at specific conditions - then > wrap them around a policy each. The problem with monit is that its > unable to handle more than one condition in one run cycle, and its > extremely hard to do co-ordinated scheduling across tasks using the > monit config files. > > Imho, Monit is a good implementation of init; and useful for situations > where the app can handle contingencies and policy itself. > > >> Too bad, really, since it seems like it very nearly has what's needed. >> There is also a "dependency" mechanism that would do this, >> > > Deps are important, Definitely. But do my mind, "service A depends on service B" should mean that if service B isn't active, and can't be started, then there will be no attempt to start service B, either - and there might even be an attempt to stop it if it's already running. Not so with Monit, like I said... - Toralf > specially when you daisy chain tasks. eg. Nagios to > monitor machine state, user facing external ( or cross machine ) > interfaces, and BluePill. Then have BluePill handle app state locally. > > - KB > > ___ > CentOS mailing list > CentOS@centos.org > http://lists.centos.org/mailman/listinfo/centos > This e-mail, including any attachments and response string, may contain proprietary information which is confidential and may be legally privileged. It is for the intended recipient only. If you are not the intended recipient or transmission error has misdirected this e-mail, please notify the author by return e-mail and delete this message and any attachment immediately. If you are not the intended recipient you must not use, disclose, distribute, forward, copy, print or rely on this e-mail in any way except as permitted by the author. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Service monitoring/"Monit"?
> I have a feeling that introducing nagios monitoring is a little too > involved, though. I want to distribute the setup to external systems, so > ideally there should be one "monitoring" package install and a simple > "enable" command at the most, in addition to installation of the actual > software. > > rpm -Uvh monit-.rpm > chkconfig monit on > > Is really quite ideal, except for the fact that it only nearly gives me > what I want :-( Gotcha. Would a simple shell script be sufficient? Something like: --- while :## loop forever do /sbin/service [app] status if [$? -ne 0 ]; ## services which should be running, but are dead ## return a non-zero status code then service [app] restart fi sleep 120## sleep for about two minutes do --- Adding mail notifications and other standard functions would be trivial. To monitor various services just create add a for loop in there. Just a thought. -Geoff - Geoff Galitz Blankenheim NRW, Germany http://www.galitz.org/ http://german-way.com/blog/ ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Service monitoring/"Monit"?
Geoff Galitz wrote: > >> I have a feeling that introducing nagios monitoring is a little too >> involved, though. I want to distribute the setup to external systems, so >> ideally there should be one "monitoring" package install and a simple >> "enable" command at the most, in addition to installation of the actual >> software. >> >> rpm -Uvh monit-.rpm >> chkconfig monit on >> >> Is really quite ideal, except for the fact that it only nearly gives me >> what I want :-( >> > > > Gotcha. Would a simple shell script be sufficient? Something like: > Yeah, I might just end up doing something like this... I suppose I could also have "cron" control the "iterations" rather than doing a loop with wait, but that's just a matter of taste... > --- > while :## loop forever > do > /sbin/service [app] status > if [$? -ne 0 ]; ## services which should be running, but are dead >## return a non-zero status code > then > service [app] restart > fi > sleep 120## sleep for about two minutes > do > --- > > Adding mail notifications and other standard functions would be trivial. To > monitor various services just create add a for loop in there. > Just a thought. > Yep. Maybe it can be that simple. I suppose I just wanted to know if somebody else had published something that would essentially be this script with a few of the trivial extensions you mention, as I don't want to re-invent the wheel even if it's a very basic one. But perhaps not... - Toralf > -Geoff > > - > Geoff Galitz > Blankenheim NRW, Germany > http://www.galitz.org/ > http://german-way.com/blog/ > > > ___ > CentOS mailing list > CentOS@centos.org > http://lists.centos.org/mailman/listinfo/centos > This e-mail, including any attachments and response string, may contain proprietary information which is confidential and may be legally privileged. It is for the intended recipient only. If you are not the intended recipient or transmission error has misdirected this e-mail, please notify the author by return e-mail and delete this message and any attachment immediately. If you are not the intended recipient you must not use, disclose, distribute, forward, copy, print or rely on this e-mail in any way except as permitted by the author. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Service monitoring/"Monit"?
On 11/06/2010 12:25, Toralf Lund wrote: > From reading the docs on the web sites, there are a number of things > that are not quite clear, like what the "process" tests actually do, or > how I might combine a file test ("does the pid file xist"?) with them (f > that's what I want. This is perhaps partly because I don't speak Ruby, > and I'm sure what I want is doable... Ok, that might be a bit of an issue for you - but basically, you get an object that you can do any sort of tests on. eg restart.condition(:memory_usage) do |mu| mu.above = 1024.megabytes mu.times = [ 5,7 ] end Which will restart the process if 5 of the last 7 checks indicated it was using more than 1G of ram. Its basically just ruby and coding around it, so you can define what the logic or smartness you want around the monitoring and just code it in. > Do you happen to know if any of these tools are available from yum > repositories and/or in rpm package form? Not that I am aware of, I've been using them from an internal repo we have here at work, but thats heavily optimised to our own specific requirements ( eg. running on ruby 191 etc ). There is a gem2spec app that will hapily convert a ruby gem into a rpm spec file. > Definitely. But do my mind, "service A depends on service B" should mean > that if service B isn't active, and can't be started, then there will be > no attempt to start service B, either - and there might even be an > attempt to stop it if it's already running. Not so with Monit, like I > said... This is where the flexibility of God comes into play, you can write any sort of logic around the conditionals. - KB ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] script question
Hi all, in a script if I have: VERSION="3.2.0" I can do: echo jj-$VERSION-jj and get jj-3.2.0-jj however if I do: echo jj_$VERSION_jj I get jj_ How do I get the $VERSION to work with the underscores like the dashes do. Thanks, Jerry ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] script question
On Fri, Jun 11, 2010 at 10:04 AM, Jerry Geis wrote: > Hi all, > > > in a script if I have: > VERSION="3.2.0" > > I can do: > echo jj-$VERSION-jj > and get jj-3.2.0-jj > > however if I do: > echo jj_$VERSION_jj > I get jj_ > > How do I get the $VERSION to work with the underscores like the dashes do. > You can use ${VERSION} to separate it. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] script question
> however if I do: > echo jj_$VERSION_jj > I get jj_ > > How do I get the $VERSION to work with the underscores like the dashes > do. echo jj_${VERSION}_jj ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] script question
> > How do I get the $VERSION to work with the underscores like > the dashes do. echo JJ\_$VERSION\_JJ *** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept for the presence of computer viruses. www.Hubbell.com - Hubbell Incorporated** ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] script question
On Fri, Jun 11, 2010 at 10:04 AM, Jerry Geis wrote: > Hi all, > > > in a script if I have: > VERSION="3.2.0" > > I can do: > echo jj-$VERSION-jj > and get jj-3.2.0-jj > > however if I do: > echo jj_$VERSION_jj > I get jj_ > > How do I get the $VERSION to work with the underscores like the dashes do. I see 4 ways: echo jj_${VERSION}_jj echo jj_"$VERSION"_jj echo jj-$VERSION-jj | tr '-' '_' printf jj_%s_jj $VERSION I am sure there are others. HTH, -Bob ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] MooseFS repository
On Friday 11 June 2010, Laurent Wandrebeck wrote: > Hi, > > A repository for MooseFS is just born. It provides CentOS 5.5 SRPMS, > i386 and x86_64. > > cd /etc/yum.repos.d/; wget http://centos.kodros.fr/moosefs.repo ; yum > install mfs A general security comment. Doing the above means downloading and running code from kodros.fr as root on your systems. /Peter signature.asc Description: This is a digitally signed message part. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] script question
> On Fri, Jun 11, 2010 at 10:04 AM, Jerry Geis > wrote: >> in a script if I have: >> VERSION="3.2.0" >> >> I can do: >> echo jj-$VERSION-jj >> and get jj-3.2.0-jj >> >> however if I do: >> echo jj_$VERSION_jj >> I get jj_ >> >> How do I get the $VERSION to work with the underscores like the dashes echo \_$VERSION\_ mark ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] script question
From: "m.r...@5-cent.us" >> On Fri, Jun 11, 2010 at 10:04 AM, Jerry Geis < >> if I do: echo jj_$VERSION_jj >> I get jj_ >> How do I get the $VERSION to work with the >> underscores like the dashes > echo \_$VERSION\_ Or:echo jj_${VERSION}_jj JD ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] PHP file upload limit
On Wed, Jun 9, 2010 at 3:47 PM, Jerry Franz wrote: > On 06/09/2010 12:32 PM, Boris Epstein wrote: > > Eero, > > I've got 4 GB of swap. At the moment all 4 GB less 100 MB of it is > available. That logically should be enough to allow me to upload a 2 > GB file, I would think. > > > Looking at the bugtracker: http://bugs.centos.org/view.php?id=3118 > > "PHP is not built with large file support on 32 bit x86, probably other 32 > bit platforms, all releases of CentOS 4 > Additional Information I verified that upstream does not have this problem. > It is severe enough for my use (scientific processing) that I am changing > OS." > > While the report is for CentOS4, it may be related to your problem. > > -- > Benjamin Franz > > > ___ > CentOS mailing list > CentOS@centos.org > http://lists.centos.org/mailman/listinfo/centos > > OK, at least part of it could have been related to the machine being 32 bit. I am currently playing with a 64 bit machine. I can set my upload_max_filesize = 2G and that works fine; however, post_max_size is a problem. if I set it to 2 G it seems to fail (no POST transactions go through, it seems). If I set it just a tad lower (what I have now is post_max_size = 1948M ) it works fine. So the cutoff limit is somewhere in the 2G neighborhood. Any idea why that would be? Is there a parameter anywhere that limits how far post_max_size may go? The total memory setting I use is way above ( memory_limit = 6G ) and that seems not to cause any issues. Thanks for your advice everybody. Cheers, Boris. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Monitor Network Traffic
On Mon, Dec 21, 2009 at 12:27 PM, Jake wrote: > We had the same problems with Ntop (we monitor netflows, not local > interfaces). There was a thread about a good netflow tool a week or two ago > where someone suggested NfSen + nfdump. I set it up Thursday (took 30 mins > or so) and it totally rocks. We've gone to production with it to monitor > flows from around 50 devices. I highly recommend you take a look if you have > serious needs to see what's really on the wire. I'm going to kick this old thread because I'm just getting around to nfdump and nfsen myself, and am having trouble building nfsen. I do not see a mailing list for it so I'll try here first. I am using softflowd to pump netflow information from various linux boxes into a central collector. The collector is running nfcapd to capture everything. And I also want to run nfsen on this box to be able to view the pretty graphs on the web :-) I have verified with nfdump built on this box that the collector seems to be working fine - so far so good. Then when trying to build nfsen it complained about nfprofile not being there - so some googling later and I found that I have to go back and rebuild nfdump to include it. So I do : ./configure --enable-nfprofile which dies thus : [...] checking for stdint.h... yes checking for unistd.h... yes checking for rrd_update in -lrrd... no configure: error: Can not link librrd. Please specify --with-rrdpath=.. configure failed! But I check and I see I have librrd installed. [r...@rcadmin:~/nf/nfdump-1.6.1]# rpm -qa | grep -i rrd perl-rrdtool-1.3.7-1.el5.rf rrdtool-1.3.7-1.el5.rf [r...@rcadmin:~/nf/nfdump-1.6.1]# ls -al /usr/lib/librrd* -rw-r--r-- 1 root root 321930 May 23 2009 /usr/lib/librrd.a lrwxrwxrwx 1 root root 15 Jun 3 2009 /usr/lib/librrd.so.4 -> librrd.so.4.0.6 -rwxr-xr-x 1 root root 493565 May 23 2009 /usr/lib/librrd.so.4.0.6 -rw-r--r-- 1 root root 319096 May 23 2009 /usr/lib/librrd_th.a lrwxrwxrwx 1 root root 18 Jun 3 2009 /usr/lib/librrd_th.so.4 -> librrd_th.so.4.0.6 -rwxr-xr-x 1 root root 41 May 23 2009 /usr/lib/librrd_th.so.4.0.6 And I do not seem to be able to tell configure how to find it. These all fail : ./configure --enable-nfprofile --with-rrdpath=/usr/lib ./configure --enable-nfprofile --with-rrdpath=/usr ./configure --enable-nfprofile --with-rrdpath=.. ./configure --enable-nfprofile --with-rrdpath=/usr/lib/librrd.so.4 ./configure --enable-nfprofile --with-rrdpath=/usr/lib/librrd.a What am I doing wrong? -- “Don't eat anything you've ever seen advertised on TV” - Michael Pollan, author of "In Defense of Food" ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Monitor Network Traffic
Whoopsie [r...@rcadmin:~/nf/nfdump-1.6.1]# cat /etc/redhat-release CentOS release 5.2 (Final) -- “Don't eat anything you've ever seen advertised on TV” - Michael Pollan, author of "In Defense of Food" ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] where to download CENTOS 5.5 DVD version??
I want to CENTOS download side and tried to download CENTOS 5.5 X86_64 DVD version. I can NOT find on any site. Any ideal? Thanks. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] where to download CENTOS 5.5 DVD version??
> I want to CENTOS download side and tried to download CENTOS 5.5 X86_64 DVD > version. I can NOT find on any site Somebody already answered to you, but I will repeat: http://isoredirect.centos.org/centos/5/isos/x86_64/ ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] script question
> -Original Message- > From: centos-boun...@centos.org > [mailto:centos-boun...@centos.org] On Behalf Of John Doe > Sent: Friday, June 11, 2010 10:50 AM > To: CentOS mailing list > Subject: Re: [CentOS] script question > > From: "m.r...@5-cent.us" > >> On Fri, Jun 11, 2010 at 10:04 AM, Jerry Geis < if I do: echo > >> jj_$VERSION_jj I get jj_ How do I get the $VERSION to work > with the > >> underscores like the dashes > > echo \_$VERSION\_ > > Or:echo jj_${VERSION}_jj ? Parenthesis didn't work for me... Braces and escape work. I gave the escape example, but I think the braces solution is the pedantically most proper. *** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept for the presence of computer viruses. www.Hubbell.com - Hubbell Incorporated** ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] where to download CENTOS 5.5 DVD version??
Miguel Medalha wrote: >> I want to CENTOS download side and tried to download CENTOS 5.5 X86_64 DVD >> version. I can NOT find on any site > > Somebody already answered to you, but I will repeat: > > http://isoredirect.centos.org/centos/5/isos/x86_64/ Hi I think he means the proper DVD iso image not torrent. I can't use torrent, so what I do is to download the CD images (with wget) and build the DVD using the script in CentOS wiki page: http://wiki.centos.org/TipsAndTricks/CDtoDVDMedia Regards mg. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] where to download CENTOS 5.5 DVD version??
> I want to CENTOS download side and tried to download CENTOS 5.5 X86_64 DVD > version. I can NOT find on any site. > > Any ideal? "Ideal" would be one DVD, but the actual idea is that with 5.5, it's up to 2 DVDs (1_of_2, 2_of_2). mark ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] PHP file upload limit
On Fri, Jun 11, 2010 at 10:59 AM, Boris Epstein wrote: > On Wed, Jun 9, 2010 at 3:47 PM, Jerry Franz wrote: >> On 06/09/2010 12:32 PM, Boris Epstein wrote: >> >> Eero, >> >> I've got 4 GB of swap. At the moment all 4 GB less 100 MB of it is >> available. That logically should be enough to allow me to upload a 2 >> GB file, I would think. >> >> >> Looking at the bugtracker: http://bugs.centos.org/view.php?id=3118 >> >> "PHP is not built with large file support on 32 bit x86, probably other 32 >> bit platforms, all releases of CentOS 4 >> Additional Information I verified that upstream does not have this problem. >> It is severe enough for my use (scientific processing) that I am changing >> OS." >> >> While the report is for CentOS4, it may be related to your problem. >> >> -- >> Benjamin Franz >> >> >> ___ >> CentOS mailing list >> CentOS@centos.org >> http://lists.centos.org/mailman/listinfo/centos >> >> > > OK, at least part of it could have been related to the machine being > 32 bit. I am currently playing with a 64 bit machine. I can set my > upload_max_filesize = 2G and that works fine; however, post_max_size > is a problem. if I set it to 2 G it seems to fail (no POST > transactions go through, it seems). If I set it just a tad lower (what > I have now is post_max_size = 1948M ) it works fine. So the cutoff > limit is somewhere in the 2G neighborhood. > > Any idea why that would be? Is there a parameter anywhere that limits > how far post_max_size may go? The total memory setting I use is way > above ( memory_limit = 6G ) and that seems not to cause any issues. > > Thanks for your advice everybody. > > Cheers, > > Boris. > Here's what further research on the topic indicates: it is unclear whether or not PHP can handle files in excess of 2 GB in size. If it can that would still be a relatively recent achievement. So in short it sounds like - at this point in time - it may be safest simply not to try to handle files that size. See here: http://www.bigresource.com/PHP-is-there-a-limit-to-post_max_size--1sjou1Ke.html http://www.bigresource.com/PHP-PHP-2GB-filesize-limit-pfHnjwXh.html http://bugs.php.net/bug.php?id=27792 http://drupal.org/node/787484 Boris. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] amazon ec2 and centos?
On 06/08/2010 07:45 AM, Karanbir Singh wrote: > Ideally, what I would like to do is get together some people who have an > interest in this; not associated with any $commercial provider, and see > if we can get some level of QA testing done. I dont really want anything > 'official' unless we can be sure that the user experience and > expectations dont change drastically from a stock CentOS install. We'd be willing to QA test. We also have various reps at AWS we can work with, in addition to be being beta-testers for new features (there will be some changes to AKIs/ARIs soon). johnny ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] software raid - better management advice needed
> > I've used mdadm for years now to manage software raids. > > The task of using fdisk to first create partitions on a spare > drive sitting on a shelf (raid 0 were my 1st of 2 drives > failed) is kind of bugging me now. > > After using fdisk to create the same partition layout on the > new drive as is on the existing drive and then using mdadm to > finish every thing up is a little tedious. > > Any one have an idea how to have a sort of hot plug were I > just swap out the drive and it rebuilds? > This is all I know about it, not sure if it gives you any help at all... This was for raid 1 drives, not sure how raid 0 would do on it... These were my notes for adding a hotspare that would auto take over on a failure, 3 drives total..this covers adding drives back to the array and also adding a brand new one. I did not cover a 2nd hot spare...again this was just raid 1... Adding a drive back into the mix if you pulled it out via hot swap So, you pulled a drive out to check the hot swap. Guess what, it is not recognized by the array anymore and is ignored. This is a good way to check if the hotspare is working. But now what do you do with the drive you put back in? Each drive is labeled sda, sdb, sdc on my system. There are two raid devices on the array, one a boot and one the big physical one. on mine they are labeled as md0 and md1 (0 and 1). So when we are working on a raid on a drive we would say sbc2 (second raid device on 'c'..sbc drive). Assuming the sda drive is our functioning one, and I took out both b and c drives, we will add b and c back in the mix. mdadm /dev/md0 -add /dev/sdb1 mdadm /dev/md1 -add /dev/sdb2 The sdb drive should immediately start its migration. Should take about an hour depending on your system. Now add the spare back in., sbc. mdadm /dev/md0 -add /dev/sdc1 mdadm /dev/md1 -add /dev/sdc2 Doing ' cat /proc/mdstat ' will show you all three drives are there, one with the (S) for spare and the other in the middle of migrating. Now you have your RAID array set up, have LVM partitions you can adjust later as you need them, can recover from pulled out disks, and all disks are now bootable. Congratulations, you are done with the whole disk thing. Final Issue. Adding a new drive into the mix to replace broken one So, you pulled a drive out because it was broken and need to replace it. You also want it to be part of the mirror array and need to copy the partitions of the existing one to it before you add it to the array. Sounds frightening. 1- take out old drive and make sure the other two are mirroring, the new drive you will add will be the hotspare now. (this is called rotation by the way) 2- Insert new drive. 3- in the command prompt, type fdisk -l (that is an L). This should give you a list of drives and partitions. The new disk should be there too with one partition or none. This will give you the 'drive designation' if you do not know it. 4- CAUTION Make sure before you do number 5 that you now which drive is the new one sda, sdb, or sdc 5- type " sfdisk -d /dev/sda | sfdisk /dev/sdb " This is supposed to copy the partition table from disk a to disk b (insert your actual drives for a and b inthe example). 6- use fdisk -l to see if the new drive has all the proper partitions. 7- if everything is fine, use the above method via mdadm to add the new 'spare' into the array. It should automatically make it the spare drive. Using the new drive for the spare ensures the older drives are used as much as possible until you replace them and your back ups will be tip top and not a very old drive. Rotation works like tires for your car. Would you like your spare tire to be a brand new radial ready to go 60,000 miles or a retreaded old worn tire ready to get you to the gas station to replace it? I would feel better having the new tire so I do not have to worry when I use it. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] where to download CENTOS 5.5 DVD version??
One more mirror with DVD ISOs, this one in Portugal: ftp://ftp.di.uminho.pt/pub/centos/5.5/isos/x86_64/ ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] where to download CENTOS 5.5 DVD version??
One more, also in Portugal: http://mirrors.nfsi.pt/CentOS/5.5/isos/x86_64/ ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] where to download CENTOS 5.5 DVD version??
ISOs here: http://mirror.chpc.utah.edu/pub/centos/5.5/isos/x86_64/ ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] MooseFS repository
2010/6/11 Peter Kjellstrom : > On Friday 11 June 2010, Laurent Wandrebeck wrote: >> Hi, >> >> A repository for MooseFS is just born. It provides CentOS 5.5 SRPMS, >> i386 and x86_64. >> >> cd /etc/yum.repos.d/; wget http://centos.kodros.fr/moosefs.repo ; yum >> install mfs > > A general security comment. Doing the above means downloading and running code > from kodros.fr as root on your systems. > > /Peter Feel free to verify from SRPM that source code is exactly the same provided from http://www.moosefs.org All I can say is that I created that repo to be able to deploy it at work and home :) I just wanted to share it, Regards, Laurent. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] PHP file upload limit
On Fri, Jun 11, 2010 at 11:30 AM, Boris Epstein wrote: > On Fri, Jun 11, 2010 at 10:59 AM, Boris Epstein wrote: >> On Wed, Jun 9, 2010 at 3:47 PM, Jerry Franz wrote: >>> On 06/09/2010 12:32 PM, Boris Epstein wrote: >>> >>> Eero, >>> >>> I've got 4 GB of swap. At the moment all 4 GB less 100 MB of it is >>> available. That logically should be enough to allow me to upload a 2 >>> GB file, I would think. >>> >>> >>> Looking at the bugtracker: http://bugs.centos.org/view.php?id=3118 >>> >>> "PHP is not built with large file support on 32 bit x86, probably other 32 >>> bit platforms, all releases of CentOS 4 >>> Additional Information I verified that upstream does not have this problem. >>> It is severe enough for my use (scientific processing) that I am changing >>> OS." >>> >>> While the report is for CentOS4, it may be related to your problem. >>> >>> -- >>> Benjamin Franz >>> >>> >>> ___ >>> CentOS mailing list >>> CentOS@centos.org >>> http://lists.centos.org/mailman/listinfo/centos >>> >>> >> >> OK, at least part of it could have been related to the machine being >> 32 bit. I am currently playing with a 64 bit machine. I can set my >> upload_max_filesize = 2G and that works fine; however, post_max_size >> is a problem. if I set it to 2 G it seems to fail (no POST >> transactions go through, it seems). If I set it just a tad lower (what >> I have now is post_max_size = 1948M ) it works fine. So the cutoff >> limit is somewhere in the 2G neighborhood. >> >> Any idea why that would be? Is there a parameter anywhere that limits >> how far post_max_size may go? The total memory setting I use is way >> above ( memory_limit = 6G ) and that seems not to cause any issues. >> >> Thanks for your advice everybody. >> >> Cheers, >> >> Boris. >> > > Here's what further research on the topic indicates: it is unclear > whether or not PHP can handle files in excess of 2 GB in size. If it > can that would still be a relatively recent achievement. So in short > it sounds like - at this point in time - it may be safest simply not > to try to handle files that size. > > See here: > > http://www.bigresource.com/PHP-is-there-a-limit-to-post_max_size--1sjou1Ke.html > > http://www.bigresource.com/PHP-PHP-2GB-filesize-limit-pfHnjwXh.html > > http://bugs.php.net/bug.php?id=27792 > > http://drupal.org/node/787484 > > Boris. > Continuing the search... Looks like the LimitRequestBody directive for Apache may make some difference: http://httpd.apache.org/docs/2.0/mod/core.html#limitrequestbody Set mine to 5B ~ 5GB. Looks like I can at least submit a 2.4 GB upload request now. Boris. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] where to download CENTOS 5.5 DVD version??
Miguel Medalha wrote: > ISOs here: > > http://mirror.chpc.utah.edu/pub/centos/5.5/isos/x86_64/ That is interesting. When I try to download, none of the mirrors in UK seems to have these isos, nor in the "nearby countries" mirrors. mg. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] where to download CENTOS 5.5 DVD version??
On 11 June 2010 17:40, Marcelo M. Garcia wrote: > > When I try to download, none of the mirrors in UK seems to have these > isos, nor in the "nearby countries" mirrors. Surely not true. Kent Uni has them: http://www.mirrorservice.org/sites/mirror.centos.org/5/isos/x86_64/ ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] where to download CENTOS 5.5 DVD version??
> When I try to download, none of the mirrors in UK seems to have these > isos, nor in the "nearby countries" mirrors Here in Portugal practically all the mirrors have them :-) ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] where to download CENTOS 5.5 DVD version??
On 11/06/2010 17:40, Marcelo M. Garcia wrote: > When I try to download, none of the mirrors in UK seems to have these > isos, nor in the "nearby countries" mirrors. kernel.org mirrors are a good place to get the DVD's - and they have very good speeds nto the UK - KB ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] amazon ec2 and centos?
On 11/06/2010 16:13, Johnny Tan wrote: > We'd be willing to QA test. We also have various reps at AWS we can > work with, in addition to be being beta-testers for new features > (there will be some changes to AKIs/ARIs soon). Ok, so since there is some level of interest and a few people have offered to test, let me get something together and post some details - KB ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] where to download CENTOS 5.5 DVD version?
mcclnx mcc wrote: > I want to CENTOS download side and tried to download CENTOS 5.5 X86_64 DVD > version. I can NOT find on any site. > the DVD files are so large, many mirrors don't host them. Best way to get them is using BitTorrent, but thats blocked by many business firewalls (for good reason, as a significant percentage of torrents are pirated media and software) ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Documentation post 5.2
I went to the CentOS documentation page (http://www.centos.org/docs/5/) looking for some documentation on 5.5 but was surprised there is nothing there post-5.2. Is there another place I should be looking? Thanks, Joe ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Documentation post 5.2
On 11/06/2010 20:45, Joe Keller wrote: > > I went to the CentOS documentation page (http://www.centos.org/docs/5/) > looking for some documentation on 5.5 but was surprised there is nothing > there post-5.2. Is there another place I should be looking? Couple of things - Most of CentOS-5 is /5/ - the .2 and .5 only point at snapshots in time for the distro. Also, upstream have not updated most of the docs past 5.2 anyway. Most of the docs that you can see online are included in the distro as the guides, so you should be able to install and use them locally. - KB ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Documentation post 5.2
>I went to the CentOS documentation page (http://www.centos.org/docs/5/) >looking for some documentation on 5.5 but was surprised there is nothing there >post-5.2. Is there >another place I should be looking? Get all you need here: http://www.redhat.com/docs/manuals/enterprise/ ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] 5.5 & gspca
Irritating quirkyness: we have a bunch of videocams. To use, we use gspca. Usually, on an upgrade, I just go into the gspca directory (which appears, from their website, to have not been updated since '07), make clean, make, make install. Having gone up to 5.5, did the same. What's happening now is that it works, delivers the mpgs... but dumps errors in the logs: kernel: /usr/local/src/gspcav1-20071224/gspca_core.c: [spca50x_move_data:1611] ISOC data error: [0] len=0, status=-18 Looking at the code, I see static int spca50x_move_data(struct usb_spca50x *spca50x, struct urb *urb) { unsigned char *cdata; //Pointer to buffer where we do store next packet unsigned char *pData; //Pointer to buffer where we do store next packet int i; for (i = 0; i < urb->number_of_packets; i++) { int datalength = urb->iso_frame_desc[i].actual_length; int st = urb->iso_frame_desc[i].status; unsigned long ms_times_now; unsigned long ms_times_before; struct spca50x_frame *frame;//Pointer to frame data int sequenceNumber; int sof; int iPix; //Offset of pixel data in the ISO packet if (st) { PDEBUG(0, "ISOC data error: [%d] len=%d, status=%d \n", i, datalength, st); continue; } cdata = ((unsigned char *) urb->transfer_buffer) + so the first number is the packet #, which I see 0 through 3 or 5 in my logs. The error, which is the status, *if* errno.h has any relation, says that it's an EXDEV, which suggests that it's trying to hard link across devices, which AFAIK it's not: the home directory for the user the device runs is is automounted, and it gets created there. Anyone have any clues why, all of a sudden, the first few packets are showing a status code? Could it be a timing issue? mark ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] 5.5 & gspca
On Fri, 2010-06-11 at 16:15 -0400, m.r...@5-cent.us wrote: > Irritating quirkyness: we have a bunch of videocams. To use, we use gspca. > Usually, on an upgrade, I just go into the gspca directory (which appears, > from their website, to have not been updated since '07), make clean, make, > make install. > > Having gone up to 5.5, did the same. What's happening now is that it > works, delivers the mpgs... but dumps errors in the logs: > > kernel: /usr/local/src/gspcav1-20071224/gspca_core.c: > [spca50x_move_data:1611] ISOC data error: [0] len=0, status=-18 > > Looking at the code, I see > > static int > spca50x_move_data(struct usb_spca50x *spca50x, struct urb *urb) > { > unsigned char *cdata; //Pointer to buffer where we do store next > packet > unsigned char *pData; //Pointer to buffer where we do store next > packet > int i; > for (i = 0; i < urb->number_of_packets; i++) { > int datalength = urb->iso_frame_desc[i].actual_length; > int st = urb->iso_frame_desc[i].status; > unsigned long ms_times_now; > unsigned long ms_times_before; > struct spca50x_frame *frame;//Pointer to frame data > int sequenceNumber; > int sof; > int iPix; //Offset of pixel data in the ISO packet > if (st) { > PDEBUG(0, "ISOC data error: [%d] len=%d, status=%d > \n", >i, datalength, st); > continue; > } > cdata = ((unsigned char *) urb->transfer_buffer) + > > so the first number is the packet #, which I see 0 through 3 or 5 in my > logs. The error, which is the status, *if* errno.h has any relation, says > that it's an EXDEV, which suggests that it's trying to hard link across > devices, which AFAIK it's not: the home directory for the user the device > runs is is automounted, and it gets created there. > > Anyone have any clues why, all of a sudden, the first few packets are > showing a status code? Could it be a timing issue? > > mark --- Well I find these things interesting. Could very well be timing in the frame buffers/packets. I'm guessing this is the newest latest kernel. I've seen somewhere this week somewhere on the web about a related issue. So guessing it works correctly on the previous kernel? Just something to ponder here is the machine really loaded heavily? I ask because if so the kernel can't function on "us" microsecond timing. It becomes very critical when it comes to that nature. Last thing is the timing routine function getting called in userspace or kernel? I have had my share of day to day problems like this. Last thing was anything in /etc/sysctl.conf changed? Finally whats nice is, it could have been coded to skip a frame sequence where the before and after timing did not match and you eye would never see it.. John ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Thin client system for X applications?
My HP 5725 has XDM connection available in the connection manager. Works well to my CentOS 5.5 x64 server. -- M Reynolds McClatchey JrVP Engineering and Inventory Southern Aluminum Finishing Co Inc 404-355-1560 x222 Voice 1581 Huber St NW404-350-0581 Fax Atlanta GA 30318 ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] 5.5 & gspca
John wrote: > On Fri, 2010-06-11 at 16:15 -0400, m.r...@5-cent.us wrote: >> Irritating quirkyness: we have a bunch of videocams. To use, we use >> gspca. >> so the first number is the packet #, which I see 0 through 3 or 5 in my >> logs. The error, which is the status, *if* errno.h has any relation, >> says that it's an EXDEV, which suggests that it's trying to hard link >> across devices, which AFAIK it's not: the home directory for the user the >> device runs is is automounted, and it gets created there. >> >> Anyone have any clues why, all of a sudden, the first few packets are >> showing a status code? Could it be a timing issue? > --- > Well I find these things interesting. Could very well be timing in the > frame buffers/packets. I'm guessing this is the newest latest kernel. > I've seen somewhere this week somewhere on the web about a related > issue. Yep - just upgraded the other day. > > So guessing it works correctly on the previous kernel? Just something Yep. > to ponder here is the machine really loaded heavily? I ask because if Nope. Low loads, as well, according to top. > so the kernel can't function on "us" microsecond timing. It becomes > very critical when it comes to that nature. Right - my manager actually encouraged me to look at the code, and I was trying to recompile after putting a sleep(1) before any of the streaming is called, but I'm having all kinds of grief, since it can't find , and when I put it in as #include "/usr/include/unistd.h", it spits out a ton of undefineds, and unuseds, etc. > > Last thing is the timing routine function getting called in userspace or > kernel? I have had my share of day to day problems like this. Last Kernel. gspcs is a module, used by the motion daemon. > thing was anything in /etc/sysctl.conf changed? Finally whats nice is, > it could have been coded to skip a frame sequence where the before and > after timing did not match and you eye would never see it.. Doesn't look like it - /etc/sysctl.conf is dated last Aug. Thanks for the thoughts. mark ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] 5.5 & gspca
On Fri, 2010-06-11 at 17:10 -0400, m.r...@5-cent.us wrote: > > so the kernel can't function on "us" microsecond timing. It becomes > > very critical when it comes to that nature. > > Right - my manager actually encouraged me to look at the code, and I was > trying to recompile after putting a sleep(1) before any of the streaming > is called, but I'm having all kinds of grief, since it can't find > , and when I put it in as #include "/usr/include/unistd.h", it > spits out a ton of undefineds, and unuseds, etc. Umm, you never want to do that (sleep) in imaging. You can fill a buffer and reassemble the frames/packets in there order cpu intensive dearly it is. Your better to skip the frames because the human eye can never see it. Believe it or not medical imaging takes on this method and lives get saved every day from tomography/mri/cat/ultra sound scans in real time. Check out the load when it starts streaming. > > Last thing is the timing routine function getting called in userspace or > > kernel? I have had my share of day to day problems like this. Last > > Kernel. gspcs is a module, used by the motion daemon. Quick Search found this for el5. You could get the src rpm and rebuild it for all machines. Or test a binary out first with one. No idea the version that was compiled or against what just found it. http://atrpms.net/dist/el5/gspca/ You know 2007 is a good while ago and there are many compiler changes in between the time. I say it may be something getting introduced from the current compiler methods that is not supported now. John ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] 5.5 & gspca
On 06/11/2010 10:38 PM, JohnS wrote: > > On Fri, 2010-06-11 at 17:10 -0400, m.r...@5-cent.us wrote: >> >> Kernel. gspcs is a module, used by the motion daemon. > > > Quick Search found this for el5. You could get the src rpm and rebuild > it for all machines. Or test a binary out first with one. No idea the > version that was compiled or against what just found it. > http://atrpms.net/dist/el5/gspca/ > > You know 2007 is a good while ago and there are many compiler changes in > between the time. I say it may be something getting introduced from the > current compiler methods that is not supported now. > The standalone gspca code is old and deprecated. It's now maintained as part of the Video4Linux v4l-dvb tree here: http://linuxtv.org/ Elrepo.org has a version built for el5 that supports many gspca based devices: http://elrepo.org/tiki/kmod-video4linux The most recent version, compiled from a 2010-04-10 snapshot, is in the testing repo here: http://elrepo.org/linux/testing/el5/ if you are looking for newer drivers. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos