[CentOS] Ping time resolution

2010-10-18 Thread Mitja Mihelič
Hi!

We have encountered a rather weird problem on a machine that we use for 
our network latency check (smokeping with fping).
For an hour (or so) after boot it reports the ping time with a 
microsecond accuracy (ad it should).
Then the millisecond accuracy starts.
We have yet to identify the cause and the logs currently do not show 
anything.
Please find an example of a good and a bad result below.

Regards,
Mitja

When it works: (microsecond accuracy):
[r...@server ~]# ping test.example.net
PING test.example.net (123.1.2.3) 56(84) bytes of data.
64 bytes from test.example.net (123.1.2.3): icmp_seq=1 ttl=62 time=0.562 ms
64 bytes from test.example.net (123.1.2.3): icmp_seq=2 ttl=62 time=0.452 ms
64 bytes from test.example.net (123.1.2.3): icmp_seq=3 ttl=62 time=0.579 ms

--- test.example.net ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1998ms
rtt min/avg/max/mdev = 0.452/0.531/0.579/0.056 ms


And when it does not (millisecond accuracy):
[r...@server ~]# ping test.example.net
PING test.example.net (123.1.2.3) 56(84) bytes of data.
64 bytes from test.example.net (123.1.2.3): icmp_seq=1 ttl=62 time=1.99 ms
64 bytes from test.example.net (123.1.2.3): icmp_seq=2 ttl=62 time=0.999 ms
64 bytes from test.example.net (123.1.2.3): icmp_seq=3 ttl=62 time=0.000 ms
64 bytes from test.example.net (123.1.2.3): icmp_seq=4 ttl=62 time=0.000 ms
64 bytes from test.example.net (123.1.2.3): icmp_seq=5 ttl=62 time=0.000 ms

--- test.example.net ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 3999ms
rtt min/avg/max/mdev = 0.000/0.599/1.999/0.800 ms

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Real time NFS monitoring

2010-10-18 Thread Juergen Gotteswinter
nfsstat
nfswatch

Am 18.10.10 05:19, schrieb Fajar Priyanto:
> Hi all,
> Is there any tool we can use to see on NFS:
> 1. What files are being accessed
> 2. The performance (bandwidth, etc)
>
> Thank you.
> ___
> 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] Real time NFS monitoring

2010-10-18 Thread Fajar Priyanto
On Mon, Oct 18, 2010 at 3:25 PM, Juergen Gotteswinter  wrote:
> nfsstat
> nfswatch

Thanks Juegen, that looks good.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Postfix wont stay started

2010-10-18 Thread Dotan Cohen
On Mon, Oct 18, 2010 at 01:33, Scott Robbins  wrote:
> On Mon, Oct 18, 2010 at 12:30:11AM +0200, Dotan Cohen wrote:
>> On Sun, Oct 17, 2010 at 23:57, Robert Heller  wrote:
>> > Quoting from "Highlander": "There can be only one."
>>
>> I have to read that! I'm in the middle of Dune now...
>
> This was actually best known as a movie--I reckon most of you are too
> young.   Hrrm, there was a TV show afterwards, too.
>

I had heard of the movie, but I prefer books to movies/TV and just
assumed that there would be a book. Is 33 too young for that?


-- 
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Postfix wont stay started

2010-10-18 Thread Dotan Cohen
On Mon, Oct 18, 2010 at 05:45, Les Mikesell  wrote:
> You can use specific 'Listen' directives for apache instead of the usual *:80.
> The java app will probably have an equivalent config or command line option.
>

Thanks, Les, that is what I needed to know. The JAva app is all custom
code, so we will need to add the "Listen" equivalent ourselves. I just
assumed that there would be some way to do it at the OS level.

-- 
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] using a Laptop as a KVM console?

2010-10-18 Thread Rudi Ahlers
On Mon, Oct 18, 2010 at 7:20 AM, Devin Reade  wrote:
> Rudi Ahlers  wrote:
>
>> I want to use a laptop as a KVM console.
> [snip]
>
> Other people have pointed out KVM-over-IP devices for your legacy or
> low end machines (ALOM/iLO/DRAC/whatever is still cheaper for
> server-grade hardware).
>
> I'd like to bring up the AdderLink IPEPs, which I can say from experience
> is a very nice device.  They are very stable and the over-the-wire
> protocol is encrypted VNC which means, unlike many of the lower-end
> competitors, you're not forced to use a Windows box to access the
> console of your windows machine.  The IPEPs has an IP-blocking mechanism
> if someone tries to brute-force it.  (Of course, having it on a
> non-publicly-available management network is still better.)
>
> 
> or
> 
>
> While they market them as one-per-server, you can easily amortize the
> cost by hooking the IPEPs to an electronic KVM switch (the kind that
> allows you to switch machines based on keyboard strokes rather than
> flipping a switch), and then hooking the KVM to your servers.  Thus
> the fanout depends on the capability of your KVM switch. Note that
> using the KVM means that you have a security model that assumes that
> anyone who logs into the KVM is permitted console access to any attached
> server.  (They'd still have to log into each server.)
>
> I think that AdderLink also has multi-server versions of IP-over-KVM
> that may be better/cheaper if you need to allow for different people
> with different security access to get at the servers.
>
> Unlike an ALOM/iLO/DRAC, the IPEPs does not have any power switching
> capability, so you'd still need to cover that capability off as well
> if you need it.  For power management, there are also many options
> for PDUs but I'd suggest the APC line, such as the AP7901 or equivalent:
>
> 
>
> IMO, this is only suitable for single-power-supply servers  (If you're
> using a redundant power supply in your servers, you should also have
> an ALOM/iLO/DRAC.)
>
> If you go the IPEPs + KVM route, I'd suggest ensuring that your KVM
> doesn't draw power from the keyboard/monitor/mouse connectors so that
> if you need to reset the KVM you can power cycle it remotely via a
> PDU rather than needing to be on site.  (The DLink DKVM-8E is
> inexpensive, but it has the draw-power-from-multiple-sourcs problem
> and sometimes after a power outage it needs a reset -- for which we
> need on-site access. *grumble*)
>
> Devin
>
> ___



Hi Devin,

I have a few spider KVM-over-IP devices but found that if there's no
spare power point in the cabinet it becomes a problem. They work well
for this purpose though. The USB2KVM device mentioned earlier on in
this thread is exactly what I was looking for, but I couldn't find a
distributer locally and UPS quoted me $356 just for freight, excluding
import duties in our country, so I think I'll stick with the spider
KVM over IP's for now. They're about 50% cheaper locally than the
KVM2USB before shipment & import duties.


-- 
Kind Regards
Rudi Ahlers
SoftDux

Website: http://www.SoftDux.com
Technical Blog: http://Blog.SoftDux.com
Office: 087 805 9573
Cell: 082 554 7532
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] ext4

2010-10-18 Thread Jure Pečar

Hello,

I see that ext4 is now available for CentOS 5.5

Is there any general opinion about it? Is it as good on 2.6.18 based kernels as 
it is good on newer kernels?


-- 

Jure Pečar
http://jure.pecar.org
http://f5j.eu
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] yum list updates error

2010-10-18 Thread Theo Band
 On 10/16/2010 08:51 AM, Ritika Garg wrote:
> Before doing "yum update" on system which has CentOS5.3, I gave "yum
> list updates" but the following message comes:
> Loaded plugins: fastestmirror
> Determining fastest mirrors
> Could not retrieve mirrorlist
> http://mirrorlist.centos.org/?release=5&arch=x86_64&repo=os
>  error was
> [Errno 4] IOError: 
> Error: Cannot find a valid baseurl for repo: base
You can just give a yum update. Before any update starts you are asked
for a confirmation.
If network connection is not the problem, try a "yum clean all" and try
to update again.

Theo
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Intel DP55WG centos 5.5 support?

2010-10-18 Thread Coert Waagmeester
Hello all,

I have looked around on the HCL and on other hardware sites.

Do any of you have experience with Centos 5.5 64 bit on these motherboards?

Regards,
Coert Waagmeester
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] yum list updates error (Manish Kathuria)

2010-10-18 Thread Ritika Garg
There was no proxy in the file /etc/yum.conf. I specified the proxy setting
and now "yum list updates" is working. A part of the output was:
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.01link.hk
 * updates: centos.01link.hk
 * addons: centos.01link.hk
 * extras: centos.01link.hk
Updated Packages
ImageMagick.i386 6.2.8.0-4.el5_5.2
updates
ImageMagick.x86_64   6.2.8.0-4.el5_5.2
updates
NetworkManager.i386  1:0.7.0-10.el5_5.1 updates

Its written Updated Packages. Does this mean it has already updated? I
thought that this command displays packages that need to be updated.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Intel DP55WG centos 5.5 support?

2010-10-18 Thread Drew Weaver
we evaluated this board but instead decided to go with the SuperMicro X8SIL-F.

It doesn't support the core i5 and core i7 but it has VGA and there are Xeon 
parts that match the core i5 and core i7 specs.

-Original Message-
From: centos-boun...@centos.org [mailto:centos-boun...@centos.org] On Behalf Of 
Coert Waagmeester
Sent: Monday, October 18, 2010 5:05 AM
To: CentOS mailing list
Subject: [CentOS] Intel DP55WG centos 5.5 support?

Hello all,

I have looked around on the HCL and on other hardware sites.

Do any of you have experience with Centos 5.5 64 bit on these motherboards?

Regards,
Coert Waagmeester
___
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


[CentOS] ip based acl at snmp v3?

2010-10-18 Thread MontyRee

Hello, all.
 
My system is centos 5.x and I would like to set IP based (acl) accessl-list at 
snmp verison 3.
As I know, at snmp v1/v2c, we can set acl like below.
 
-- snmpd.conf  
 
rocommunity public 127.0.0.1
rocommunity public 10.0.0.1/24

rouser testuser
createUser testuser MD5 "passwords" DES 
---
 
 
But, how about snmp version 3? 
 
I searched and tried, but I could't find the answer.
 
Surely, I can set hosts.deny or iptables, 
But I want to know how to set acl at snmpd.conf.
 
 
 
Thanks in advance.
 
 
  
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] FYI: Red Hat Enterprise Linux 6 Release Candidate Available to Partners

2010-10-18 Thread Timo Schoeler
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

There's progress...

http://press.redhat.com/2010/10/18/red-hat-enterprise-linux-6-release-candidate-available-to-partners/

Cheers,

Timo
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFMvEWlfg746kcGBOwRAtHpAJ9/ylHRb8hAIBp4mvaNSPN36qrkzACfafrY
628MfhiRdSkK+9FWRuE8wJQ=
=NtpF
-END PGP SIGNATURE-
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] FYI: Red Hat Enterprise Linux 6 Release Candidate Available to Partners

2010-10-18 Thread Tom Bishop
+1 can't wait

On Mon, Oct 18, 2010 at 8:03 AM, Timo Schoeler
wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> There's progress...
>
>
> http://press.redhat.com/2010/10/18/red-hat-enterprise-linux-6-release-candidate-available-to-partners/
>
> Cheers,
>
> Timo
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.5 (GNU/Linux)
>
> iD8DBQFMvEWlfg746kcGBOwRAtHpAJ9/ylHRb8hAIBp4mvaNSPN36qrkzACfafrY
> 628MfhiRdSkK+9FWRuE8wJQ=
> =NtpF
> -END PGP SIGNATURE-
> ___
> 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] Intel DP55WG centos 5.5 support?

2010-10-18 Thread Jakub Jedelsky
Hi,

we use it on a few servers (audio, firewire, etc. are disabled in bios)
with cpu i5-750 without any problems. But we don't use graphical
interface, mostly there is apache, mysql, php, postfix ... nothing special.

JJ

Dne 18.10.2010 11:05, Coert Waagmeester napsal(a):
> Hello all,
> 
> I have looked around on the HCL and on other hardware sites.
> 
> Do any of you have experience with Centos 5.5 64 bit on these motherboards?
> 
> Regards,
> Coert Waagmeester
> ___
> 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] iptables: comprehensive tutorial for CentOS?

2010-10-18 Thread Boris Epstein
On Sun, Oct 17, 2010 at 6:50 PM, Adam Tauno Williams
 wrote:
> On Sun, 2010-10-17 at 18:41 -0400, Boris Epstein wrote:
>> Hello listmates,
>> I know this may sound stupid... but I am trying to set up a
>> firewall/filter/forwarder using CentOS 5.5 machine as a platform and I
>> am succeeding but only partially. Fro example, I am literally trying
>> to forward HTTP and HTTPS (TCP 80 and 443) from the public interface
>> to a private IP and TCP 80 works like a charm whereas TCP 443 seems to
>> be a no-go.
>> To that effect: does anyone know of a comprehensive relevant manual? I
>> mean, I must be doing something wrong here though I ain't sure what.
>
> There is nothing CentOS specific about iptables.  Just check out
> 
>
>> Any advice and suggestions much appreciated.
>
> Try the *excellent* fwbuilder application; then you can design your
> iptables rules graphically and even install them.
> 
>
> I know I'll never waste time building iptables rulesets by hand again.
> --
> Adam Tauno Williams  LPIC-1, Novell CLA
> 
> OpenGroupware, Cyrus IMAPd, Postfix, OpenLDAP, Samba
>
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>

Adam, thanks! fwbuilder is indeed a great tool, I can tell.

I didn't mean that iptables was in any way CentOS specific but I did
think there could be usage conventions specific to CentOS.

Boris.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] yum list updates error (Manish Kathuria)

2010-10-18 Thread Manish Kathuria
On Mon, Oct 18, 2010 at 3:22 PM, Ritika Garg  wrote:
> There was no proxy in the file /etc/yum.conf. I specified the proxy setting
> and now "yum list updates" is working. A part of the output was:
> Loaded plugins: fastestmirror
> Loading mirror speeds from cached hostfile
>  * base: centos.01link.hk
>  * updates: centos.01link.hk
>  * addons: centos.01link.hk
>  * extras: centos.01link.hk
> Updated Packages
> ImageMagick.i386 6.2.8.0-4.el5_5.2
> updates
> ImageMagick.x86_64   6.2.8.0-4.el5_5.2
> updates
> NetworkManager.i386  1:0.7.0-10.el5_5.1 updates
>
> Its written Updated Packages. Does this mean it has already updated? I
> thought that this command displays packages that need to be updated.
>

Updated Packages here means the list of the packages installed on your
system having updated versions available in the configured
repositories. The tabular listing would have the name of the package,
the latest version available in the repository and the name of that
repository.

--
Manish
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] FYI: Red Hat Enterprise Linux 6 Release Candidate Available to Partners

2010-10-18 Thread Deyan Stoykov
Timo Schoeler wrote:
> 
> There's progress...
> 
> http://press.redhat.com/2010/10/18/red-hat-enterprise-linux-6-release-candidate-available-to-partners/
> 
> Cheers,
> 
> Timo

Available to partners? Aren't RH obliged to release the source as usual?

Cheers,

Deyan

-- 
Deyan Stoykov, dstoy...@uni-ruse.bg
System administrator
University of Ruse
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Password Expiry

2010-10-18 Thread Manish Kathuria
Hello,

Is there any command / option available on CentOS to expire a user's
password immediately ? I remember using  "passwd -e" on some other
distribution but the -e option does not seem to be present on CentOS
5.x.

Thanks,

Manish
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Password Expiry

2010-10-18 Thread Eero Volotinen
2010/10/18 Manish Kathuria :
> Hello,
>
> Is there any command / option available on CentOS to expire a user's
> password immediately ? I remember using  "passwd -e" on some other
> distribution but the -e option does not seem to be present on CentOS
> 5.x.

See: http://linux.about.com/library/cmd/blcmdl1_chage.htm

--
Eero
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] escape .c files to html code with bash how?

2010-10-18 Thread Jozsef Vadkan
i need to encode .c files to html, like on this website:

http://centricle.com/tools/html-entities/

i tried to write a bash script for it:

http://pastebin.com/raw.php?i=mZKAw4c5

but it's not working very well :D

does anyone has a script, that does this?

thank you :\
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Installing Adaptec Storage Manager - needs libstdc++-libc6.1-1.so.2

2010-10-18 Thread Peter Crighton
On Sat, 16 Oct 2010 18:27:15 +0100, you wrote:

>On 16/10/10 18:07, Peter Crighton wrote:
>> I'm trying to install the Adaptec Storage Manager for the 21610SA SATA
>> RAID controller on Centos 5.5.
>>
>> rpm reports that it failed on the dependency on
>> libstdc++-libc6.1-1.so.2
>>
>> yum provides */libstdc++-libc6.1-1.so.2
>> reports no matches found
>>
>
>So widen your search slightly:
>
>yum provides */libstdc++-libc6*
>
>> How can I install the required files to all the Adaptec Storage
>> Manager to be installed?
>
>yum install compat-libstdc++-296
>
>then create a symlink in /usr/lib
>
>ln -s libstdc++-3-libc6.2-2-2.10.0.so libstdc++-libc6.1-1.so.2
>
>Hopefully that should do the trick.

Unfortunately not.

This is the contents of /usr/lib:

r...@backup lib]# ll libstdc*
-rwxr-xr-x 1 root root 262092 Jan  6  2007
libstdc++-3-libc6.2-2-2.10.0.so
lrwxrwxrwx 1 root root 31 Oct 18 17:23 libstdc++-libc6.1-1.so.2 ->
libstdc++-3-libc6.2-2-2.10.0.so
lrwxrwxrwx 1 root root 31 Oct 16 17:31 libstdc++-libc6.2-2.so.3 ->
libstdc++-3-libc6.2-2-2.10.0.so
lrwxrwxrwx 1 root root 18 Oct 16 17:35 libstdc++.so.5 ->
libstdc++.so.5.0.7
-rwxr-xr-x 1 root root 733168 Jan  8  2007 libstdc++.so.5.0.7
lrwxrwxrwx 1 root root 18 Oct  3 15:44 libstdc++.so.6 ->
libstdc++.so.6.0.8
-rwxr-xr-x 1 root root 936908 Mar 31  2010 libstdc++.so.6.0.8

And the result of the attempted installation:

[r...@backup lib]# rpm --install
/home/peter/asm-linux_v2.12\(922\).rpm
error: Failed dependencies:
libstdc++-libc6.1-1.so.2 is needed by StorMan-2.12-00.i386

Grateful for more suggestions.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] using a Laptop as a KVM console?

2010-10-18 Thread Ausmus, Matt
I had the same thought a couple years ago.  I found a device from a
company out of the UK called Epiphan.  They make a small box that
connects via usb 2.0 (required) and acts as a KVM.  Essentially it
streams across USB.  They make drivers for both Windows and Mac and they
have a Linux SDK but will build a Linux client for you based on the
kernel you're running.  They're working on having a production Linux
client but it isn't there yet.

I've used it for both Windows and Mac.  I find connecting to a Windows
server is troublesome but it works great on Linux CLI.  This has become
my crash cart.  The company have been very aggressive developing the
software for it and are very responsive to problems you encounter.
We've had really good success with it.  It does have a few quirks but
nothing insurmountable and we're budgeting to purchase one for each
admin.

http://www.epiphan.com/products/other-applications/kvm2usb/



Matt Ausmus
Network Administrator
Chapman University
635 West Palm Street
Orange, CA  92868
(714)628-2738
maus...@chapman.edu
 
"Nothing is ever accomplished by a reasonable man."
-Bucy's Law 
-Original Message-
From: Rudi Ahlers [mailto:r...@softdux.com] 
Sent: Wednesday, October 13, 2010 10:32 AM
To: CentOS mailing list
Subject: [CentOS] using a Laptop as a KVM console?

Hi all,

Has anyone seen something like this before:

I want to use a laptop as a KVM console. Basically when a technician
goes to one of our datacentres, or clients he has to look for a free
LCD, keyboard & mouse to connect to a server (no network access,
reinstall, troubleshoot failed kernel / HDD, etc). And then hopefully
there's an open power socker in that cabinet.

So I'm thinking why not just use a laptop instead? It already has an
LCD, keyboard, mouse & power. Surely someone has, or may still, build
something that could connect to the laptop's USB port(s) and then to
the server's VGA & USB / PS2 ports, then act as a KVM?

-- 
Kind Regards
Rudi Ahlers
SoftDux

Website: http://www.SoftDux.com
Technical Blog: http://Blog.SoftDux.com
Office: 087 805 9573
Cell: 082 554 7532

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] escape .c files to html code with bash how?

2010-10-18 Thread m . roth
Jozsef Vadkan wrote:
> i need to encode .c files to html, like on this website:
>
> http://centricle.com/tools/html-entities/
>
> i tried to write a bash script for it:
>
> http://pastebin.com/raw.php?i=mZKAw4c5
>
> but it's not working very well :D
>
> does anyone has a script, that does this?

I don't understand what you want to do. I mean, won't

code


do what you want? That *is* what I belive it was intended for

mark

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Installing Adaptec Storage Manager - needs libstdc++-libc6.1-1.so.2

2010-10-18 Thread m . roth
Peter Crighton wrote:
> On Sat, 16 Oct 2010 18:27:15 +0100, you wrote:
>
>>On 16/10/10 18:07, Peter Crighton wrote:
>>> I'm trying to install the Adaptec Storage Manager for the 21610SA SATA
>>> RAID controller on Centos 5.5.
>>>
>>> rpm reports that it failed on the dependency on
>>> libstdc++-libc6.1-1.so.2
>>>
>>> yum provides */libstdc++-libc6.1-1.so.2
>>> reports no matches found

Are you on a 32 or 64 bit system, and which is installed?

mark

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Password Expiry

2010-10-18 Thread Scott Robbins
On Mon, Oct 18, 2010 at 09:42:59PM +0530, Manish Kathuria wrote:
> Hello,
> 
> Is there any command / option available on CentOS to expire a user's
> password immediately ? I remember using  "passwd -e" on some other
> distribution but the -e option does not seem to be present on CentOS
> 5.x.

passwd -l (that's a lower case L) as in lock will immediately leave the
account available.

If you want to make them change their password right now

chage -d 0 username 

Which gives a message


Password: 
You are required to change your password immediately (root enforced)
Changing password for test2
(current) UNIX password: 


-- 
Scott Robbins
PGP keyID EB3467D6
( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 )
gpg --keyserver pgp.mit.edu --recv-keys EB3467D6

The Master: You were destined to die, it was written. 
Buffy: What can I say? I flunked the written. 

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] escape .c files to html code with bash how?

2010-10-18 Thread Bowie Bailey
 On 10/18/2010 12:34 PM, Jozsef Vadkan wrote:
> i need to encode .c files to html, like on this website:
>
> http://centricle.com/tools/html-entities/
>
> i tried to write a bash script for it:
>
> http://pastebin.com/raw.php?i=mZKAw4c5
>
> but it's not working very well :D
>
> does anyone has a script, that does this?

That script is never going to work right as written.  Consider this:

Text to encode:  # 123

First, it will replace the space, resulting in:  # 123

Next, it will replace the two #s, resulting in: # 123

Next, it will replace the three &s, resulting in:
# 123

I'm sure you can see where this is going...

If you want to replace almost every character in a file, you either have
to do it character by character to avoid this problem, or make more
complex regexes to avoid matching stuff that has already been replaced.

What is the eventual use of this program?  Do you really need to convert
every character to an entity, or could you leave most of the normal
characters alone and only convert the ones that cause problems?

-- 
Bowie




___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] qemu-kvm segfaults on starting guests

2010-10-18 Thread Negative
On Sun, Oct 17, 2010 at 6:32 PM, Akemi Yagi  wrote:

> On Sun, Oct 17, 2010 at 3:11 PM, Negative 
> wrote:
> > I have a Centos 5.5 on an AMD 64 system (Athlon II x2 250).
> >
> > I caught up on updates today, including
> > -- kernel 2.6.18-194.17.1.el5
> > -- glibc 2.5-49.el5_5.5.i686
> >
> > I have several guests that were working before the update, but now none
> of
> > them will boot.
> >
> > With each attempt I get a message in /var/log/messages:
> > -- kernel: qemu-kvm[xx]: segfault at 00379fc0da11 rip
> 2b9f2732283f
> > rsp 446a6e80 error 7
> >
> > Has this happened to others? Any fix. I see similar bugreports, but they
> are
> > not recent, and not quite like this. The closest thing I can find was on
> an
> > nvidia list about vmware posted today -- so maybe this has something to
> do
> > with needing to rebuild the nvidia drivers with every kernel update.
> >
> > Any ideas?
>
> As you noted, the latest version 260.19.12 causes segfault:
>
> http://www.nvnews.net/vbulletin/showthread.php?t=156168
>
> Until Nvidia fixes the issue, the only solution known so far is to go
> back to an earlier version.
>
> Akemi
>

Thanks. I hated to do it because with the previous version, the
monitors keep waking from powersave, but I did and all is well.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Password Expiry

2010-10-18 Thread Manish Kathuria
On Mon, Oct 18, 2010 at 10:21 PM, Scott Robbins  wrote:
> On Mon, Oct 18, 2010 at 09:42:59PM +0530, Manish Kathuria wrote:

>> Is there any command / option available on CentOS to expire a user's
>> password immediately ? I remember using  "passwd -e" on some other
>> distribution but the -e option does not seem to be present on CentOS
>> 5.x.
> If you want to make them change their password right now
>
> chage -d 0 username
>
> Which gives a message
>
>
> Password:
> You are required to change your password immediately (root enforced)
> Changing password for test2
> (current) UNIX password:
>
>
> --
> Scott Robbins

Thanks, this is precisely what I was looking for. Thank you Eero too.

--
Manish
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] dhcpd rpm

2010-10-18 Thread Ausmus, Matt
Howdy,

 

Yeah, this issue’s been brought up in the past.  One of the maintainer of FC 13 
made the srpm available (I believe he prepped the spec file) for RHEL/CentOS 5 
for dhcpd 4.1.  We started looking at it and the problems are the dependencies 
and the dependencies of the dependencies.  There are no srpms or rpms for those 
and the project becomes a real monster.  

 

We’ve found the problem is generally caused by the time being out of sync 
between the servers or the dhcpd daemon on one of the boxes dies.  To mitigate 
this problem we’ve setup custom Nagios alerts which utilize dhcping to alert us 
when a dhcpd process dies.  We’ve also setup custom scripts that will restart 
the dead process on the box.  So, we’re just waiting for CentOS 6 to be 
released.

 



Matt Ausmus

Network Administrator

Chapman University

635 West Palm Street

Orange, CA  92868

(714)628-2738

maus...@chapman.edu  

 

"Nothing is ever accomplished by a reasonable man."

-Bucy’s Law

From: Waleed Harbi [mailto:waleed.ha...@gmail.com] 
Sent: Thursday, October 14, 2010 1:49 PM
To: CentOS mailing list
Subject: Re: [CentOS] dhcpd rpm

 

Try find-out SPEC file and rpm source, recompile it, this is the faster way I 
think, if you have big issue. 

 

Fedora they released 4.1, check it. 

 

http://mirrors.isu.net.sa/pub/fedora/linux/releases/13/Everything/x86_64/os/Packages/dhclient-4.1.1-15.fc13.x86_64.rpm

 

--
Best Wishes,
Waleed Harbi

Dream | Do | Be 



On Thu, Oct 14, 2010 at 11:44 PM,  wrote:

JohnS wrote:
>
> On Thu, 2010-10-14 at 14:58 -0400, m.r...@5-cent.us wrote:
>> Folks,
>>
>>We've been having occasional issues with failover dhcpd. I went
>> looking for "peer holds all free leases", and happened to run across
>> ,
>> which is rated important, and is supposed to be fixed in 3.0.5-24.
>> Looking at the repo at kernel.org, all I see is what we have,
>> dhclient-3.0.5-23.el5.x86_64.rpm.
>>
>>Any idea when this update will be released?

> ---
> Bother to even look on Upstreams Site?  It's not freely available yet as
> I see it.

No, I hadn't. I'm just a tad surprised - that was rated "important", and
looked as though it would be released soon. And with 6 coming soon, I was
thinking, though I haven't gone to look, that they'd have 3.1 or 4.x.

Thanks, though.

   mark


___
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


[CentOS] dhcpd rpm

2010-10-18 Thread R P Herrold
On Mon, 18 Oct 2010, Ausmus, Matt wrote:

> Yeah, this issue’s been brought up in the past.  One of the 
> maintainer of FC 13 made the srpm available (I believe he 
> prepped the spec file) for RHEL/CentOS 5 for dhcpd 4.1.  We 
> started looking at it and the problems are the dependencies 
> and the dependencies of the dependencies.  There are no 
> srpms or rpms for those and the project becomes a real 
> monster.

When this was raised before, I looked and there was a 
dhcp-4.2.0-11.fc15.src.rpm in RawHide; today I find 
dhcp-4.2.0-12.fc15.src.rpm

As I recall from trial builds, the first required fairly 
invasive changes in the initscripts, and I was not willing to 
sacrifice the time on a test box to satisfy idle curousity

Running a build at the latest code I also find it dies on this 
file, probably a either a missed new interface, or a mistake 
in the .c code

gcc -DHAVE_CONFIG_H -I. -I../includes  -I..
-DLOCALSTATEDIR='"/var"'   -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m64 -mtune=generic
-fno-strict-aliasing -fPIE -D_GNU_SOURCE  -I../bind/include
-MT resolv.o -MD -MP -MF .deps/resolv.Tpo -c -o resolv.o
resolv.c
resolv.c: In function 'read_resolv_conf':
resolv.c:52: error: 'O_CLOEXEC' undeclared (first use in this 
function)
resolv.c:52: error: (Each undeclared identifier is reported 
only once
resolv.c:52: error: for each function it appears in.)
make[2]: *** [resolv.o] Error 1

It is not clear why local includes of the resolver libraries 
are present.  Probably the right place to have these 
discussions are in Fedora or upstream, however

-- Russ herrold
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] dhcpd rpm

2010-10-18 Thread Todd Denniston
Ausmus, Matt wrote, On 10/18/2010 01:11 PM:
> Howdy,
> 
>  

> 
> We’ve found the problem is generally caused by the time being out of 
>  sync between the servers or the dhcpd daemon on one of the boxes dies.


NTP does not keep them closely enough synchronized?
OH, and in case you were not aware of it, you could run NTP on one of them 
using local clock if you
don't have a good trust able time server available for some reason. Also making 
your DHCP machines
NTP peers would be good too.

Or are you talking about some other type of time?

-- 
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane)
Harnessing the Power of Technology for the Warfighter
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Installing Adaptec Storage Manager - needs libstdc++-libc6.1-1.so.2

2010-10-18 Thread JohnS

On Mon, 2010-10-18 at 17:35 +0100, Peter Crighton wrote:

> Unfortunately not.
> 
> This is the contents of /usr/lib:
> 
> r...@backup lib]# ll libstdc*
> -rwxr-xr-x 1 root root 262092 Jan  6  2007
> libstdc++-3-libc6.2-2-2.10.0.so
> lrwxrwxrwx 1 root root 31 Oct 18 17:23 libstdc++-libc6.1-1.so.2 ->
> libstdc++-3-libc6.2-2-2.10.0.so
> lrwxrwxrwx 1 root root 31 Oct 16 17:31 libstdc++-libc6.2-2.so.3 ->
> libstdc++-3-libc6.2-2-2.10.0.so
> lrwxrwxrwx 1 root root 18 Oct 16 17:35 libstdc++.so.5 ->
> libstdc++.so.5.0.7
> -rwxr-xr-x 1 root root 733168 Jan  8  2007 libstdc++.so.5.0.7
> lrwxrwxrwx 1 root root 18 Oct  3 15:44 libstdc++.so.6 ->
> libstdc++.so.6.0.8
> -rwxr-xr-x 1 root root 936908 Mar 31  2010 libstdc++.so.6.0.8
> 
> And the result of the attempted installation:
> 
> [r...@backup lib]# rpm --install
> /home/peter/asm-linux_v2.12\(922\).rpm
> error: Failed dependencies:
> libstdc++-libc6.1-1.so.2 is needed by StorMan-2.12-00.i386
> 
> Grateful for more suggestions.
---
Because it is not registered in the rpm database.

With CAUTION you can use the "--force" parameter of rpm OR obtain
libstdc++ from El4 and install that to solve for the correct lib because
what you are installing is meant for EL4.

John

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Not receiving mail

2010-10-18 Thread Dotan Cohen
On Mon, Oct 18, 2010 at 01:46, Ryan Wagoner  wrote:
> You will want to check your DNS and try to telnet to the server. If
> your server is behind NAT or you run split-dns it would be advisable
> to try it from another connection.
>
> dig mx yourdomain.com
> telnet smtp.yourdomain.com 25
>
> Of course if your mx record points to something other than
> smtp.yourdomain.com you will want to use that instead.
>

Thanks, Ryan. The MX record looks fine, but telnet won't connect:

✈dcl:~$ dig mx sharingcenter.eu

; <<>> DiG 9.7.1-P2 <<>> mx sharingcenter.eu
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 22263
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 1

;; QUESTION SECTION:
;sharingcenter.eu.  IN  MX

;; ANSWER SECTION:
sharingcenter.eu.   86400   IN  MX  10 mail.sharingcenter.eu.

;; AUTHORITY SECTION:
sharingcenter.eu.   86400   IN  NS  ns2.sharingcenter.eu.
sharingcenter.eu.   86400   IN  NS  ns1.sharingcenter.eu.

;; ADDITIONAL SECTION:
mail.sharingcenter.eu.  86400   IN  A   178.63.65.136

;; Query time: 88 msec
;; SERVER: 212.150.49.10#53(212.150.49.10)
;; WHEN: Mon Oct 18 21:52:25 2010
;; MSG SIZE  rcvd: 107

✈dcl:~$ telnet sharingcenter.eu 25
Trying 178.63.65.188...
^C
✈dcl:~$ telnet mail.sharingcenter.eu 25
Trying 178.63.65.136...
telnet: Unable to connect to remote host: No route to host
✈dcl:~$



On the server, it looks like everything is running as it should:
[r...@mercury ~]# service postfix status
master (pid 31800) is running...
[r...@mercury ~]# service dovecot status
dovecot (pid  29751) is running...
[r...@mercury ~]# netstat -anp --tcp --udp | grep LISTEN | grep 25
tcp0  0 127.0.0.1:250.0.0.0:*
 LISTEN  31800/master
[r...@mercury ~]#


What could I be missing? The logs are clean.

-- 
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Not receiving mail

2010-10-18 Thread Alexander Dalloz
Am 18.10.2010 22:02, schrieb Dotan Cohen:
> On the server, it looks like everything is running as it should:
> [r...@mercury ~]# service postfix status
> master (pid 31800) is running...
> [r...@mercury ~]# service dovecot status
> dovecot (pid  29751) is running...
> [r...@mercury ~]# netstat -anp --tcp --udp | grep LISTEN | grep 25
> tcp0  0 127.0.0.1:250.0.0.0:*
>  LISTEN  31800/master
> [r...@mercury ~]#

The daemon is bound to localhost only.

> What could I be missing? The logs are clean.

postconf -e 'inet_interfaces = all'

service postfix restart

Alexander
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Who maintains php-pgsql package? I want to ask about using PostgreSQL 8.4 library instead of PostgreSQL 8.1.

2010-10-18 Thread Aleksey Tsalolikhin
How do I find out who is the maintainer of the php-pgsql package, please?
I want to request upgrade from underlying postgresql-libs-8.1.21
(/usr/lib64/libpq.so.4) to postgresql84-libs-8.4.4 (/usr/lib64/libpq.so.5.2).

Background on this request:  Apache httpd's php's php-pgsql uses
PostgreSQL 8.1 library (/usr/lib64/libpq.so.4), which leaks memory.
PostgreSQL 8.4 library does not leak.

Apache HTTP Server: httpd-2.2.3-43.el5.centos.3

mod_php: php-5.1.6-27.el5

PHP PostgreSQL interface is provided by: php-pgsql-5.1.6-27.el5,
which uses postgresql-libs-8.1.21-1.el5_5.1 which provides
/usr/lib64/libpq.so.4 which we've observed has a memory leak
(and this memory leak is NOT present in libpq.so.5.2)

  I am trying to figure out how to get our httpd/mod_php/php-pgsql
to use libpq.so.5.2 instead of libpq.so.4, and I thought I'd start by
asking the php-pgsql maintainer, so this problem is fixed for everybody,
not just for me.

  Please let me know if I can help in any way.

Kind regards,
Aleksey
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Who maintains php-pgsql package? I want to ask about using PostgreSQL 8.4 library instead of PostgreSQL 8.1.

2010-10-18 Thread Kevin Kempter
  On 10/18/2010 02:08 PM, Aleksey Tsalolikhin wrote:
> How do I find out who is the maintainer of the php-pgsql package, please?
> I want to request upgrade from underlying postgresql-libs-8.1.21
> (/usr/lib64/libpq.so.4) to postgresql84-libs-8.4.4 (/usr/lib64/libpq.so.5.2).
>
> Background on this request:  Apache httpd's php's php-pgsql uses
> PostgreSQL 8.1 library (/usr/lib64/libpq.so.4), which leaks memory.
> PostgreSQL 8.4 library does not leak.
>
>  Apache HTTP Server: httpd-2.2.3-43.el5.centos.3
>
>  mod_php: php-5.1.6-27.el5
>
>  PHP PostgreSQL interface is provided by: php-pgsql-5.1.6-27.el5,
> which uses postgresql-libs-8.1.21-1.el5_5.1 which provides
> /usr/lib64/libpq.so.4 which we've observed has a memory leak
> (and this memory leak is NOT present in libpq.so.5.2)
>
>I am trying to figure out how to get our httpd/mod_php/php-pgsql
> to use libpq.so.5.2 instead of libpq.so.4, and I thought I'd start by
> asking the php-pgsql maintainer, so this problem is fixed for everybody,
> not just for me.
>
>Please let me know if I can help in any way.
>
> Kind regards,
> Aleksey
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos

Current maintainer for this RPM set is:
* Devrim Gunduz
* PGP Key: http://www.gunduz.org/devrimgunduz-cmd.pgp.pub
* Howto: http://pgfoundry.org/docman/?group_id=148
* Homepage: http://pgfoundry.org/projects/pgsqlrpms




___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Not receiving mail

2010-10-18 Thread Dotan Cohen
On Mon, Oct 18, 2010 at 22:06, Alexander Dalloz  wrote:
> The daemon is bound to localhost only.
>

Yes, that would be a problem!

>> What could I be missing? The logs are clean.
>
> postconf -e 'inet_interfaces = all'
>
> service postfix restart
>

Thanks! However, even after the change and confirming that postfix is
listening properly:
[r...@mercury ~]# postconf -e 'inet_interfaces = all'
[r...@mercury ~]# service postfix restart
Shutting down postfix: [  OK  ]
Starting postfix:  [  OK  ]
[r...@mercury ~]# netstat -anp --tcp --udp | grep LISTEN | grep 25
tcp0  0 0.0.0.0:25  0.0.0.0:*
 LISTEN  7816/master
[r...@mercury ~]#


I still cannot cannot connect with telnet:

✈dcl:~$ telnet sharingcenter.eu 25
Trying 178.63.65.188...
Trying 178.63.65.136...
telnet: Unable to connect to remote host: Connection timed out
✈dcl:~$ telnet mail.sharingcenter.eu 25
Trying 178.63.65.136...
telnet: Unable to connect to remote host: No route to host
✈dcl:~$ ping sharingcenter.eu
PING sharingcenter.eu (178.63.65.188) 56(84) bytes of data.
64 bytes from static.188.65.63.178.clients.your-server.de
(178.63.65.188): icmp_req=1 ttl=50 time=85.0 ms
64 bytes from static.188.65.63.178.clients.your-server.de
(178.63.65.188): icmp_req=2 ttl=50 time=189 ms
64 bytes from static.188.65.63.178.clients.your-server.de
(178.63.65.188): icmp_req=3 ttl=50 time=92.0 ms
^C
--- sharingcenter.eu ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 85.069/122.275/189.675/47.745 ms
✈dcl:~$


Why might that be?

-- 
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Not receiving mail

2010-10-18 Thread m . roth
Dotan Cohen wrote:
> On Mon, Oct 18, 2010 at 22:06, Alexander Dalloz 
> wrote:

> Thanks! However, even after the change and confirming that postfix is
> listening properly:

> I still cannot cannot connect with telnet:
>
> ✈dcl:~$ telnet sharingcenter.eu 25
> Trying 178.63.65.188...
> Trying 178.63.65.136...
> telnet: Unable to connect to remote host: Connection timed out
> ✈dcl:~$ telnet mail.sharingcenter.eu 25
> Trying 178.63.65.136...
> telnet: Unable to connect to remote host: No route to host

Coming in late, and sorry if this has been suggested, but could it be a
firewall rule blocking it?

   mark

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Who maintains php-pgsql package? I want to ask about using PostgreSQL 8.4 library instead of PostgreSQL 8.1.

2010-10-18 Thread John R Pierce
  On 10/18/10 1:08 PM, Aleksey Tsalolikhin wrote:
> How do I find out who is the maintainer of the php-pgsql package, please?

that would be redhat.

> I want to request upgrade from underlying postgresql-libs-8.1.21
> (/usr/lib64/libpq.so.4) to postgresql84-libs-8.4.4 (/usr/lib64/libpq.so.5.2).

not unless redhat upgrades, something they aren't likely to do, although 
they might backport the fix for this leak.


> Background on this request:  Apache httpd's php's php-pgsql uses
> PostgreSQL 8.1 library (/usr/lib64/libpq.so.4), which leaks memory.
> PostgreSQL 8.4 library does not leak.
>
>  Apache HTTP Server: httpd-2.2.3-43.el5.centos.3
>
>  mod_php: php-5.1.6-27.el5
>
>  PHP PostgreSQL interface is provided by: php-pgsql-5.1.6-27.el5,
> which uses postgresql-libs-8.1.21-1.el5_5.1 which provides
> /usr/lib64/libpq.so.4 which we've observed has a memory leak
> (and this memory leak is NOT present in libpq.so.5.2)
>
>I am trying to figure out how to get our httpd/mod_php/php-pgsql
> to use libpq.so.5.2 instead of libpq.so.4, and I thought I'd start by
> asking the php-pgsql maintainer, so this problem is fixed for everybody,
> not just for me.

use the Postgres 8.4 RPMs from http://yum.pgrpms.org/  along with the 
compat-postgresql-libs package (from the same repository), which hooks 
the libpq.so.4 stuff that the stock EL5 clients like php-pgsql use.


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Not receiving mail

2010-10-18 Thread Steve Clark

On 10/18/2010 04:18 PM, Dotan Cohen wrote:

On Mon, Oct 18, 2010 at 22:06, Alexander Dalloz  wrote:
   

The daemon is bound to localhost only.

 

Yes, that would be a problem!

   

What could I be missing? The logs are clean.
   

postconf -e 'inet_interfaces = all'

service postfix restart

 

Thanks! However, even after the change and confirming that postfix is
listening properly:
[r...@mercury ~]# postconf -e 'inet_interfaces = all'
[r...@mercury ~]# service postfix restart
Shutting down postfix: [  OK  ]
Starting postfix:  [  OK  ]
[r...@mercury ~]# netstat -anp --tcp --udp | grep LISTEN | grep 25
tcp0  0 0.0.0.0:25  0.0.0.0:*
  LISTEN  7816/master
[r...@mercury ~]#


I still cannot cannot connect with telnet:

?dcl:~$ telnet sharingcenter.eu 25
Trying 178.63.65.188...
Trying 178.63.65.136...
telnet: Unable to connect to remote host: Connection timed out
?dcl:~$ telnet mail.sharingcenter.eu 25
Trying 178.63.65.136...
telnet: Unable to connect to remote host: No route to host
?dcl:~$ ping sharingcenter.eu
PING sharingcenter.eu (178.63.65.188) 56(84) bytes of data.
64 bytes from static.188.65.63.178.clients.your-server.de
(178.63.65.188): icmp_req=1 ttl=50 time=85.0 ms
64 bytes from static.188.65.63.178.clients.your-server.de
(178.63.65.188): icmp_req=2 ttl=50 time=189 ms
64 bytes from static.188.65.63.178.clients.your-server.de
(178.63.65.188): icmp_req=3 ttl=50 time=92.0 ms
^C
--- sharingcenter.eu ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 85.069/122.275/189.675/47.745 ms
?dcl:~$


Why might that be?

   

Firewall?

--
Stephen Clark
*NetWolves*
Sr. Software Engineer III
Phone: 813-579-3200
Fax: 813-882-0209
Email: steve.cl...@netwolves.com
http://www.netwolves.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Who maintains php-pgsql package? I want to ask about using PostgreSQL 8.4 library instead of PostgreSQL 8.1.

2010-10-18 Thread Ray Van Dolson
On Mon, Oct 18, 2010 at 01:21:58PM -0700, John R Pierce wrote:
>   On 10/18/10 1:08 PM, Aleksey Tsalolikhin wrote:
> > How do I find out who is the maintainer of the php-pgsql package, please?
> 
> that would be redhat.
> 
> > I want to request upgrade from underlying postgresql-libs-8.1.21
> > (/usr/lib64/libpq.so.4) to postgresql84-libs-8.4.4 
> > (/usr/lib64/libpq.so.5.2).
> 
> not unless redhat upgrades, something they aren't likely to do, although 
> they might backport the fix for this leak.

If there's a legitimate leak, this would certainly be appropriate to
file a bug for on bugzilla.redhat.com.  This is exactly the sort of
thing RH would likely fix too.

> 
> > Background on this request:  Apache httpd's php's php-pgsql uses
> > PostgreSQL 8.1 library (/usr/lib64/libpq.so.4), which leaks memory.
> > PostgreSQL 8.4 library does not leak.
> >
> >  Apache HTTP Server: httpd-2.2.3-43.el5.centos.3
> >
> >  mod_php: php-5.1.6-27.el5
> >
> >  PHP PostgreSQL interface is provided by: php-pgsql-5.1.6-27.el5,
> > which uses postgresql-libs-8.1.21-1.el5_5.1 which provides
> > /usr/lib64/libpq.so.4 which we've observed has a memory leak
> > (and this memory leak is NOT present in libpq.so.5.2)
> >
> >I am trying to figure out how to get our httpd/mod_php/php-pgsql
> > to use libpq.so.5.2 instead of libpq.so.4, and I thought I'd start by
> > asking the php-pgsql maintainer, so this problem is fixed for everybody,
> > not just for me.
> 
> use the Postgres 8.4 RPMs from http://yum.pgrpms.org/  along with the 
> compat-postgresql-libs package (from the same repository), which hooks 
> the libpq.so.4 stuff that the stock EL5 clients like php-pgsql use.

Ray
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Not receiving mail

2010-10-18 Thread Dotan Cohen
No, I should have mentioned that the firewall is open:

[r...@mercury public_html]# iptables -L -n -v
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target prot opt in out source
destination

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target prot opt in out source
destination

Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target prot opt in out source
destination
[r...@mercury public_html]#

-- 
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Who maintains php-pgsql package? I want to ask about using PostgreSQL 8.4 library instead of PostgreSQL 8.1.

2010-10-18 Thread Aleksey Tsalolikhin
Kevin Kempter:  Thank you for Devrim's name as the maintainer of php-pgsql.

John:  You wrote:
> use the Postgres 8.4 RPMs from http://yum.pgrpms.org/  along with the
> compat-postgresql-libs package (from the same repository), which hooks the
> libpq.so.4 stuff that the stock EL5 clients like php-pgsql use.

That's what I am doing and php-pgsql ends up using libpq.so.4 which has
the memory leak.

Ray: Thanks for your reply as well.

Best,
Aleksey
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Not receiving mail

2010-10-18 Thread Dotan Cohen
On Mon, Oct 18, 2010 at 22:34, Steve Clark  wrote:
> Hmm... I am not having any problem connecting from the U.S.
>
> ping 178.63.65.136
> PING 178.63.65.136 (178.63.65.136) 56(84) bytes of data.
> 64 bytes from 178.63.65.136: icmp_seq=1 ttl=49 time=140 ms
> 64 bytes from 178.63.65.136: icmp_seq=2 ttl=49 time=142 ms
> 64 bytes from 178.63.65.136: icmp_seq=3 ttl=49 time=138 ms
>
> telnet 178.63.65.136 25
> Trying 178.63.65.136...
> Connected to 178.63.65.136.
> Escape character is '^]'.
> ^]
> telnet> close
> Connection closed.
>

Exactly the problem! It pings fine (so I know that connections can be
established over the physical wires) and on the IP address telnet
answers. However, telnet to port 25 (smtp) with the domain name fails.
Why could that be?

-- 
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Not receiving mail

2010-10-18 Thread m . roth
Dotan Cohen wrote:
> On Mon, Oct 18, 2010 at 22:34, Steve Clark  wrote:
>> Hmm... I am not having any problem connecting from the U.S.
>
>> telnet 178.63.65.136 25
>> Trying 178.63.65.136...
>> Connected to 178.63.65.136.
>> Escape character is '^]'.
>> ^]
>> telnet> close
>> Connection closed.
>
> Exactly the problem! It pings fine (so I know that connections can be
> established over the physical wires) and on the IP address telnet
> answers. However, telnet to port 25 (smtp) with the domain name fails.
> Why could that be?

Bingo! DNS.

   mark

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Not receiving mail

2010-10-18 Thread Dotan Cohen
On Mon, Oct 18, 2010 at 22:47,   wrote:
> Bingo! DNS.
>

No, even on the IP address telnet won't answer on port 25:

✈dcl:~$ telnet 178.63.65.188 25
Trying 178.63.65.188...
telnet: Unable to connect to remote host: Connection timed out
✈dcl:~$


-- 
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Not receiving mail

2010-10-18 Thread JohnS

On Mon, 2010-10-18 at 22:38 +0200, Dotan Cohen wrote:

> 
> Exactly the problem! It pings fine (so I know that connections can be
> established over the physical wires) and on the IP address telnet
> answers. However, telnet to port 25 (smtp) with the domain name fails.
> Why could that be?
---
Why not post your config file so peeps can have a look at it?

John

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Not receiving mail

2010-10-18 Thread Todd Denniston
Dotan Cohen wrote, On 10/18/2010 04:51 PM:
> On Mon, Oct 18, 2010 at 22:47,   wrote:
>> Bingo! DNS.
>>
> 
> No, even on the IP address telnet won't answer on port 25:
> 
> ✈dcl:~$ telnet 178.63.65.188 25
> Trying 178.63.65.188...
> telnet: Unable to connect to remote host: Connection timed out
> ✈dcl:~$
> 
> 

are you coming to it from a 178.63.65.* or from a private IP (even if through a 
NAT)?

i.e. could there be one of those router things that does not pass private IP 
traffic on through
between you and it? :)

Grasping at a straw that look like a thought.
-- 
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane)
Harnessing the Power of Technology for the Warfighter
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Not receiving mail

2010-10-18 Thread Les Mikesell
On 10/18/2010 3:38 PM, Dotan Cohen wrote:
> On Mon, Oct 18, 2010 at 22:34, Steve Clark  wrote:
>> Hmm... I am not having any problem connecting from the U.S.
>>
>> ping 178.63.65.136
>> PING 178.63.65.136 (178.63.65.136) 56(84) bytes of data.
>> 64 bytes from 178.63.65.136: icmp_seq=1 ttl=49 time=140 ms
>> 64 bytes from 178.63.65.136: icmp_seq=2 ttl=49 time=142 ms
>> 64 bytes from 178.63.65.136: icmp_seq=3 ttl=49 time=138 ms
>>
>> telnet 178.63.65.136 25
>> Trying 178.63.65.136...
>> Connected to 178.63.65.136.
>> Escape character is '^]'.
>> ^]
>> telnet>  close
>> Connection closed.
>>
>
> Exactly the problem! It pings fine (so I know that connections can be
> established over the physical wires) and on the IP address telnet
> answers. However, telnet to port 25 (smtp) with the domain name fails.
> Why could that be?

No the example above shows a telnet to port 25 connecting - which I can 
reproduce too - but there is no 220 response as there should be from a 
mailserver.  Either the process is hung or configured to black/graylist 
unknown connections, or something other than mailserver is listening on 
port 25.

Telnet is going to go to an A record, so you have to look up the MX 
record first, then telnet to the target.

-- 
   Les Mikesell
 lesmikes...@gmail.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Not receiving mail

2010-10-18 Thread Alexander Dalloz
Am 18.10.2010 22:38, schrieb Dotan Cohen:
> On Mon, Oct 18, 2010 at 22:34, Steve Clark  wrote:
>> Hmm... I am not having any problem connecting from the U.S.
>>
>> ping 178.63.65.136
>> PING 178.63.65.136 (178.63.65.136) 56(84) bytes of data.
>> 64 bytes from 178.63.65.136: icmp_seq=1 ttl=49 time=140 ms
>> 64 bytes from 178.63.65.136: icmp_seq=2 ttl=49 time=142 ms
>> 64 bytes from 178.63.65.136: icmp_seq=3 ttl=49 time=138 ms
>>
>> telnet 178.63.65.136 25
>> Trying 178.63.65.136...
>> Connected to 178.63.65.136.
>> Escape character is '^]'.
>> ^]
>> telnet> close
>> Connection closed.
>>
> 
> Exactly the problem! It pings fine (so I know that connections can be
> established over the physical wires) and on the IP address telnet
> answers. However, telnet to port 25 (smtp) with the domain name fails.
> Why could that be?

Sorry, your problem is not DNS. The MX resolves.

But if you talk to an MTA on port 25 you must get a greeting - that does
not happen. Instead the connection hangs.

While your www server works:

~ $ telnet 178.63.65.136 80
Trying 178.63.65.136...
Connected to static.136.65.63.178.clients.your-server.de (178.63.65.136).
Escape character is '^]'.
GET / HTTP/1.0

HTTP/1.1 200 OK
Date: Mon, 18 Oct 2010 20:54:23 GMT
Server: Apache/2.2.3 (CentOS)
Last-Modified: Fri, 08 Oct 2010 21:00:56 GMT
ETag: "c7a1c2-28-4e88b200"
Accept-Ranges: bytes
Content-Length: 40
Connection: close
Content-Type: text/html; charset=UTF-8

Hello, world!
Connection closed by foreign host.

~ $ telnet sharingcenter.eu 80
Trying 178.63.65.136...
Connected to sharingcenter.eu (178.63.65.136).
Escape character is '^]'.
GET / HTTP/1.0

HTTP/1.1 200 OK
Date: Mon, 18 Oct 2010 20:55:16 GMT
Server: Apache/2.2.3 (CentOS)
Last-Modified: Fri, 08 Oct 2010 21:00:56 GMT
ETag: "c7a1c2-28-4e88b200"
Accept-Ranges: bytes
Content-Length: 40
Connection: close
Content-Type: text/html; charset=UTF-8

Hello, world!
Connection closed by foreign host.

I expect that even being local on the server(s) and running "telnet
localhost 25" results in a hung connection.

You misconfigured your Postfix. Check your /var/log/maillog/ for startup
errors.

By any chance, did you bring down loopback or destroyed the localhost
mapping in /etc/hosts? Or you have something broken in your main.cf.
Post the output of "postconf -n".

Alexander


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Not receiving mail

2010-10-18 Thread JohnS

On Mon, 2010-10-18 at 16:55 -0400, JohnS wrote:
> On Mon, 2010-10-18 at 22:38 +0200, Dotan Cohen wrote:
> 
> > 
> > Exactly the problem! It pings fine (so I know that connections can be
> > established over the physical wires) and on the IP address telnet
> > answers. However, telnet to port 25 (smtp) with the domain name fails.
> > Why could that be?
> ---
> Why not post your config file so peeps can have a look at it?
> 
> John

Well I have now a feeling it's more involved the his config file

John

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Not receiving mail

2010-10-18 Thread Dotan Cohen
I see now, since the last postfix restart the log is filling up with these:

Oct 18 22:59:42 mercury postfix/smtpd[11318]: fatal: open database
/etc/aliases.db: No such file or directory
Oct 18 22:59:43 mercury postfix/master[7816]: warning: process
/usr/libexec/postfix/smtpd pid 11318 exit status 1
Oct 18 22:59:43 mercury postfix/master[7816]: warning:
/usr/libexec/postfix/smtpd: bad command startup -- throttling

The problem will probably reveal itself here, but I will need to do a
bit of googling to decipher it all. I admit that much of the
configuration was done with tutorials that I googled, with limited
understanding. That's how we learn!

[r...@mercury ~]# postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
home_mailbox = Maildir/
html_directory = no
inet_interfaces = all
mail_owner = postfix
mailbox_command =
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, localhost
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
sample_directory = /usr/share/doc/postfix-2.3.3/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtp_tls_note_starttls_offer = yes
smtp_use_tls = yes
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_auth_only = no
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
unknown_local_recipient_reject_code = 550
[r...@mercury ~]#



To what must I change /etc/aliases.db? Which fine manual should I be reading?

-- 
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Not receiving mail

2010-10-18 Thread Dotan Cohen
On Mon, Oct 18, 2010 at 22:55, Todd Denniston
 wrote:
> are you coming to it from a 178.63.65.* or from a private IP (even if through 
> a NAT)?
>

No, I'm pinging and telnetting in from another country!


-- 
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Not receiving mail

2010-10-18 Thread John R Pierce
  On 10/18/10 2:08 PM, Dotan Cohen wrote:
> I see now, since the last postfix restart the log is filling up with these:
>
> Oct 18 22:59:42 mercury postfix/smtpd[11318]: fatal: open database
> /etc/aliases.db: No such file or directory
> Oct 18 22:59:43 mercury postfix/master[7816]: warning: process
> /usr/libexec/postfix/smtpd pid 11318 exit status 1
> 
>
> To what must I change /etc/aliases.db? Which fine manual should I be reading?

in sendmail at least, the command `newaliases` parses /etc/mail/aliases 
and creates /etc/mail/aliases.db




___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Not receiving mail

2010-10-18 Thread Scott Robbins
On Mon, Oct 18, 2010 at 11:08:37PM +0200, Dotan Cohen wrote:
> I see now, since the last postfix restart the log is filling up with these:
> 
> Oct 18 22:59:42 mercury postfix/smtpd[11318]: fatal: open database
> /etc/aliases.db: No such file or directory

Well, see if you have an /etc/aliases, which you should, even if it's a
defaut.  Then just run newaliases which will create an /etc/aliases.db

The issues may be elsewhere, but get rid of that one. 

-- 
Scott Robbins
PGP keyID EB3467D6
( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 )
gpg --keyserver pgp.mit.edu --recv-keys EB3467D6

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Not receiving mail

2010-10-18 Thread Dotan Cohen
On Mon, Oct 18, 2010 at 22:59, Alexander Dalloz  wrote:
> By any chance, did you bring down loopback or destroyed the localhost
> mapping in /etc/hosts? Or you have something broken in your main.cf.
> Post the output of "postconf -n".
>

No, loopback works and there's nothing unusual about /etc/hosts.


-- 
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Not receiving mail

2010-10-18 Thread Scott Robbins
On Mon, Oct 18, 2010 at 05:15:52PM -0400, Scott Robbins wrote:
> On Mon, Oct 18, 2010 at 11:08:37PM +0200, Dotan Cohen wrote:
> > I see now, since the last postfix restart the log is filling up with these:
> > 


> > Oct 18 22:59:42 mercury postfix/smtpd[11318]: fatal: open database
> > /etc/aliases.db: No such file or directory
> 
> Well, see if you have an /etc/aliases, which you should, even if it's a
> defaut.  Then just run newaliases which will create an /etc/aliases.db
> 
> The issues may be elsewhere, but get rid of that one. 

I should add that I think the actual postfix command is postalias and a
ls -l /usr/bin/newaliases points to /etc/alternatives/mta-newaliases

The newaliases command, as somone else commented, is the sendmail
command and depending upon the system, e.g., in FreeBSD it's done in
/etc/mail/mailer.conf, RH uses alternatives, and so on. 

-- 
Scott Robbins
PGP keyID EB3467D6
( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 )
gpg --keyserver pgp.mit.edu --recv-keys EB3467D6

Angel: I've been around death before. A lot. I've lost
people. I've killed people...
Cordelia: And you are dead.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Not receiving mail

2010-10-18 Thread Dotan Cohen
On Mon, Oct 18, 2010 at 23:15, Scott Robbins  wrote:
> Well, see if you have an /etc/aliases, which you should, even if it's a
> defaut.  Then just run newaliases which will create an /etc/aliases.db
>
> The issues may be elsewhere, but get rid of that one.
>

Well, I tried:

[r...@mercury ~]# ls -l /etc/aliases
-rw-r--r-- 1 root root 1512 Apr 25  2005 /etc/aliases
[r...@mercury ~]# newaliases
[r...@mercury ~]# service postfix restart
Shutting down postfix: [  OK  ]
Starting postfix:  [  OK  ]
[r...@mercury ~]# service postfix status
master (pid 12412) is running...
[r...@mercury ~]# tail /var/log/maillog
Oct 18 23:15:59 mercury postfix/master[7816]: warning:
/usr/libexec/postfix/smtpd: bad command startup -- throttling
Oct 18 23:16:18 mercury dovecot: imap-login: Login: user=,
method=PLAIN, rip=:::127.0.0.1, lip=:::127.0.0.1, secured
Oct 18 23:16:18 mercury dovecot: IMAP(sami37): Disconnected: Logged out
Oct 18 23:16:59 mercury postfix/smtpd[12298]: fatal: open database
/etc/aliases.db: No such file or directory
Oct 18 23:17:00 mercury postfix/master[7816]: warning: process
/usr/libexec/postfix/smtpd pid 12298 exit status 1
Oct 18 23:17:00 mercury postfix/master[7816]: warning:
/usr/libexec/postfix/smtpd: bad command startup -- throttling
Oct 18 23:17:49 mercury postfix/postfix-script: stopping the Postfix mail system
Oct 18 23:17:49 mercury postfix/master[7816]: terminating on signal 15
Oct 18 23:17:49 mercury postfix/postfix-script: starting the Postfix mail system
Oct 18 23:17:49 mercury postfix/master[12412]: daemon started --
version 2.3.3, configuration /etc/postfix
[r...@mercury ~]#



But it still won't connect:

✈dcl:~$ telnet mail.sharingcenter.eu 25
Trying 178.63.65.136...
telnet: Unable to connect to remote host: Connection timed out
✈dcl:~$ telnet sharingcenter.eu 25
Trying 178.63.65.188...
Trying 178.63.65.136...
telnet: Unable to connect to remote host: Connection timed out
✈dcl:~$


-- 
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Not receiving mail

2010-10-18 Thread Dotan Cohen
Seeing how postfix could not access  /etc/aliases I tried loosening
the permissions, but still no luck:

[r...@mercury ~]# chmod +rx /etc/aliases
[r...@mercury ~]# newaliases
[r...@mercury ~]# ls -l /etc/aliases
-rwxr-xr-x 1 root root 1512 Apr 25  2005 /etc/aliases
[r...@mercury ~]# service postfix status
master (pid 12412) is running...
[r...@mercury ~]# service postfix restart
Shutting down postfix: [  OK  ]
Starting postfix:  [  OK  ]
[r...@mercury ~]# tail /var/log/maillog
Oct 18 23:29:02 mercury postfix/master[12412]: warning: process
/usr/libexec/postfix/smtpd pid 12987 exit status 1
Oct 18 23:29:02 mercury postfix/master[12412]: warning:
/usr/libexec/postfix/smtpd: bad command startup -- throttling
Oct 18 23:29:17 mercury postfix/postalias[13000]: fatal: usage:
postalias [-Nfinoprsvw] [-c config_dir] [-d key] [-q key]
[map_type:]file...
Oct 18 23:29:52 mercury postfix/postfix-script: stopping the Postfix mail system
Oct 18 23:29:52 mercury postfix/master[12412]: terminating on signal 15
Oct 18 23:29:52 mercury postfix/postfix-script: starting the Postfix mail system
Oct 18 23:29:52 mercury postfix/master[13090]: daemon started --
version 2.3.3, configuration /etc/postfix
Oct 18 23:30:00 mercury postfix/smtpd[13106]: fatal: open database
/etc/aliases.db: No such file or directory
Oct 18 23:30:01 mercury postfix/master[13090]: warning: process
/usr/libexec/postfix/smtpd pid 13106 exit status 1
Oct 18 23:30:01 mercury postfix/master[13090]: warning:
/usr/libexec/postfix/smtpd: bad command startup -- throttling
[r...@mercury ~]# date
Mon Oct 18 23:30:08 CEST 2010
[r...@mercury ~]#



-- 
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Not receiving mail

2010-10-18 Thread Alexander Dalloz
Am 18.10.2010 23:22, schrieb Dotan Cohen:

> Well, I tried:
> 
> [r...@mercury ~]# ls -l /etc/aliases
> -rw-r--r-- 1 root root 1512 Apr 25  2005 /etc/aliases
> [r...@mercury ~]# newaliases
> [r...@mercury ~]# service postfix restart
> Shutting down postfix: [  OK  ]
> Starting postfix:  [  OK  ]
> [r...@mercury ~]# service postfix status
> master (pid 12412) is running...
> [r...@mercury ~]# tail /var/log/maillog
> Oct 18 23:15:59 mercury postfix/master[7816]: warning:
> /usr/libexec/postfix/smtpd: bad command startup -- throttling
> Oct 18 23:16:18 mercury dovecot: imap-login: Login: user=,
> method=PLAIN, rip=:::127.0.0.1, lip=:::127.0.0.1, secured
> Oct 18 23:16:18 mercury dovecot: IMAP(sami37): Disconnected: Logged out
> Oct 18 23:16:59 mercury postfix/smtpd[12298]: fatal: open database
> /etc/aliases.db: No such file or directory

Sendmail is still the default on CentOS. So to switch to Postfix you
will have to use the mechanism to relink - using alternatives.

What prints out: alternatives --display mta
If that tells you that Sendmail is still the primary MTA, then run:

alternatives --config mta

and select Postfix. Then rerun "newaliases" or "postalias /etc/aliases".

Alexander



___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Not receiving mail

2010-10-18 Thread Alexander Dalloz
Am 18.10.2010 23:31, schrieb Dotan Cohen:
> Seeing how postfix could not access  /etc/aliases I tried loosening
> the permissions, but still no luck:
> 
> [r...@mercury ~]# chmod +rx /etc/aliases

It is *NOT* the /etc/aliases plain text file Postfix tries to read in at
startup. It is the hashed map /etc/aliases.db!

And it is sufficient if root can read/write both files.

Alexander

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Not receiving mail

2010-10-18 Thread Dotan Cohen
On Mon, Oct 18, 2010 at 23:31, Alexander Dalloz  wrote:
> Sendmail is still the default on CentOS. So to switch to Postfix you
> will have to use the mechanism to relink - using alternatives.
>
> What prints out: alternatives --display mta

You found it!

[r...@mercury ~]# alternatives --display mta
mta - status is manual.
 link currently points to /usr/sbin/sendmail.exim
/usr/sbin/sendmail.exim - priority 10
 slave mta-pam: /etc/pam.d/exim
 slave mta-mailq: /usr/bin/mailq.exim
 slave mta-newaliases: /usr/bin/newaliases.exim
 slave mta-rmail: /usr/bin/rmail.exim
 slave mta-rsmtp: /usr/bin/rsmtp.exim
 slave mta-runq: /usr/bin/runq.exim
 slave mta-sendmail: /usr/lib/sendmail.exim
 slave mta-mailqman: /usr/share/man/man8/exim.8.gz
 slave mta-newaliasesman: (null)
 slave mta-aliasesman: (null)
 slave mta-sendmailman: (null)
/usr/sbin/sendmail.postfix - priority 30
 slave mta-pam: /etc/pam.d/smtp.postfix
 slave mta-mailq: /usr/bin/mailq.postfix
 slave mta-newaliases: /usr/bin/newaliases.postfix
 slave mta-rmail: /usr/bin/rmail.postfix
 slave mta-rsmtp: (null)
 slave mta-runq: (null)
 slave mta-sendmail: /usr/lib/sendmail.postfix
 slave mta-mailqman: /usr/share/man/man1/mailq.postfix.1.gz
 slave mta-newaliasesman: /usr/share/man/man1/newaliases.postfix.1.gz
 slave mta-aliasesman: /usr/share/man/man5/aliases.postfix.5.gz
 slave mta-sendmailman: /usr/share/man/man1/sendmail.postfix.1.gz
Current `best' version is /usr/sbin/sendmail.postfix.


> If that tells you that Sendmail is still the primary MTA, then run:
>
> alternatives --config mta
>
> and select Postfix. Then rerun "newaliases" or "postalias /etc/aliases".
>

Done! I then restarted postfix and there seem to be no new errors in
the logs. However, I still cannot telnet into port 25:

✈dcl:~$ telnet sharingcenter.eu 25
Trying 178.63.65.188...
Trying 178.63.65.136...
telnet: Unable to connect to remote host: No route to host
✈dcl:~$ telnet mail.sharingcenter.eu 25
Trying 178.63.65.136...
telnet: Unable to connect to remote host: Connection timed out
✈dcl:~$
-- 
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Not receiving mail

2010-10-18 Thread R P Herrold
On Mon, 18 Oct 2010, Dotan Cohen wrote:

> Done! I then restarted postfix and there seem to be no new errors in
> the logs. However, I still cannot telnet into port 25:

> ✈dcl:~$ telnet mail.sharingcenter.eu 25
> Trying 178.63.65.136...
> telnet: Unable to connect to remote host: Connection timed out
> ✈dcl:~$

It works here (where here is on another continent)

[herr...@stones herrold]$ telnet 178.63.65.136 25
Trying 178.63.65.136...
Connected to 178.63.65.136.
Escape character is '^]'.
220 mercury.localdomain ESMTP Postfix
quit
221 2.0.0 Bye
Connection closed by foreign host.
[herr...@stones herrold]$

Something between your local setup and 178.63.65.136 is 
blocking you --

Solve that -- it is NOT a centos issue at this point

-- Russ herrold
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Not receiving mail

2010-10-18 Thread John R Pierce
  On 10/18/10 2:22 PM, Dotan Cohen wrote:
> On Mon, Oct 18, 2010 at 23:15, Scott Robbins  wrote:
>> Well, see if you have an /etc/aliases, which you should, even if it's a
>> defaut.  Then just run newaliases which will create an /etc/aliases.db
>>
>> The issues may be elsewhere, but get rid of that one.
>>
> Well, I tried:
>
> [r...@mercury ~]# ls -l /etc/aliases
> -rw-r--r-- 1 root root 1512 Apr 25  2005 /etc/aliases
> [r...@mercury ~]# newaliases
> [r...@mercury ~]# service postfix restart
> Shutting down postfix: [  OK  ]
> Starting postfix:  [  OK  ]
> [r...@mercury ~]# service postfix status
> master (pid 12412) is running...
> [r...@mercury ~]# tail /var/log/maillog
> Oct 18 23:15:59 mercury postfix/master[7816]: warning:
> /usr/libexec/postfix/smtpd: bad command startup -- throttling
> Oct 18 23:16:18 mercury dovecot: imap-login: Login: user=,
> method=PLAIN, rip=:::127.0.0.1, lip=:::127.0.0.1, secured
> Oct 18 23:16:18 mercury dovecot: IMAP(sami37): Disconnected: Logged out
> Oct 18 23:16:59 mercury postfix/smtpd[12298]: fatal: open database
> /etc/aliases.db: No such file or directory
> Oct 18 23:17:00 mercury postfix/master[7816]: warning: process
> /usr/libexec/postfix/smtpd pid 12298 exit status 1
> Oct 18 23:17:00 mercury postfix/master[7816]: warning:
> /usr/libexec/postfix/smtpd: bad command startup -- throttling
> Oct 18 23:17:49 mercury postfix/postfix-script: stopping the Postfix mail 
> system
> Oct 18 23:17:49 mercury postfix/master[7816]: terminating on signal 15
> Oct 18 23:17:49 mercury postfix/postfix-script: starting the Postfix mail 
> system
> Oct 18 23:17:49 mercury postfix/master[12412]: daemon started --
> version 2.3.3, configuration /etc/postfix
> [r...@mercury ~]#
>
>
>
> But it still won't connect:

no kidding.  look at that log, it didn't start. (last 3 lines 
notwithstanding, every else there looks like 'error' to me)


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Not receiving mail

2010-10-18 Thread Dotan Cohen
On Mon, Oct 18, 2010 at 23:46, John R Pierce  wrote:
> no kidding.  look at that log, it didn't start. (last 3 lines
> notwithstanding, every else there looks like 'error' to me)
>

Yes, those error were before I removed sendmail from the default config.

Even though it seems to be answering on post 25 now, mail sent to an
account there from Gmail are not being received. No errors in the
logs.

-- 
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] excel parser (preferably perl)?

2010-10-18 Thread Les Mikesell
I'm getting tired of converting spreadsheets that someone else updates 
to csv so my perl scripts can push the data into a mysql database.  Is 
there a better way?  I haven't had much luck with 
perl-Spreadsheet-ParseExcel (and find it odd that yum prefers the .32 
version from epel over .57 from rpmforge anyway).  Is the current CPAN 
version better?  Or the equivalent java tools?  Or maybe a scripted 
OpenOffice conversion would be possible.

Needs to deal with both xls and xlsx formats, the odd characters that 
are confused with quotes even after csv conversion, numbers with $'s and 
commas embedded, excel's date formatting nonsense, etc.

-- 
   Les Mikesell
lesmikes...@gmail.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] excel parser (preferably perl)?

2010-10-18 Thread JohnS

On Mon, 2010-10-18 at 17:13 -0500, Les Mikesell wrote:
> I'm getting tired of converting spreadsheets that someone else updates 
> to csv so my perl scripts can push the data into a mysql database.  Is 
> there a better way?  I haven't had much luck with 
> perl-Spreadsheet-ParseExcel (and find it odd that yum prefers the .32 
> version from epel over .57 from rpmforge anyway).  Is the current CPAN 
> version better?  Or the equivalent java tools?  Or maybe a scripted 
> OpenOffice conversion would be possible.
> 
> Needs to deal with both xls and xlsx formats, the odd characters that 
> are confused with quotes even after csv conversion, numbers with $'s and 
> commas embedded, excel's date formatting nonsense, etc.
---
I think you are out of luck on that.  .Net has a whole world of Office
Goodies what a shame...
Extract the CSV Data then do a insert into MySQL.  Is that how you do it
now?

John

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] excel parser (preferably perl)?

2010-10-18 Thread Bill Campbell
On Mon, Oct 18, 2010, Les Mikesell wrote:
>I'm getting tired of converting spreadsheets that someone else updates 
>to csv so my perl scripts can push the data into a mysql database.  Is 
>there a better way?  I haven't had much luck with 
>perl-Spreadsheet-ParseExcel (and find it odd that yum prefers the .32 
>version from epel over .57 from rpmforge anyway).  Is the current CPAN 
>version better?  Or the equivalent java tools?  Or maybe a scripted 
>OpenOffice conversion would be possible.
>
>Needs to deal with both xls and xlsx formats, the odd characters that 
>are confused with quotes even after csv conversion, numbers with $'s and 
>commas embedded, excel's date formatting nonsense, etc.

I don't do much perl these days, having switched to python for
most of my stuff.

There is at least one python package for this:

http://pypi.python.org/pypi/xlrd

A google search on ``python excel reader'' came up with quite a
few hits.

Of course there are easy python dbi interfaces to mysql, postgresql, and
other SQL databases as well.

Bill
-- 
INTERNET:   b...@celestial.com  Bill Campbell; Celestial Software LLC
URL: http://www.celestial.com/  PO Box 820; 6641 E. Mercer Way
Voice:  (206) 236-1676  Mercer Island, WA 98040-0820
Fax:(206) 232-9186  Skype: jwccsllc (206) 855-5792

It is practically impossible to teach good programming style to
students that have had prior exposure to BASIC: as potential
programmers they are mentally mutilated beyond hope of
regeneration.  -- Dijkstra
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] excel parser (preferably perl)?

2010-10-18 Thread Les Mikesell
On 10/18/2010 5:31 PM, JohnS wrote:
>
> On Mon, 2010-10-18 at 17:13 -0500, Les Mikesell wrote:
>> I'm getting tired of converting spreadsheets that someone else updates
>> to csv so my perl scripts can push the data into a mysql database.  Is
>> there a better way?  I haven't had much luck with
>> perl-Spreadsheet-ParseExcel (and find it odd that yum prefers the .32
>> version from epel over .57 from rpmforge anyway).  Is the current CPAN
>> version better?  Or the equivalent java tools?  Or maybe a scripted
>> OpenOffice conversion would be possible.
>>
>> Needs to deal with both xls and xlsx formats, the odd characters that
>> are confused with quotes even after csv conversion, numbers with $'s and
>> commas embedded, excel's date formatting nonsense, etc.
> ---
> I think you are out of luck on that.  .Net has a whole world of Office
> Goodies what a shame...
> Extract the CSV Data then do a insert into MySQL.  Is that how you do it
> now?

Yes, someone emails an xls or xlsx, I do a 'save as' csv, but it's not a 
straight insert after that.  I read it into perl and do some checking 
and conversions, depending on the data involved, then an insert or 
update.  I expected the db to be the authoritative copy but I keep 
getting batches of wholesale modifications to merge in so I'd like to 
automate it a little more completely.

-- 
   Les Mikesell
lesmikes...@gmail.com

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] excel parser (preferably perl)?

2010-10-18 Thread JohnS

On Mon, 2010-10-18 at 17:54 -0500, Les Mikesell wrote:
> On 10/18/2010 5:31 PM, JohnS wrote:
> >
> > On Mon, 2010-10-18 at 17:13 -0500, Les Mikesell wrote:
> >> I'm getting tired of converting spreadsheets that someone else updates
> >> to csv so my perl scripts can push the data into a mysql database.  Is
> >> there a better way?  I haven't had much luck with
> >> perl-Spreadsheet-ParseExcel (and find it odd that yum prefers the .32
> >> version from epel over .57 from rpmforge anyway).  Is the current CPAN
> >> version better?  Or the equivalent java tools?  Or maybe a scripted
> >> OpenOffice conversion would be possible.
> >>
> >> Needs to deal with both xls and xlsx formats, the odd characters that
> >> are confused with quotes even after csv conversion, numbers with $'s and
> >> commas embedded, excel's date formatting nonsense, etc.
> > ---
> > I think you are out of luck on that.  .Net has a whole world of Office
> > Goodies what a shame...
> > Extract the CSV Data then do a insert into MySQL.  Is that how you do it
> > now?
> 
> Yes, someone emails an xls or xlsx, I do a 'save as' csv, but it's not a 
> straight insert after that.  I read it into perl and do some checking 
> and conversions, depending on the data involved, then an insert or 
> update.  I expected the db to be the authoritative copy but I keep 
> getting batches of wholesale modifications to merge in so I'd like to 
> automate it a little more completely.
---
This is a really old way here: It can be scripted though..."LOAD DATA
INFILE" is the key here check it out.

LOAD DATA INFILE '/my.csv' REPLACE INTO TABLE `test` 
FIELDS TERMINATED BY ','
ENCLOSED BY '"'
ESCAPED BY '\\'
LINES TERMINATED BY '\r\n'

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] excel parser (preferably perl)?

2010-10-18 Thread Les Mikesell
On 10/18/2010 6:16 PM, JohnS wrote:
>
> On Mon, 2010-10-18 at 17:54 -0500, Les Mikesell wrote:
>> On 10/18/2010 5:31 PM, JohnS wrote:
>>>
>>> On Mon, 2010-10-18 at 17:13 -0500, Les Mikesell wrote:
 I'm getting tired of converting spreadsheets that someone else updates
 to csv so my perl scripts can push the data into a mysql database.  Is
 there a better way?  I haven't had much luck with
 perl-Spreadsheet-ParseExcel (and find it odd that yum prefers the .32
 version from epel over .57 from rpmforge anyway).  Is the current CPAN
 version better?  Or the equivalent java tools?  Or maybe a scripted
 OpenOffice conversion would be possible.

 Needs to deal with both xls and xlsx formats, the odd characters that
 are confused with quotes even after csv conversion, numbers with $'s and
 commas embedded, excel's date formatting nonsense, etc.
>>> ---
>>> I think you are out of luck on that.  .Net has a whole world of Office
>>> Goodies what a shame...
>>> Extract the CSV Data then do a insert into MySQL.  Is that how you do it
>>> now?
>>
>> Yes, someone emails an xls or xlsx, I do a 'save as' csv, but it's not a
>> straight insert after that.  I read it into perl and do some checking
>> and conversions, depending on the data involved, then an insert or
>> update.  I expected the db to be the authoritative copy but I keep
>> getting batches of wholesale modifications to merge in so I'd like to
>> automate it a little more completely.
> ---
> This is a really old way here: It can be scripted though..."LOAD DATA
> INFILE" is the key here check it out.
>
> LOAD DATA INFILE '/my.csv' REPLACE INTO TABLE `test`
> FIELDS TERMINATED BY ','
> ENCLOSED BY '"'
> ESCAPED BY '\\'
> LINES TERMINATED BY '\r\n'

But the piece I want to script is the saving as csv in the first place. 
  Plus ways to work around the gunk that excel can put in a csv file and 
the date format that is nothing like what sql wants.

-- 
   Les Mikesell
 lesmikes...@gmail.com


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] excel parser (preferably perl)?

2010-10-18 Thread Aleksey Tsalolikhin
On Mon, Oct 18, 2010 at 3:13 PM, Les Mikesell  wrote:
> I'm getting tired of converting spreadsheets that someone else updates
> to csv so my perl scripts can push the data into a mysql database.  Is
> there a better way?  I haven't had much luck with
> perl-Spreadsheet-ParseExcel (and find it odd that yum prefers the .32
> version from epel over .57 from rpmforge anyway).  Is the current CPAN
> version better?  Or the equivalent java tools?  Or maybe a scripted
> OpenOffice conversion would be possible.
>
> Needs to deal with both xls and xlsx formats, the odd characters that
> are confused with quotes even after csv conversion, numbers with $'s and
> commas embedded, excel's date formatting nonsense, etc.

Hi, Les.

xlhtml has a switch, -csv, to output in Comma Separated Values

http://chicago.sourceforge.net/xlhtml/

I am not sure if it'll do everything you want, it's a few years old, but may
be worth a look.

Best,
-at
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] pdflush kernel thread pops up every 10 seconds or so and video decoding grinds to a halt for 1/2 a second

2010-10-18 Thread Aleksey Tsalolikhin
Hi. A friend of mine was doing real-time video decoding on
Fedora Core 13 and he had a performance glitch (1/2 a second
freeze) every 5-10 seconds.  "top" showed flush-253:0
process at the moment of the freeze.

Major device number 253 corresponds to device-mapper.  I advised my
friend to re-install his FC13 without LVM, to see if the glitch
is related to LVM.

After re-installing FC13 without LVM, he is seeing the glitch
every 10 seconds, and it shows flush-8:16 where before it said
flush-253:0.  8 is scsi disk driver. So it's not an LVM thing...
maybe a kernel thing?

I suggested he try Fedora 14 beta, as it has a newer kernel.
Maybe this kernel thing is fixed in the newer kernel.

He also tried CentOS 5.5, and saw a "pdflush" process popping
up with the same frequency, and resulting in a similar glitch.

Any other suggestions?

Best,
-at
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Not receiving mail

2010-10-18 Thread cornel panceac
>
> Yes, those error were before I removed sendmail from the default config.
>
> Even though it seems to be answering on post 25 now, mail sent to an
> account there from Gmail are not being received. No errors in the
> logs.
>
> --
> Dotan Cohen
>
> stupid's question: what happens if you disable selinux?
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] pdflush kernel thread pops up every 10 seconds or so and video decoding grinds to a halt for 1/2 a second

2010-10-18 Thread JohnS

On Mon, 2010-10-18 at 18:25 -0700, Aleksey Tsalolikhin wrote:
> Hi. A friend of mine was doing real-time video decoding on
> Fedora Core 13 and he had a performance glitch (1/2 a second
> freeze) every 5-10 seconds.  "top" showed flush-253:0
> process at the moment of the freeze.

And what is the Priority of it running at?  How many Cores also?

> He also tried CentOS 5.5, and saw a "pdflush" process popping
> up with the same frequency, and resulting in a similar glitch.
> 
> Any other suggestions?
I would not even be concerned. ATM I am seeing pdflush on a server pop
every second.
load average: 4.51, 3.41, 3.51

I would only be concerned with the Freeze.  What's uname -a on the
CentOS machine?

John

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos