Browsing articles tagged with "redhat - 47/49 - Admins Goodies"
Aug 9, 2011
tom

JBoss 4.2 Autodiscovery Failure (NoClassDefFoundError)

I am experimenting with Hyperic for the first time. I have a basic server & agent setup and working on a Redhat Linux box. But when the autodiscoverer is running for JBoss 4.2 I get the exceptions at the end of this message. I configured the jboss.installpath setting in the agent.properties. And when I start the agent with DEBUG level logging I see the various JBoss jars being included from my configured path. But I [...]

Continue Reading »
Aug 9, 2011
tom

v2v of RHEL5 box – issues with retaining MAC address

For the last week we have been troubleshooting a customer’s Red Hat Virtual Machine running on ESXi. We’ve been using Veeam to try to create a replica off-site and have been having getting it to work on a decent schedule and recently we noticed that there were issues with orphaned snapshots while looking at the datastore. You can see several snapshots in the same folder and it’s causing issues with replication and backup, so we [...]

Continue Reading »
Aug 9, 2011
tom

RedHat iptables firewall entry

Could someone shed some light on what the current iptables entry on my RedHat machine means? -A RH-Firewall-1-INPUT -j REJECT –reject-with icmp-host-prohibited It is the last line in my /etc/sysconfig/iptables file Any rule I add after that does not take affect. I have to add all rules above that line. Is there a top to bottom precedence in the iptables file? (rule on top take precedence over rules bellow) Iptables rules will be applied in [...]

Continue Reading »
Aug 9, 2011
tom

rpm spec: conditional require based of distro version

I’m trying to write a single rpm spec for RHEL/CentOS/SL 5 and 6. This spec is for python app, so there is no differences in build process. But on rhel/centos5 I need to add one additional dependency. How would I define dependency only for el5? I’ve tried following: %if 0%{?redhat} == 5 || 0%{?centos} == 5 Requires: kmod-coretemp %endif Does not work (build on centos5 does not adds kmod-coretemp dependency). I’ve tried also following: %if [...]

Continue Reading »
Aug 9, 2011
tom

A network socket in C++ on Redhat 5 for non-root user

I have written a program in C++ which uses sockets to talk to a windows7 machine. I have run the code as the root user and everything works fine. However I don’t want to end up running the program as root, for security reasons. First I made a new user to run the program in, but it wouldn’t let the user start a new socket, so I added the user to the root group and [...]

Continue Reading »
Aug 9, 2011
tom

RHEL6 SRPMs Are Not Found by “yumdownloader”

I am trying to download SRPMs from redhat from what of their servers. I went through step one of initializing the repository… # cat /etc/yum.repos.d/rhel-source.repo [rhel-source] name=Red Hat Enterprise Linux $releasever – $basearch – Source baseurl=ftp://ftp.redhat.com/pub/redhat/linux/enterprise/$releasever/en/os/SRPMS/ enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release Then I did a yum update, and everything to make sure my repo database was up to date. When I go to download the source, however… # yumdownloader –source gcc Loaded plugins: product-id, refresh-packagekit, rhnplugin No [...]

Continue Reading »
Aug 9, 2011
tom

Using Puppet to install software “bundles”

We’re in the process of researching a configuration/systems management implementation and we’ve done quite a lot of demoing of Puppet. Puppet seems to excel at the somewhat simple “ensure this package is installed, this config file exists, and that this service is running.” I can’t seem to find a good real world example of managing software that doesn’t play so nicely. Some examples: IBM DB2 (distributed via tarball with installer, “fixpacks” are similiar) Simpana CommVault [...]

Continue Reading »
Aug 9, 2011
tom

Just started up a fresh Amazon RHEL instance running httpd, why is it not accessible by public DNS?

I booted up a RHEL server on EC2, started httpd, added an index.html page for testing purposes, but when I try to access the website through the public DNS address, the page is not found. I can curl the address successfully from the server itself, but get nothing when I try to curl it from my local machine. It has been 12 hours now since I have started the instance, more than enough time for [...]

Continue Reading »
Aug 9, 2011
tom

CouchDB setup issues. RHEL6

I recently started an EC2 instance to test some couchdb projects, but for some reason I cannot seem to access the database. Port 5984 is open on both RHEL and in the security group, but I get cannot connect issues both remotely and locally Netstat also shows nothing listening on port 5984, even though couchdb is running and configured to listen on port 5984. The service is running, but it is like it isn’t doing [...]

Continue Reading »
Aug 9, 2011
tom

Can’t restart Apache (HTTPD)

Apache has been running fine for months and restarts have run fine. However I went to restart it today and got this: [django - pin@e02u35]~>sudo /etc/init.d/httpd restart … Starting httpd: [FAILED] All I find in /var/log/httpd/error_log is this but I’m not sure if it’s related: [Thu Jul 07 08:19:25 2011] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Thu Jul 07 08:19:25 2011] [error] Unable to change directory to /home/pin If it matters, there’s nothing in my [...]

Continue Reading »