Re: [CentOS] Mock build php i386 from x86_64 issue

2010-07-07 Thread Rick Barnes
On 07/07/2010 07:26 AM, Jason Pyeron wrote:
 checking OpenSSL dir for SNMP... no
 /usr/bin/net-snmp-config: line 43: net-snmp-config-x86_64: command not found
 /usr/bin/net-snmp-config: line 43: net-snmp-config-x86_64: command not found
 /usr/bin/net-snmp-config: line 43: net-snmp-config-x86_64: command not found
 configure: error: Could not find the required paths. Please check your 
 net-snmp
 installation.
 error: Bad exit status from /var/tmp/rpm-tmp.66050 (%build)

Since you didn't really ask a question nor provide any further 
information, I will ask you the obvious question:

Is net-snmp-devel installed like it asks for?

$ yum whatprovides /usr/bin/net-snmp-config
Loaded plugins: fastestmirror, priorities
Reducing Extra Packages for Enterprise Linux 5 - x86_64 to included 
packages only
Finished
Excluding Packages from CentOS-5 - Extras
Finished
0 packages excluded due to repository priority protections
1:net-snmp-devel-5.3.2.2-9.el5.i386 : The development environment for 
the NET-SNMP project.
Repo: base
Matched from:
Filename: /usr/bin/net-snmp-config



1:net-snmp-devel-5.3.2.2-9.el5.x86_64 : The development environment for 
the NET-SNMP project.
Repo: base
Matched from:
Filename: /usr/bin/net-snmp-config

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


Re: [CentOS] Screen capture in Terminal

2009-12-10 Thread Rick Barnes
On 12/10/2009 08:05 AM, Robert Moskowitz wrote:
 I don't see how to do it.

 I had to telnet into a firewall and run a trace, and I had to stop it,
 copy and paste to gedit, then start again, etc.

 I find it interesting, and sad, that there is no easy 'output to file'
 profile setting.

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


Re: [CentOS] CERN using RHEL/CentOS?

2009-11-24 Thread Rick Barnes
On 11/24/2009 07:04 AM, Jim Perrin wrote:
 That would make for a hell of a press release too!

 Linux (specifically CentOS) responsible for LHC blackhole that
 destroyed the world!

 Just think of the publicity we'd get!

No worse than getting CentOS getting blamed for hacking web servers
;-)

Rick

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


[CentOS] Opinions on bonding modes?

2009-09-14 Thread Rick Barnes
I am working on setting up an NFS server, which will mainly serve files
to web servers, and I want to setup two bonds. I have a question
regarding *which* bonding mode to use. None of the documentation I have
read suggests any mode is better than other with the exception of
specific use cases (e.g. switch does not support 802.3ad, active-backup).

Since my switch *does* support 802.3ad, including layers 2,3 and 4
hashing, should I use mode=4? Or would one of the other modes be
better for providing fail-over and link-aggregation, specifically
balance-tlb or balance-alb.

Any suggestions are appreciated.

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


Re: [CentOS] denyhosts configuration

2009-08-26 Thread Rick Barnes
Dave wrote:
 Hello,
   I've installed denyhosts on centos 5.3 trying to block automated
 attacks on ssh. It appears to be working in that entries are being added to
 /etc/hosts.deny yet the daily emails sent from denyhosts show only one ip
 being added perday when the total is many more than that. My config is
 below, i've gone over it and am not seeing what i missed. Suggestions
 welcome.
   I was also wondering if denyhosts can block other types of robot
 attacks such as smtp or port 80?

It can deny access to any service that uses hosts.deny if you change it
to ALL instead of sshd. It is configured to watch /var/log/secure, so if
smtpd logs login failures there, then it can be used to add to the deny
list.

Apache does not use hosts.allow or hosts.deny by default. Some googling
suggested this might be done with xinetd but I haven't tried it.

 BLOCK_SERVICE  = sshd
 SYNC_SERVER = http://xmlrpc.denyhosts.net:9911
 SYNC_INTERVAL = 1h
 SYNC_UPLOAD = yes
 SYNC_DOWNLOAD = yes

I believe the IP entries being added are because you using the sync
feature. The email only notifies new entries added due to active
attempts against your server, not those added by the sync, IIRC.

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


Re: [CentOS] Samba use sendfile configuration option set do disabled as default - why?

2009-08-25 Thread Rick Barnes
happymaster23 wrote:
 My question is why is this option disabled as default in CentOS?

I believe you are not getting the answer you seek because you are not
asking the right question to the right people.

The right question is Why is this option disabled as default in
*RHEL*? The right people to ask this question is Red Hat.

I doubt the CentOS builders are arbitrarily changing this default
setting, but feel free to grab the upstream srpm and show me that I'm wrong.

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


Re: [CentOS] PDNS

2009-08-03 Thread Rick Barnes
Jason Pyeron wrote:
 In particular do you have any complaints about doing complicated setups?

We are using a clustered mysql setup and the pdns servers all connect to
the same database. This means no worrying about master-slave XFRs. When
changes occur to database such as adding/removing zones, all changes are
reflected immediately to all DNS servers without restarting or reloading
the pdns daemon.

 Windows machines registering themselves?

We haven't done this.

 Upstream provider's continued support after 5.x?

It's in the CentOS Extras repo not in base. But the release in Extras is
outdated and there are security fixes are in later releases.

EPEL has the latest release and its spec file appears to be written by
the same person that did the centos-plus version.

 Any other jibes or cheers?

http://doc.powerdns.com/ has lots of info to get it setup.

Also, PowerAdmin (https://www.poweradmin.org) is a decent web front-end
to pdns.

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


Re: [CentOS] Apache and CF

2009-05-05 Thread Rick Barnes
Jason Todd Slack-Moehrle wrote:
 Hi All,
 
 I have a CentoS 5.3 Xen Instance at Mosso.
 
 I need to run ColdFusion and I have in the past successfully made  
 everything work, but not on Linux rather Windows.
 
 I just cannot get Apache and CF talking. I added mod_jrun22, When I  
 try to serve a CF file, I am asked to download binary data. I  
 added .cfm and .cfml to Directory Index for /var/www/html in  
 httpd.conf and nothing still.
 
 I have been trying to get this working for days.

It is been awhile since I installed CF8. But after running the
installer, start CF8 with:
$ /etc/init.d/coldfusion_8 start

Be sure to install httpd-devel as the connector script needs apxs.

$ cd /opt/coldfusion8/runtime/bin
$ ./wsconfig -server coldfusion -ws Apache -bin /usr/sbin/httpd \
-script /etc/init.d/httpd -dir /etc/httpd/conf -coldfusion -v

This should install the connector and restart Apache for you (edit as
necessary). Then login to http://localhost/CFIDE/ to complete.

If apache doesn't restart dpe to permissions, it could be SElinux
$ chcon --reference=/usr/sbin/httpd \
/opt/coldfusion8/runtime/lib/wsconfig/1/mod_jrun22.so
usually fixes it for Enforcing. If not try Permissive.

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


Re: [CentOS] Memory Leak with stock Squirrelmail, PHP, mysql, apache since 5.3

2009-04-24 Thread Rick Barnes
James Wilson wrote:
 Since upgrading to 5.3 we have noticed that overnight all 4GB of  
 physical RAM and all 4GB of swap is eaten and the web service  
 unresponsive.  We can still SSH into the machine and restart Apache.   
 This rectifies the issue.  These are production boxes and subject to  
 numerous connections, we are trying to isolate the trigger.  However,  
 the exact same configuration and applications being served under 5.2  
 exhibit no issue.
 
 I suspect it may be related to this bug, logged with the upstream:
 
 https://bugzilla.redhat.com/show_bug.cgi?id=497077

I was experiencing similar problems with an x86_64 server after
upgrading to 5.3. While MySQL, Apache and PHP are installed SquirrelMail
was not, nor mail services beyond daily logwatch emails.

Since Apache was serving internal-only sites needed by only a few people
in my department, I found that de-tuning the prefork section httpd.conf
was an acceptable workaround.

None of the other servers I have upgraded to 5.3 have exhibited this
issue, but they are all i386 web servers only and do not mysql
installed. Although they do handle 2-3 orders of magnitude more requests
than the x86_64 server does.

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


[CentOS] x86_64 server OOM problems after update to 5.3

2009-04-13 Thread Rick Barnes
Hello,

Over the weekend, I upgraded one of my servers that runs mysql and pdns
to 5.3. Previous to the update I have not had an issue form this server.
But since, I have had mysql die multiple times from oom-killer.

$ uname -a
Linux rack2a 2.6.18-128.1.6.el5 #1 SMP Wed Apr 1 09:10:25 EDT 2009
x86_64 x86_64 x86_64 GNU/Linux

Unfortunately, the server has been rebooted by others before I have been
able to look at it while the problem is occurring. But I have found this
in the logs:

http://pastebin.centos.org/25553

Running sar -A:

http://pastebin.centos.org/25556

Since the server was rebooted, the amount of swap is used is 0.

How do I determine what process is/was chewing up the memory on this
server? What should I be looking for to narrow this down?

Thanks,
Rick

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


Re: [CentOS] x86_64 server OOM problems after update to 5.3

2009-04-13 Thread Rick Barnes
JohnS wrote:
 On Mon, 2009-04-13 at 10:31 -0400, Rick Barnes wrote:
 Hello,

  I have had mysql die multiple times from oom-killer.

 
 Thanks,
 Rick
 ---
 In seeing what you do I would be looking at the queries being made.
 SPROCs, Triggers, Views. Also very import is if that one particular data
 base is doing graffing running predictions as you all do GIS and
 Mapping. Predictions can be huge memory burners. Last thing does it run
 as a virtual machine or on real hardware?

This is a real hardware server. It is not doing GIS or mapping of the
like, most of the DBs on this are for web sites, mostly form data
storage, some CMS DBs for joomla, WP, etc. also some others for cacti
and powerdns backends.

I have setup some scripts to watch the swap usage to see if I can track
this down.

Thanks for the help

Rick



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


Re: [CentOS] x86_64 server OOM problems after update to 5.3

2009-04-13 Thread Rick Barnes
JohnS wrote:

 Seeing as you said you upgraded from 5.2 - 5.3 I would be looking at the
 kernel release notes and the mysql release notes for known problems
 since you did not have prior problems. I would check out the Cacti and
 DNS Databases because there more realtime in nature to running on the
 server than the content ones. Using the script I posted will catch the
 offending query. I myself would take a hard look @ MYSQL itself. There
 is a huge debate about it not being Production Ready. Last option would
 be to do a yum --allow-downgrade until it's sorted out on a test
 machine.

It appears as though apache is to blame:

http://pastebin.centos.org/25568

By stopping and starting apache, %swpused went from 92.84% to 6.41% and
has remained for about an hour now.

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


Re: [CentOS] Apache, SELinux, and document root on a different partition

2008-12-01 Thread Rick Barnes

Kenneth Porter wrote:
Here's what I'm seeing logged. (Newlines added to make it easier to see 
the log line boundaries with wrapping.) It looks like it's failing to 
traverse the root directory to get to the directory with the content in 
it, but why doesn't it fail on /var/www/html or home directory content, 
which must also do that?


type=AVC msg=audit(1228142052.656:3183659): avc:  denied  { search } for 
pid=29382 comm=httpd name=/ dev=cciss/c0d2p1 ino=2 
scontext=user_u:system_r:httpd_t:s0 tcontext=system_u:object_r:file_t:s0 
tclass=dir



Try this:

# grep httpd /var/log/audit/audit.log | audit2why

The output should explain why you are getting the permission denials.

Rick


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


Re: [CentOS] Error on man page

2008-10-15 Thread Rick Barnes

[EMAIL PROTECTED] wrote:

Hi
I discovered a similar problem early this week and a colleage on irc was 
told it was a copy and paste error.


in man syslogd, the following can be found:

  Sucker rod def. -- 3/4, 7/8 or 1in. hardened steel rod, 
male threaded on each end.  Primary use in the oil industry in Western 
North Dakota and other locations to pump 'suck' oil from oil wells.   Sec-


  ondary uses are for the construction of cattle feed lots 
and for dealing with the occasional recalcitrant or belligerent individual.


Its not an error, read the previous lines:
5. Use step 4 and if the problem persists and is not secondary to a 
rogue program/daemon get a 3.5 ft (approx. 1 meter) length of sucker 
rod* and  have a chat with the user in question.


Its an attempt at a joke by the author of the man page.

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


Re: [CentOS] CentOS 5 x86_64 install does not see SATA drives

2008-10-13 Thread Rick Barnes

Dougal Ballantyne wrote:

I am having some problems installing CentOS 5.2 x86_64 onto a
Supermicro 6015V-T with Intel 5000V chipset and ESB2 controller using
SATA drives. Currently I am running CentOS 4.7 i386 and it sees both
drives but when I boot into the CentOS 5 install CD it fails to see
the drives. Does anybody have any tips for getting the drives visible?


I have a SuperMicro 6015P-TR that I just installed CentOS 5.2 x84_64. I 
struggled for 2 days trying to get the HostRAID RAID 1 working. I was 
only able to get 5.1 to install but not 5.2 (supermicro only has 5.1 
drivers on its site). After the install, the server saw each drive 
individually sda, sdb rather than as one device and quit working after 
installing updates to the latest kernel.


I googled around for answers and there was very little useful 
information available in getting this to work.


In the end, I just bought a 3ware 9650SE-4LPML after hearing good things 
about these cards on this list, installed it one of the PCI-Express 
slots, pulled the cable to the drive backplane on the mobo and plugged 
in right into the card and installed C5.2. Worked like a charm.


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


Re: [CentOS] Automount CIFS share in CentOS 5.1

2008-03-26 Thread Rick Barnes

Joseph L. Casale wrote:

I am looking online trying to find a procedure to automount a CIFS
share but need to use username/domain/pass in the credential file
thats referenced in fstab. Its not working, anyone know of a resource
that works in CentOS5.1?

If it matters, the unc has a dash and a $ in it, and the password has
special characters in it.


This works for me using a credentials file:

username=DOMAIN\hostname
password=password

I know the $ doesn't make a difference because I mount my AD homedir 
that has a $ at the end, I don't think the dash would make a difference 
but I'm not a 100% positive.


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


Re: [CentOS] log sshd activities

2008-03-11 Thread Rick Barnes

Hiep Nguyen wrote:

hi all, where exactly sshd log files???

this is what i have in /etc/sshsshd_config

SyslogFacility AUTHPRIV

if i want to log who login/logout sshd, what option do i need to turn on???


/var/log/secure


thanks,
t. hiep


___
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] Kickstart install with a degraded raid array

2008-01-14 Thread Rick Barnes
Is it possible to install CentOS 5 with a degraded RAID 1 array using
kickstart? I have the kickstart file already created but the server I
want to use only has 1 hard drive in it at the moment. Until I can order
a 2nd drive, I wanted to install the OS then once I received the
replacement drive fix the array. I have seen instructions how to do
this manually, but so far have not been able to get it to work using
kickstart.

Anyone tried this in the past?

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


Re: [CentOS] Xen clock drift

2008-01-08 Thread Rick Barnes


Akemi Yagi wrote:
 On Jan 8, 2008 4:51 AM, Rick Barnes [EMAIL PROTECTED] wrote:
 Jack Bailey wrote:
 These domains are fully virtualized and set up identically, except
 badclock is allocated two processors versus one processor for
 goodclock.  DomU's clock is running normally.

 Anyone know what's going or know how to fix it?
 This is a known issue that has come up on this list a lot.

 For C5.1 see the first known issue:

 http://wiki.centos.org/Manuals/ReleaseNotes/CentOS5.1/

 Rick
 
 Please note that the clock rate issue in that description applies to
 non-xen kernels.  xen kernels are set to 250Hz by default.

With this option you can reduce the clock rate from the default of
1000HZ to 100HZ which is desirable in a virtual machine.

If it does not apply to xen then this should be made more clear.

Rick

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


[CentOS] Postfix Configuration Setup for 2+ domains

2007-12-20 Thread Rick Barnes
Hello,

I have a client that wants to have a dedicated smtp sending host. But
they have 2 separate domains then that don't want to have share IP
address. The reasons from this is long and drawn out.

Is it possible to setup postfix in a virtual host config, like apache
for example, such that, domainA.com listens and sends on one IP address
and domainB.com listens and sends on another address.

This host is simply a email forwarding host, so no user accounts are on
the server, they have about 5 servers serving websites for 2 domains and
subdomains and want email coming from a common source for both domains
(this will be the relayhost for the web servers).

I have it setup to listen to 2 ip addresses but as of now I get:

220 smtp.domainA ESMTP Postfix

on both addresses. Is there a way to have one address show as:

220 smtp.domainA ESMTP Postfix

and the other:

220 smtp.domainB ESMTP Postfix

More importantly, email send via 1 should look like it came from that
domain and email sent to the other look like it came from its domain.

I can find info on virtual domains, but its geared for receiving email
for multiple domains.

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


Re: [CentOS] Postfix Configuration Setup for 2+ domains

2007-12-20 Thread Rick Barnes
Karanbir Singh wrote:
 Rick Barnes wrote:
 Hello,

 I have a client that wants to have a dedicated smtp sending host. But
 they have 2 separate domains then that don't want to have share IP
 address. The reasons from this is long and drawn out.
 
 
 try the postfix list first.
 

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


Re: [CentOS] Nagios on CentOS 4.5

2007-11-14 Thread Rick Barnes
Jason Ross wrote:
 First off  I am a linux / CentOS newbies so go easy on me.
 Just curious if anyone out there is running Nagios on CentOS 4.5.
 I have now installed it on a second server due to issue but the issues
 have come back to haunt me.
 
 The OS is running on an IBM NetVista. Every thing in both installs is
 identical as are the problems.
 Once I have Nagios up and monitoring every thing hangs. Even a terminal
 will hang before it finally just locks up.
 The only thing that brings it back is a reboot. Even stopping the
 services doesn't work.
 Disk space seems fine and even during the hangs there doesn't seems to
 be anything taking up a tremendous amount of resources.
 After a reboot every thing works fine for several hours.
 Any guesses or suggestions?

I am running on a C4 server here and haven;t experienced any issues with it.

What version do you have installed and did you built it yourself or use
a repo?

I used rpmforge for the deps but built nagios by hand using the docs on
their site.

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


Re: [CentOS] Windows 2003 Server Installation Problem in Centos 5 Xen 3.0.3-25.0.4.

2007-10-29 Thread Rick Barnes
abhishek singh wrote:
 Hi,
 
 I am trying to install Windows 2003 server as a guest OS in Centos 5 Xen
 and installation is freeze , i am attaching screen shot, here is xend
 log file details

snip

 
 Can anyone tell me why i am not able to install window 2003 server on xen,

I got this to work by selecting the HAL. Press F5 when prompted to
press F6 for the third party drivers. Choose Standard PC from the
list and it should work as normal. YMMV.

 
 Thanks,
 Abhishek Kumar Singh


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


Re: [CentOS] Re: 64 bits snmp

2007-09-26 Thread Rick Barnes
Scott Silva wrote:
 on 9/26/2007 7:29 AM chloe K spake the following:
 Hi all

 I want to get 64 bit of snmp work in the PAE kernel

 1/ ls there any snmp rpm for 64 bits

 2/ when i get from source of net-snmp, i compile with
 ./configure --enable-mfd-rewrites
 after installation, the snmp can't work.
 PAE kernel is 32 bit. 64 bit apps need 64 bit kernel, and 64 bit kernel
 doesn't need PAE.
 

At least not until there are computers needing more than 16 EB of RAM  :^)
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Clone physical into virtual

2007-08-08 Thread Rick Barnes
Scott Moseman wrote:
 Is there a formal, or preferred, method for importing a physical
 CentOS machine into a VMware instance?  I know they make
 software to move Windows machines, but I couldn't find one to
 handle our CentOS servers.  I have done something via scp/sftp
 in the past, which *seemed* to work, but if there's a better way
 I'm more than interested in hearing the process.

What has worked for me is to use a liveCD to boot the image and then use
  ssh and tar to clone the machine to the virtual drives. You can find
people suggesting netcat to do it but the ssh /tar method works because
just about every liveCD has ssh and tar. Just mount the drive on the
virt server say /mnt/newroot/, and if you separate images from

from the image run:
# ssh remote.box.com tar c / | tar x -C /mnt/newroot

Adjust the tar attributes as needed.

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