Friday, December 12, 2014

Help: Munin thinks it has nothing to do

So, setting up a centOS server, and getting Munin up & running.
No big deal, it should be done && done in less than 5 minutes nowadays, specially if it will be graphing only itself.
But, after the install (thru the EPEL repo) and starting the service, you access the page, and instead aof getting grafancy graphics, all you see is a lousy list of the files.
And then you start getting problem report emails that look like this:

[FATAL] There is nothing to do here, since there are no nodes with any plugins.\
Please refer to http://munin-monitoring.org/wiki/FAQ_no_graphs at\
 /usr/share/munin/munin-html line 40


Those come from the cronjob that actually runs Munin.
If you look on the file /var/log/munin/munin-update.log, you'll find something like this:

2014/12/11 04:25:01 [INFO]: Starting munin-update
2014/12/11 04:25:01 [INFO] starting work in 1101 for localhost/127.0.0.1:4949.
2014/12/11 04:25:01 Failed to connect to node 127.0.0.1:4949/tcp : Connection refused
2014/12/11 04:25:01 [ERROR] Munin::Master::UpdateWorker failed to connect to node
2014/12/11 04:25:01 [INFO] Reaping Munin::Master::UpdateWorker.  Exit value/signal: 20/0
2014/12/11 04:25:01 [INFO] No old data available for failed worker localhost;localhost.  This node will disappear from the html web page hierarchy
2014/12/11 04:25:01 [INFO]: Munin-update finished (0.02 sec)


The workaround?
Edit the file /etc/munin/munin.conf from this:

# a simple host tree
[localhost]
    address 127.0.0.1
    use_node_name yes

to this:

# a simple host tree
[localhost.localdomain]
    address 127.0.0.1
    use_node_name yes


And then restart the service:

sudo /etc/init.d/munin-node restart


Labels: , , , , ,

Saturday, November 01, 2014

Error: Multiple packages found matching 'mysql'. Please remove manually.

I got this error, while trying to upgrade MySQL on a CentOS box.
Following  the instructions given here: MySQL 5.5 on CentOS/RHEL 6.5 and 5.10 via Yum.
While trying to install a newer MySQL, I got the error message for this post's Subject.

After adding the new repo, and of course, as usual, before starting with the upgrade, make a full dump of the DB:

mysqldump -u root -p --all-databases > all_dbs.sql


And then stop the MySQL service.

So, following their instructions I got this error:

sudo yum replace mysql --replace-with mysql55w
Loaded plugins: fastestmirror, replace
Loading mirror speeds from cached hostfile
 * webtatic-el5: uk.repo.webtatic.com
Replacing packages takes time, please be patient...
Error: Multiple packages found matching 'mysql'.  Please remove manually.


I've checked and double checked if I had something wrong installed with my current MySQL (which aws workin A Ok, BTW)

$ rpm -q mysql mysql-server
mysql-5.0.95-5.el5_9
mysql-5.0.95-5.el5_9
mysql-server-5.0.95-5.el5_9


The solution:

sudo rpm -e mysql.i386 --nodeps

And then, proceed to install like they recommend:

$ sudo yum replace mysql --replace-with mysql55w
Loaded plugins: fastestmirror, replace
Loading mirror speeds from cached hostfile
 * webtatic-el5: uk.repo.webtatic.com
webtatic-el5     | 2.5 kB     00:00    
Replacing packages takes time, please be patient...

WARNING: Unable to resolve all providers: ['config(mysql)', 'libmysqlclient.so.15()(64bit)', 'libmysqlclient.so.15(libmysqlclient_15)(64bit)', 'libmysqlclient_r.so.15()(64bit)', 'libmysqlclient_r.so.15(libmysqlclient_15)(64bit)', 'config(mysql-server)', 'mysql-devel']

This may be normal depending on the package.  Continue? [y/N] y

Dependencies Resolved

This may be normal depending on the package.  Continue? [y/N] y

Dependencies Resolved

Labels: , , , ,

Wednesday, October 08, 2014

Kernel Upgrade FUBAR

There is always a first time...
Even for a kernel panic...
Ever since I administer Linux boxes, about a decade ago, I've never had a critical kernel panic (with a new kernel, upon rebooting, on a remote server).
So, this have been a pretty rough days, to say the least.
Luckily, this wasn't a production box, and luckily, the hosting company (an Argentine one) offers bundled with the server, DRAC access to it.
And here is where the problems started.
After the reboot, remotely via SSH, and seeing that the server did not come back, opened ticket requesting that support to take a look at it, hoping for the pretty obvious, the tech gut will se the kernel crash upon booting, reboot the server and select another kernel from the GRUB menu and be done with.
Error.
Tech support doesn't do that, meaning that they reboot, they do take a look, but they don't act... Go figure.
So they report back that there is a problem with the kernel, and that they don't do shit about that, because it is something not typical, and that I should contact the sales exec that we have assigned, so they can get another tech guy who will take care of this...
Needless to say, this was ridiculous.
Second stop, using DRAC to access the console, and then select another kernel and finish this crap.
Thing is, in order to get to the DRAC, I have to connect to a VPN, using a Windows only client, and then access a webfront.
So I fire up the Windows 7 install on the mighty T43, and using Internet Explore, connected to the DRAC and then the console.
First problem, once connected, I couldn't type shit, only use the built-in macros I've been able to stop the GRUB menu, but I wasn't able to select a kernel using only the macros.
Second problem, while Googling for this error (not atypical) I got locked out of the DRAC's webfront.
No matter what I wasn't able to login.
Another ticket with support follows...
It turns out that it is mandatory to use Internet Explorer 10, I was using 9 with no problem, and all of the sudden, you have to upgrade...
There is no chance in hell I could upgrade to Internet Explorer 10 without installing Service Pack 1.
So, it was time to test Chrome.
The thing worked A Ok, I was able to connect to the webfront, but the console wasn't working, at all.
Instead of executing the Java applet, it simply d'loaded the script.
Solution, install Java, and try again.
Same error, after more Googling, and more tests, the solution!
Execute, open, the downloaded script with javaws.
Presto, the console worked perfectly, even the keyboard at first try.
Selected another kernel, booted with it and the rest is (happy) history.

Labels: , ,

Saturday, August 18, 2012

CentOS 5: Install Rsnapshot via RPM

Another one, this time, Rsnapshot, my favorite backup utility...
Not as complex as the getting Nagios up & running on the CentOS box.

Get the RPM first:
wget http://pkgs.repoforge.org/rsnapshot/rsnapshot-1.3.1-1.el5.rf.noarch.rpm
And test how the thing would go...
# rpm --test -ivh rsnapshot-1.3.1-1.el5.rf.noarch.rpm 
warning: rsnapshot-1.3.1-1.el5.rf.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
error: Failed dependencies:
       perl(XML::Simple) is needed by rsnapshot-1.3.1-1.el5.rf.noarch
       perl(XML::Validator::Schema) is needed by rsnapshot-1.3.1-1.el5.rf.noarch
First one its an easy one...
# yum install perl-XML-Simple

Installed:
  perl-XML-Simple.noarch 0:2.14-4.fc6                                                                                                                                                     

Dependency Installed:
  perl-XML-Parser.x86_64 0:2.34-6.1.2.2.1                                                                                                                                                 

Complete!
Another test...
# rpm --test -ivh rsnapshot-1.3.1-1.el5.rf.noarch.rpm 
warning: rsnapshot-1.3.1-1.el5.rf.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
error: Failed dependencies:
       perl(XML::Validator::Schema) is needed by rsnapshot-1.3.1-1.el5.rf.noarch
More downloading...
wget http://pkgs.repoforge.org/perl-XML-Validator-Schema/perl-XML-Validator-Schema-1.10-1.el5.rf.noarch.rpm
And testing...
# rpm --test -ivh rsnapshot-1.3.1-1.el5.rf.noarch.rpm perl-XML-Validator-Schema-1.10-1.el5.rf.noarch.rpm 
warning: rsnapshot-1.3.1-1.el5.rf.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
error: Failed dependencies:
       perl(XML::Filter::BufferText) is needed by perl-XML-Validator-Schema-1.10-1.el5.rf.noarch
       perl(XML::SAX::Exception) is needed by perl-XML-Validator-Schema-1.10-1.el5.rf.noarch
       perl(XML::SAX::ParserFactory) is needed by perl-XML-Validator-Schema-1.10-1.el5.rf.noarch
Some of those are on the official repo:
# yum install perl-XML-SAX

Installed:
  perl-XML-SAX.noarch 0:0.14-11                                                                                                              

Dependency Installed:
  perl-XML-NamespaceSupport.noarch 0:1.09-1.2.1                                                                                              

Complete!
More testing...
# rpm --test -ivh rsnapshot-1.3.1-1.el5.rf.noarch.rpm perl-XML-Validator-Schema-1.10-1.el5.rf.noarch.rpm 
warning: rsnapshot-1.3.1-1.el5.rf.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
error: Failed dependencies:
       perl(XML::Filter::BufferText) is needed by perl-XML-Validator-Schema-1.10-1.el5.rf.noarch
More downloading...
wget http://pkgs.repoforge.org/perl-XML-Filter-BufferText/perl-XML-Filter-BufferText-1.01-1.2.el5.rf.noarch.rpm
Last test...
# rpm --test -ivh rsnapshot-1.3.1-1.el5.rf.noarch.rpm perl-XML-Validator-Schema-1.10-1.el5.rf.noarch.rpm perl-XML-Filter-BufferText-1.01-1.2.el5.rf.noarch.rpm 
warning: rsnapshot-1.3.1-1.el5.rf.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
Preparing...                ########################################### [100%]
Go with the install!
# rpm -ivh rsnapshot-1.3.1-1.el5.rf.noarch.rpm perl-XML-Validator-Schema-1.10-1.el5.rf.noarch.rpm perl-XML-Filter-BufferText-1.01-1.2.el5.rf.noarch.rpm 
warning: rsnapshot-1.3.1-1.el5.rf.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
Preparing...                ########################################### [100%]
   1:perl-XML-Filter-BufferT########################################### [ 33%]
   2:perl-XML-Validator-Sche########################################### [ 67%]
   3:rsnapshot              ########################################### [100%]

Labels: , , ,

Sunday, August 12, 2012

CentOS 5: Install Nagios via RPM

Last week took over an already running and in production box, with CentOS 5.8 (64 bits) installed and no extra repositories in use...
Since I don't want to add any extra repositorie to this production box, I've proceed to install the necessary packages by hand... First things first, so get it:
wget http://pkgs.repoforge.org/nagios/nagios-3.2.3-4.el5.test.x86_64.rpm
This one is a piece of cake:
# rpm --test -ivh nagios-3.2.3-4.el5.test.x86_64.rpm 
warning: nagios-3.2.3-4.el5.test.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
Preparing...                ########################################### [100%]
Lets see the how things go with the Nagios plugins:
wget http://pkgs.repoforge.org/nagios-plugins/nagios-plugins-1.4.9-1.el5.rf.x86_64.rpm
And now the real fun begins:
# rpm --test -ivh nagios-plugins-1.4.9-1.el5.rf.x86_64.rpm 
warning: nagios-plugins-1.4.9-1.el5.rf.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
error: Failed dependencies:
       perl(Net::SNMP) is needed by nagios-plugins-1.4.9-1.el5.rf.x86_64
       fping is needed by nagios-plugins-1.4.9-1.el5.rf.x86_64
Fping, no problems there:
wget http://pkgs.repoforge.org/fping/fping-3.1-1.el5.rf.x86_64.rpm
# rpm --test -ivh fping-3.1-1.el5.rf.x86_64.rpm 
warning: fping-3.1-1.el5.rf.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
Preparing...                ########################################### [100%]
Full dressing test:
# ls -1
fping-3.1-1.el5.rf.x86_64.rpm
nagios-3.2.3-4.el5.test.x86_64.rpm
nagios-plugins-1.4.9-1.el5.rf.x86_64.rpm
# rpm --test -ivh nagios-3.2.3-4.el5.test.x86_64.rpm nagios-plugins-1.4.9-1.el5.rf.x86_64.rpm \
fping-3.1-1.el5.rf.x86_64.rpm 
warning: nagios-3.2.3-4.el5.test.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
error: Failed dependencies:
       perl(Net::SNMP) is needed by nagios-plugins-1.4.9-1.el5.rf.x86_64
So get it, and run another test:
wget http://pkgs.repoforge.org/perl-Crypt-DES/perl-Crypt-DES-2.05-3.2.el5.rf.x86_64.rpm
rpm --test -ivh nagios-3.2.3-4.el5.test.x86_64.rpm nagios-plugins-1.4.9-1.el5.rf.x86_64.rpm \
fping-3.1-1.el5.rf.x86_64.rpm perl-Net-SNMP-5.2.0-1.2.el5.rf.noarch.rpm perl-Crypt-DES-2.05-3.2.el5.rf.x86_64.rpm 
warning: nagios-3.2.3-4.el5.test.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
Preparing...                ########################################### [100%]
Bingo! So, just do the install and that's it:
# rpm -ivh nagios-3.2.3-4.el5.test.x86_64.rpm nagios-plugins-1.4.9-1.el5.rf.x86_64.rpm \
fping-3.1-1.el5.rf.x86_64.rpm perl-Net-SNMP-5.2.0-1.2.el5.rf.noarch.rpm perl-Crypt-DES-2.05-3.2.el5.rf.x86_64.rpm 
warning: nagios-3.2.3-4.el5.test.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
Preparing...                ########################################### [100%]
   1:perl-Crypt-DES         ########################################### [ 20%]
   2:fping                  ########################################### [ 40%]
   3:nagios                 ########################################### [ 60%]
   4:perl-Net-SNMP          ########################################### [ 80%]
   5:nagios-plugins         ########################################### [100%]

Labels: , , ,

Thursday, March 24, 2011

Another reason, just another one...

I hate people that uses /etc/hosts to force feed DNS resolving.
I do, I think it is a sloppy solution for production servers, something that saves your ass in a minute but that you forget about until you have to debug a problem and waste a lot of time till you realize that someone might have hard coded the hostname on the damn file.

Yesterday found out just another reason to hate that even more, I was setting up an Rsnapshot backup over SSH with pub key authentication, when I hit a wall with this error message:

Authentication tried for root with correct key but not from a permitted host (host=hostXX, ip=::ffff:xxx.xxx.xxx.xxx).

It turns out that there was an entry on the /etc/hosts file that defined the host from where I was trying to connect from... Tested this:

from="FQDN,xxx.xxx.xxx.xxx",command="check_rsync.script.sh" ssh-rsa the.key.goes.here...

But it did not work, had to put exactly as it was called on the /etc/hosts entry:

from="hostXX,xxx.xxx.xxx.xxx",command="check_rsync.script.sh" ssh-rsa the.key.goes.here...

After that, it worked A Ok.

Labels: , , , ,

Monday, December 06, 2010

(Quick) Nagios setup

A quick & dirty "guide" to get Nagios monitoring on a local Linux server in no time. This has been done on CentOS, but the same applies to just about any other distro, as long as you take care of the paths to the configuration files.

cp template.HOSTNAME.FQDN.cfg $HOSTNAME.cfg
emacs $HOSTNAME.cfg

Meta X replace-regex HOSTNAME host
Meta X replace-regex $HOSTNAME.FQDN $HOSTNAME

Section "define host":
Replace "Description here" with the real data
Replace "ip.address.here" with the real IP address of the host

Section "define contact":
Replace "Description here" with the real data, a concise description.
email Replace with the real email addresses of the contacts, or the contact that should receive notifications from this server.

Section "define contactgroup":
Replace "Description here" with the real data of the Linux server.
Be sure to add more services to suit your needs, or the needs of the monitored server.
Copy the file to the Nagios directory:

sudo cp $HOSTNAME.cfg /etc/nagios/objects/


Edit the commands file:

sudo emacs /etc/nagios/objects/commands.cfg


Specifically, edit the strings "***** Nagios *****" on 'notify-host-by-email' & 'notify-service-by-email' to something that identifies the box from which the emails are coming from.
I usually leave like this:

** Nagios $HOSTNAME **

Edit Nagio's master configuration file, so it uses the cfg file just created, and discard the default localhost.cfg one.

sudo emacs /etc/nagios/nagios.cfg

Comment the line:

cfg_file=/etc/nagios/objects/localhost.cfg

And add a line with the cfg file just created.

cfg_file=/etc/nagios/objects/$HOSTNAME.cfg

Before launching Nagios, tight a bit the web access:

sudo emacs /etc/httpd/conf.d/nagios.conf

And setup basic security (enable SSL, setup the password protection, limit IP range, etc).

Test it

sudo /usr/bin/nagios -v /etc/nagios/nagios.cfg

And if its OK, launch it.

Here is a copy of "template.HOSTNAME.FQDN.cfg":

## -----------------------------------------------

## History

## -----------------------------------------------

## sudo /usr/bin/nagios -v /etc/nagios/nagios.cfg

define host{
name HOSTNAME-host
use generic-host
check_period 24x7
check_interval 5
retry_interval 1
max_check_attempts 10
check_command check-host-alive
notification_period 24x7
notification_interval 120
notification_options d,u,r
contact_groups HOSTNAME-contactgroup
register 0
}

define host{
use HOSTNAME-host
host_name HOSTNAME.FQDN
alias Description here
address ip.address.here
}

define contact{
contact_name HOSTNAME-contact
use generic-contact
alias Description here
email 1@email.com, 2@email.com, 3@email.com
}

define contactgroup{
contactgroup_name HOSTNAME-contactgroup
alias Description here
members HOSTNAME-contact
}

# SERVICE DEFINITIONS

define service{
name HOSTNAME-generic-service
active_checks_enabled 1
passive_checks_enabled 1
parallelize_check 1
obsess_over_service 1
check_freshness 0
notifications_enabled 1
event_handler_enabled 1
flap_detection_enabled 1
failure_prediction_enabled 1
process_perf_data 1
retain_status_information 1
retain_nonstatus_information 1
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 5
retry_check_interval 2
contact_groups HOSTNAME-contactgroup
notification_options w,u,c,r
notification_interval 120
notification_period 24x7
register 0
}

define service{
name HOSTNAME-service
use HOSTNAME-generic-service
max_check_attempts 4
normal_check_interval 5
retry_check_interval 1
register 0
}

define service{
use HOSTNAME-service
host_name HOSTNAME.FQDN
service_description Connectivity
check_command check_ping!100.0,20%!500.0,60%
}

# Define a service to check the disk space of the root partition
# on the local machine. Warning if < 20% free, critical if
# < 10% free space on partition.

define service{
use HOSTNAME-service
host_name HOSTNAME.FQDN
service_description Partition /
check_command check_local_disk!20%!10%!/
}

define service{
use HOSTNAME-service
host_name HOSTNAME.FQDN
service_description Partition /boot
check_command check_local_disk!20%!10%!/boot
}

# Define a service to check the number of currently logged in
# users on the local machine. Warning if > 20 users, critical
# if > 50 users.

define service{
use HOSTNAME-service
host_name HOSTNAME.FQDN
service_description Current Users
check_command check_local_users!20!50
}

# Define a service to check the number of currently running procs
# on the local machine. Warning if > 250 processes, critical if
# > 400 users.

define service{
use HOSTNAME-service
host_name HOSTNAME.FQDN
service_description Total Processes
check_command check_local_procs!250!400!RSZDT
}

define service{
use HOSTNAME-service
host_name HOSTNAME.FQDN
service_description Current Load
check_command check_local_load!5.0,4.0,3.0!10.0,6.0,4.0
}

define service{
use HOSTNAME-service
host_name HOSTNAME.FQDN
service_description Swap Usage
check_command check_local_swap!20!10
}

define service{
use HOSTNAME-service
host_name HOSTNAME.FQDN
service_description Service SSH
check_command check_ssh
}

define service{
use HOSTNAME-service
host_name HOSTNAME.FQDN
service_description Service HTTP
check_command check_http
}

# EoF #

Labels: , , , ,

Thursday, July 01, 2010

PHP compile on CentOS 5 (oci8 + pdo-oci + pdo-mysq)

First, the pre-requisites, in order to get a nice ./configure & make going:

yum install php-mysql mysql mysql-server httpd-devel mod_php php-soap libxml2-devel \
openssl-devel curl-devel libpng-devel libmcrypt-devel mysql-devel libxslt-devel \
libtool libtool-ltdl libtool-ltdl-devel


And then, the ./configure specifics:

./configure --prefix=/usr/local/php-5.2.3 \
--with-gd --with-jpeg-dir=/usr/lib --with-zlib --with-png-dir=/usr/lib --with-apxs2=/usr/sbin/apxs \
--with-curl --with-ldap=shared --enable-bcmath --with-xsl --enable-sockets --with-mcrypt --enable-soap \
--with-gettext --with-pear=/usr/share/pear --with-openssl --enable-zip --enable-ftp --with-oci8=$ORACLE_HOME \
--with-pdo-oci=$ORACLE_HOME --with-pdo-mysql=mysqlnd

Labels: , , ,

Monday, April 12, 2010

CPUs to the n



Two nice & easy screenshots displaying the mighty power of a Dual Quad Core...
Compare these with the little brother, about 2 years ago, although, big brother here has a bit less of RAM.

Labels: , , , ,

Wednesday, March 31, 2010

Bare minimun Emacs

Installed these today on a couple of servers where I was really struggling with that damn vi thingy...

sudo rpm -ivh emacs-common-21.4-20.el5.i386.rpm \
emacs-nox-21.4-20.el5.i386.rpm

This is all it takes, about 12 MB of space.

Labels: , , ,

Tuesday, March 16, 2010

Install MRTG on CentOS

Installed this morning on a remote server, it already had a basic setup of Apache up & running.

# rpm --test -ivh mrtg-2.14.5-2.i386.rpm
warning: mrtg-2.14.5-2.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
error: Failed dependencies:
perl-Socket6 is needed by mrtg-2.14.5-2.i386
perl-IO-Socket-INET6 is needed by mrtg-2.14.5-2.i386
# rpm --test -ivh mrtg-2.14.5-2.i386.rpm perl-Socket6-0.19-3.fc6.i386.rpm perl-IO-Socket-INET6-2.51-2.fc6.noarch.rpm
warning: mrtg-2.14.5-2.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
Preparing... ########################################### [100%]

Labels: , , , , ,

Saturday, June 06, 2009

Installing the MQSeries Perl module on CentOS

Totally newbie regarding MQ, being asked to install the MQSeries Perl module on a server which already has a full blown installation of MQ, a couple of notes regarding the install.

First off, I had to install 'Params-Validate' module before hand, since it is a requirement, installing it is as simple as the traditional:

perl Makefile.PL
make
make test
make install


For the MQseries module itself things weren't as easy.
Had to edit the file 'util/parse_headers', specifically, comment the line:


} elsif (/^#endif/) {
unless (defined $conditional) {
## die "Have #endif without conditional in[$header]";
}
#print "Leaving [$conditional]\n";
$conditional = undef;
}


After that, everything went smooth.

Labels: , , ,

Wednesday, March 18, 2009

Compiling Oracle9i support on PHP 5.1.2

Today had to re-compile the PHP from a server on which the Oracle was rolled back a notch, from 10 to 9 (the reason for this should remain behind a curtain, the thicker and the fucking heavier, the better ;) )

Never used Oracle9 before, nor compiled PHP for it, so it was a day of first times.
Tried to use the same configure settings that I used to compile PHP (the same version) but when the server had Oracle10:

./configure \
--prefix=/usr/local/php-5.1.2 \
--with-config-file-path=/usr/local/php-5.1.2/config/php.ini \
--with-apxs2=/usr/local/apache_2.0.55/bin/apxs \
--with-oci8=$ORACLE_HOME \
--enable-sigchild \
--with-openssl \
--with-zlib \
--enable-ftp \
--with-gd \
--with-jpeg-dir \
--enable-gd-native-ttf \
--with-png \
--with-ldap \
--enable-mbstring \
--enable-mbregex \
--with-mysql \
--enable-sockets \
--with-pear \
--with-mcrypt \
--with-openssl \
--enable-soap


The './configure' went Ok, but it belched with this error during the make:

ext/oci8/.libs/oci8.o(.text+0x22f5): In function `php_oci_do_connect_ex':
/home/dba_ultrasmooth_operator/downloads/http/php-5.1.2/ext/oci8/oci8.c:1346: undefined reference to `OCIPing'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1


Off to Google I went for help., but found nothing, with the same error message, so I expanded a bit the search.
Apparently, one solution it is to link some of Oracle libraries from the version 9, and make a link that points from the version 8, to the actual version 9 library.
Tested that, but it didn't work either.

What I did in the end, and it worked A Ok, was to edit the 'oci8.c', the line that belched, comment it:

// OCI_G(errcode) = PHP_OCI_CALL(OCIPing, (connection->svc, OCI_G(err), OCI_DEFAULT));

So it doesn't perform that check during the make stage.

After that, everything went Ok.

Labels: , , ,

Thursday, November 27, 2008

Prevent Squirrelmail from showing its version (2)

Squirrelmail

Another shot at this, the one before used the setting for displaying a custom logo, sort of branding with a link, etc, etc.
This one, uses no logo at all, but the provided blank png file, so it will present a clean login interface, and, more importantly, no disclosure of the Squirrelmail version.

$org_name = " ";
$org_logo = SM_PATH . 'images/blank.png';
$org_logo_width = '1';
$org_logo_height = '1';
$org_title = " ";
$signout_page = '';
$frame_top = '_top';

$provider_uri = ' ';

$provider_name = ' ';

Labels: , , , ,

Monday, November 24, 2008

Nagios install on CentOS 5

There are a ton of sites/ HOWTOs, examples out there, this is just a reminder of the damn RPM necessary packages to get the Nagios up & running in no time on a CentOS 5 boxen.
All the packages (that can not be installed via yum) are from DAG

fping is the only dependency that has not other one but itself, and perl(Net::SNMP) is the one that has all the other ones.
After the install, Nagios' configuration files will be on '/etc/nagios/' (with a ready made minimalist configuration on the file 'localhost.cfg') and the check plugins will reside on '/usr/lib/nagios/plugins/'.

There will be also the web access configuration file on '/etc/httpd/conf.d/mrtg.conf'.
The Nagios RPM sets itself to start automagically on RunLevels 3,4,5.


# rpm --test -ivh fping-2.4-1.b2.2.el5.rf.i386.rpm
warning: fping-2.4-1.b2.2.el5.rf.i386.rpm: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
Preparing... ########################################### [100%]

# rpm --test -ivh nagios-2.9-1.el5.rf.i386.rpm
warning: nagios-2.9-1.el5.rf.i386.rpm: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
error: Failed dependencies:
libltdl.so.3 is needed by nagios-2.9-1.el5.rf.i386

[root@ltfs351 nagios]# rpm --test -ivh nagios-2.9-1.el5.rf.i386.rpm libtool-libs-1.5.6-4.EL4.2.i386.rpm
warning: nagios-2.9-1.el5.rf.i386.rpm: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
warning: libtool-libs-1.5.6-4.EL4.2.i386.rpm: Header V3 DSA signature: NOKEY, key ID db42a60e
Preparing... ########################################### [100%]

[root@ltfs351 nagios]# rpm -ivh nagios-2.9-1.el5.rf.i386.rpm libtool-libs-1.5.6-4.EL4.2.i386.rpm
warning: nagios-2.9-1.el5.rf.i386.rpm: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
warning: libtool-libs-1.5.6-4.EL4.2.i386.rpm: Header V3 DSA signature: NOKEY, key ID db42a60e
Preparing... ########################################### [100%]
1:libtool-libs ########################################### [ 50%]
2:nagios ########################################### [100%]

# rpm --test -ivh nagios-plugins-1.4.9-1.el5.rf.i386.rpm
warning: nagios-plugins-1.4.9-1.el5.rf.i386.rpm: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
error: Failed dependencies:
perl(Net::SNMP) is needed by nagios-plugins-1.4.9-1.el5.rf.i386

# rpm --test -ivh nagios-plugins-1.4.9-1.el5.rf.i386.rpm perl-Net-SNMP-5.2.0-1.2.el5.rf.noarch.rpm
warning: nagios-plugins-1.4.9-1.el5.rf.i386.rpm: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
error: Failed dependencies:
perl(Crypt::DES) is needed by perl-Net-SNMP-5.2.0-1.2.el5.rf.noarch
perl(Digest::HMAC) is needed by perl-Net-SNMP-5.2.0-1.2.el5.rf.noarch
perl(Digest::SHA1) is needed by perl-Net-SNMP-5.2.0-1.2.el5.rf.noarch

# rpm --test -ivh nagios-plugins-1.4.9-1.el5.rf.i386.rpm perl-Net-SNMP-5.2.0-1.2.el5.rf.noarch.rpm \
perl-Crypt-DES-2.05-3.2.el5.rf.i386.rpm perl-Digest-HMAC-1.01-2.rf.0.rh7.rf.noarch.rpm \
perl-Digest-SHA1-2.11-1.el5.rf.i386.rpm
warning: nagios-plugins-1.4.9-1.el5.rf.i386.rpm: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
Preparing... ########################################### [100%]

# rpm -ivh nagios-plugins-1.4.9-1.el5.rf.i386.rpm perl-Net-SNMP-5.2.0-1.2.el5.rf.noarch.rpm \
perl-Crypt-DES-2.05-3.2.el5.rf.i386.rpm perl-Digest-HMAC-1.01-2.rf.0.rh7.rf.noarch.rpm \
perl-Digest-SHA1-2.11-1.el5.rf.i386.rpm
warning: nagios-plugins-1.4.9-1.el5.rf.i386.rpm: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
Preparing... ########################################### [100%]
1:perl-Digest-SHA1 ########################################### [ 20%]
2:perl-Digest-HMAC ########################################### [ 40%]
3:perl-Crypt-DES ########################################### [ 60%]
4:perl-Net-SNMP ########################################### [ 80%]
5:nagios-plugins ########################################### [100%]

Labels: , , , ,

Friday, September 19, 2008

CentOS 5 console customization

Console customization tips(Actually, these should work on any other CentOS version as well :) )

Installed another minimal CentOS 5, this time, on Odin, my trusty Compaq 1200 povera beauty.
The install was amazinlgy fast, it took less than 10 minutes, mighty fast considering that the laptop has a Celeron @ 700 MHz with 300 MB of RAM.

These are a couple of thing I did after finishing the install, to make the box more confortable.

- Enable high resolution console :

As root, edit the file '/etc/grub.conf', and add 'vga=XXX' to the line that begins with kernel. On Odin, I have to use '788'.
Get other values here: VGA Boot modes to set screen resolution
I have read some reports that this does not work on CentOS 5, but I had no problems with the stock kernel from the CentOS 5 install CD (2.6.18-92.el5).


- Console font :

I don't like the default font -I don't like it at all, but that has nothing to do with CentOS per se, the default console font on all the distros I have used sucks-.
So I have set it up to use the console font I love, the same one I use on the Ubuntu's console.
As root, edit the file '/etc/sysconfig/i18n', and change:
SYSFONT="latarcyrheb-sun16"

to look like this
SYSFONT="Lat2-Terminus16"

To load the new font, as root again, issue:
/etc/init.d/functions start

This will load it only on the TTY you are executing it. After a reboot, it will load the new font on all the TTYs.
There are more fonts on the '/lib/kbd/consolefotns/' directory.


- Set cursor to a blinking block :

I love the prompt cursor to blink, and also, to be a blocky, massive thing, not the feable semi-hypen that it is by default.
Take a look at the Cursor Appearance in the Linux Console doc, to see what you can do.
On my case, to transform the default underscore blinking cursor onto a blinking block cursor, and to make it happen on all TTYs -even after a reboot- had to do this, once again, as the root user:
/bin/echo -e '\033[?6c' >> /etc/issue

Labels: , , , ,

Wednesday, July 23, 2008

Shell shock

Had to configure an FTP server (on this day and age!!!) on a CentOS 5 server...
Depression kicks in.

Any way, installed and configured the best FTP server I know, ProFTPD, of course, as usual, got the RPM from DAG. Compiling, unless you have a very special need, is for the birds, IMHO.

One thing tho, setting the shell to the regular '/bin/false' , wasn't working on my CentOS 5 install... It didn't allowed me to login to the server via FTP, tried with the really unsafe '/bin/bash' and bingo, it worked.
The solution, add the shell '/bin/false' to the '/etc/shells' file.

Labels: , , , ,

Saturday, July 19, 2008

CentOS 5 minimal install (2)

CentOs Logo
Here are some "facts" from a CentOS 5 ultra minimum install...

Disk usage:

Filesystem Size Used Avail Use% Mounted on
/dev/sda5 4.9G 254M 4.4G 6% /
proc 0 0 0 - /proc
sysfs 0 0 0 - /sys
devpts 0 0 0 - /dev/pts
/dev/sda8 20G 173M 19G 1% /home
/dev/sda7 996M 34M 911M 4% /tmp
/dev/sda3 20G 180M 19G 1% /var
/dev/sda2 20G 505M 18G 3% /usr
/dev/sda1 99M 11M 83M 12% /boot
tmpfs 1014M 0 1014M 0% /dev/shm
none 0 0 0 - /proc/sys/fs/binfmt_misc
/dev/sdb1 984M 434M 551M 45% /media/usb


Installed RPM packages:

setup-2.5.58-1.el5
basesystem-8.0-5.1.1.el5.centos
glibc-common-2.5-24
chkconfig-1.3.30.1-2
mktemp-1.5-23.2.2
popt-1.10.2-48.el5
bzip2-libs-1.0.3-3
libstdc++-4.1.2-42.el5
beecrypt-4.1.2-10.1.1
libgcrypt-1.2.3-1
keyutils-libs-1.2-1.el5
libsysfs-2.0.0-6
libacl-2.2.39-3.el5
pcre-6.6-2.el5_1.7
checkpolicy-1.33.1-4.el5
mingetty-1.07-5.2.2
wireless-tools-28-2.el5
libvolume_id-095-14.16.el5
cyrus-sasl-lib-2.1.22-4
nash-5.1.19.6-28
termcap-5.5-1.20060701.1
bash-3.2-21.el5
libsepol-1.15.2-1.el5
grep-2.5.1-54.2.el5
sqlite-3.3.6-2
gawk-3.1.5-14.el5
nspr-4.7.0.99.2-1.el5
diffutils-2.8.1-15.2.3.el5
iptables-ipv6-1.3.5-4.el5
less-394-5.el5
cpio-2.6-20
centos-release-5-2.el5.centos
redhat-logos-4.9.99-8.el5.centos
grub-0.97-13.2
ed-0.2-38.2.2
file-4.17-13
hdparm-6.6-2
gnu-efi-3.0c-1.1
libselinux-1.33.4-5.el5
e2fsprogs-libs-1.39-15.el5
kpartx-0.4.7-17.el5
coreutils-5.97-14.el5
rpm-4.4.2-48.el5
openssl-0.9.8b-10.el5
newt-0.52.2-10.el5
hwdata-0.213.6-1.el5
rpm-libs-4.4.2-48.el5
pciutils-2.2.3-5
audit-libs-python-1.6.5-9.el5
python-elementtree-1.2.6-5
yum-metadata-parser-1.1.2-2.el5
pam-0.99.6.2-3.27.el5
m2crypto-0.16-6.el5.2
libxml2-python-2.6.26-2.1.2.1
dbus-glib-0.70-5
libuser-0.54.7-2.el5.5
usermode-1.88-3.el5.1
device-mapper-multipath-0.4.7-17.el5
udev-095-14.16.el5
cryptsetup-luks-1.0.3-2.2.el5
lvm2-2.02.32-4.el5
net-tools-1.60-78.el5
policycoreutils-1.33.12-14.el5
selinux-policy-2.4.6-137.el5
mcstrans-0.2.7-1.el5
mkinitrd-5.1.19.6-28
selinux-policy-targeted-2.4.6-137.el5
openssh-server-4.3p2-26.el5
sysklogd-1.4.1-44.el5
dhcpv6-client-1.0.10-4.el5
authconfig-5.3.21-3.el5
ecryptfs-utils-41-1.el5
rhpl-0.194.1-1
hal-0.5.8.1-35.el5
pm-utils-0.99.3-6.el5.centos.19
libgcc-4.1.2-42.el5
filesystem-2.4.0-1.el5.centos
tzdata-2007k-2.el5
glibc-2.5-24
zlib-1.2.3-3
audit-libs-1.6.5-9.el5
glib2-2.12.3-2.fc6
elfutils-libelf-0.125-3.el5
expat-1.95.8-8.2.1
libgpg-error-1.4-2
db4-4.3.29-9.fc6
slang-2.0.6-4.el5
libattr-2.4.32-1.1
libcap-1.10-26
libusb-0.1.12-5.1
ethtool-5-1.el5
tcp_wrappers-7.6-40.4.el5
gdbm-1.8.0-26.2.1
dmidecode-2.7-1.28.2.el5
cracklib-dicts-2.8.9-3.3
centos-release-notes-5.2-2
libtermcap-2.0.8-46.1
info-4.8-14.el5
ncurses-5.5-24.20060715
readline-5.1-1.1
sed-4.1.5-5.fc6
libxml2-2.6.26-2.1.2.1
nss-3.11.99.5-2.el5.centos
iptables-1.3.5-4.el5
procps-3.2.7-9.el5
gzip-1.3.5-10.el5.centos
iproute-2.6.18-7.el5
iputils-20020927-43.el5
tcl-8.4.13-3.fc6
udftools-1.0.0b3-0.1.el5
sysfsutils-2.0.0-6
libhugetlbfs-1.2-5.el5
setserial-2.17-19.2.2
rootfiles-8.1-1.1.1
device-mapper-1.02.24-1.el5
shadow-utils-4.0.17-13.el5
findutils-4.2.27-4.1
module-init-tools-3.3-0.pre3.1.37.el5
krb5-libs-1.6.1-25.el5
python-2.4.3-21.el5
libsemanage-1.9.1-3.el5
e2fsprogs-1.39-15.el5
rpm-python-4.4.2-48.el5
libselinux-python-1.33.4-5.el5
python-iniparse-0.2.3-4.el5
python-sqlite-1.1.7-1.2.1
cracklib-2.8.9-3.3
SysVinit-2.86-14
python-urlgrabber-3.1.0-2
dbus-1.0.0-7.el5
openldap-2.3.27-8.el5_1.3
passwd-0.73-1
dmraid-1.0.0.rc13-9.el5
MAKEDEV-3.23-1.2
util-linux-2.13-0.47.el5
device-mapper-event-1.02.24-1.el5
psmisc-22.2-6
initscripts-8.45.19.EL-1.el5.centos.1
openssh-4.3p2-26.el5
kbd-1.12-20.el5
tar-1.15.1-23.0.1.el5
kernel-2.6.18-92.el5
openssh-clients-4.3p2-26.el5
setools-3.0-3.el5
dhclient-3.0.5-13.el5
prelink-0.3.9-2.1
yum-3.2.8-9.el5.centos.1
system-config-securitylevel-tui-1.6.29.1-2.1.el5
vim-minimal-7.0.109-3.el5.3
kudzu-1.2.57.1.17-1



Enabled services:

haldaemon 0:off 1:off 2:off 3:on 4:on 5:on 6:off
ip6tables 0:off 1:off 2:on 3:on 4:on 5:on 6:off
iptables 0:off 1:off 2:on 3:on 4:on 5:on 6:off
kudzu 0:off 1:off 2:off 3:on 4:on 5:on 6:off
lvm2-monitor 0:off 1:on 2:on 3:on 4:on 5:on 6:off
mcstrans 0:off 1:off 2:on 3:on 4:on 5:on 6:off
messagebus 0:off 1:off 2:off 3:on 4:on 5:on 6:off
multipathd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
netconsole 0:off 1:off 2:off 3:off 4:off 5:off 6:off
netfs 0:off 1:off 2:off 3:on 4:on 5:on 6:off
netplugd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
network 0:off 1:off 2:on 3:on 4:on 5:on 6:off
rdisc 0:off 1:off 2:off 3:off 4:off 5:off 6:off
restorecond 0:off 1:off 2:on 3:on 4:on 5:on 6:off
sshd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
syslog 0:off 1:off 2:on 3:on 4:on 5:on 6:off


Note that crond it is not enabled as a service, actually, it is not even installed.
Another missing (and quite useful) package, are the man pages; but, you get a CentOS 5 install, using only one CD, you can access it thru SSH remotely, and then, using yum, install the other things you need to get the box actually doing something.

Labels: ,

Tuesday, July 08, 2008

CentOS 5 minimal install

CentOs Logo
Last week I had to do sort of forensics on a Linux server.
Usually, I don't deal with this -I can't recall the last time I have installed Linux on a production server-, on a normal situation, the server is already handled to me installed, and I work remotely on it; matter of fact, there are a lot of the servers I work with that I have never saw "in the flesh", and that I never will.

But, last week, I had the chance to do a recovery on a server, actually... More than a recovery, it was a forensic re-install, or more like actually, a reinstall :D
One of the 3 HDDs died, taking along the whole RAID setup, but, on that LAN there were other servers that took over, so now rush not damage was done with the missing server.

The thing is, thanks to this, I was able to test a something, the newest release of CentOS comes in 6 CDs, and there is not a "Server CD" like they used to offer on the CentOS 4 release.

I read on the CentOS site, that there is an option to do a minimal install without all the CDs.

When you reach the package selection part of the install, deselect the "Gnome Desktop" and choose "Customize now".
On the next screen, deselect every single program, even the "Base" one.

Nothing, not even Base

I have tested this on 2 different, very different, boxes; without a single problem. After this, you'll have to install, via yum, what ever program you need, but you'll have a leaner system, not to mention that you'll install CentOS 5 on a jiffy.

Labels: , , ,

Wednesday, June 25, 2008

Installing MIME::Parser on CentOS 5

Had to install the Perl module on a mail server, and I wanted to use yum to install everything, so here it goes...

First, I made sure I don't have it already isntalled:

mail rpms# perl -e 'use MIME::Parser'
Can't locate MIME/Parser.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi \
/usr/lib/perl5/site_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi \
/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 \
/usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl \
/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.7/i386-linux-thread-multi \
/usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi \
/usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl/5.8.6 \
/usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl \
/usr/lib/perl5/5.8.8/i386-linux-thread-multi \
/usr/lib/perl5/5.8.8 .) at -e line 1.
BEGIN failed--compilation aborted at -e line 1.


No luck using yum, and no luck Googling, so off to the DAG route we go!

wget http://dag.wieers.com/rpm/packages/perl-MIME-tools/perl-MIME-tools-5.420-2.el5.rf.noarch.rpm



No luck at all installing just the RPM package... No surprise here.

mail rpms# rpm --test -ivh perl-MIME-tools-5.420-2.el5.rf.noarch.rpm
warning: perl-MIME-tools-5.420-2.el5.rf.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
error: Failed dependencies:
perl(Convert::BinHex) is needed by perl-MIME-tools-5.420-2.el5.rf.noarch
perl(IO::InnerFile) is needed by perl-MIME-tools-5.420-2.el5.rf.noarch
perl(IO::Lines) is needed by perl-MIME-tools-5.420-2.el5.rf.noarch
perl(IO::Lines) >= 1.108 is needed by perl-MIME-tools-5.420-2.el5.rf.noarch
perl(IO::Scalar) is needed by perl-MIME-tools-5.420-2.el5.rf.noarch
perl(IO::Scalar) >= 1.117 is needed by perl-MIME-tools-5.420-2.el5.rf.noarch
perl(IO::ScalarArray) is needed by perl-MIME-tools-5.420-2.el5.rf.noarch
perl(IO::ScalarArray) >= 1.114 is needed by perl-MIME-tools-5.420-2.el5.rf.noarch
perl(IO::Stringy) >= 1.211 is needed by perl-MIME-tools-5.420-2.el5.rf.noarch
perl(IO::Wrap) is needed by perl-MIME-tools-5.420-2.el5.rf.noarch
perl(Mail::Field) is needed by perl-MIME-tools-5.420-2.el5.rf.noarch
perl(Mail::Field) >= 1.05 is needed by perl-MIME-tools-5.420-2.el5.rf.noarch
perl(Mail::Header) >= 1.06 is needed by perl-MIME-tools-5.420-2.el5.rf.noarch
perl(Mail::Internet) >= 1.28 is needed by perl-MIME-tools-5.420-2.el5.rf.noarch
perl-MailTools >= 1.15 is needed by perl-MIME-tools-5.420-2.el5.rf.noarch


So, the first things first... perl-MailTools:

mail rpms# yum install perl-MailTools
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for perl-MailTools to pack into transaction set.
perl-MailTools-1.77-1.el5 100% |=========================| 13 kB 00:00
---> Package perl-MailTools.noarch 0:1.77-1.el5.centos set to be updated
--> Running transaction check
--> Processing Dependency: perl(Date::Parse) for package: perl-MailTools
--> Processing Dependency: perl(Date::Format) for package: perl-MailTools
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for perl-TimeDate to pack into transaction set.
perl-TimeDate-1.16-5.el5. 100% |=========================| 7.7 kB 00:00
---> Package perl-TimeDate.noarch 1:1.16-5.el5 set to be updated
--> Running transaction check

Dependencies Resolved

=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
perl-MailTools noarch 1.77-1.el5.centos extras 91 k
Installing for dependencies:
perl-TimeDate noarch 1:1.16-5.el5 base 32 k

Transaction Summary
=============================================================================
Install 2 Package(s)
Update 0 Package(s)
Remove 0 Package(s)

Total download size: 123 k
Is this ok [y/N]: y
Downloading Packages:
(1/2): perl-TimeDate-1.16 100% |=========================| 32 kB 00:00
(2/2): perl-MailTools-1.7 100% |=========================| 91 kB 00:00
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: perl-TimeDate ######################### [1/2]
Installing: perl-MailTools ######################### [2/2]

Installed: perl-MailTools.noarch 0:1.77-1.el5.centos
Dependency Installed: perl-TimeDate.noarch 1:1.16-5.el5
Complete!


After that, another test at installing the MIME::Parser package... I'm pretty sure it will not work...

mail rpms# rpm --test -ivh perl-MIME-tools-5.420-2.el5.rf.noarch.rpm
warning: perl-MIME-tools-5.420-2.el5.rf.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
error: Failed dependencies:
perl(Convert::BinHex) is needed by perl-MIME-tools-5.420-2.el5.rf.noarch
perl(IO::InnerFile) is needed by perl-MIME-tools-5.420-2.el5.rf.noarch
perl(IO::Lines) is needed by perl-MIME-tools-5.420-2.el5.rf.noarch
perl(IO::Lines) >= 1.108 is needed by perl-MIME-tools-5.420-2.el5.rf.noarch
perl(IO::Scalar) is needed by perl-MIME-tools-5.420-2.el5.rf.noarch
perl(IO::Scalar) >= 1.117 is needed by perl-MIME-tools-5.420-2.el5.rf.noarch
perl(IO::ScalarArray) is needed by perl-MIME-tools-5.420-2.el5.rf.noarch
perl(IO::ScalarArray) >= 1.114 is needed by perl-MIME-tools-5.420-2.el5.rf.noarch
perl(IO::Stringy) >= 1.211 is needed by perl-MIME-tools-5.420-2.el5.rf.noarch
perl(IO::Wrap) is needed by perl-MIME-tools-5.420-2.el5.rf.noarch


It doesn't so, off to yum to see what else is out there...

mail rpms# yum search perl-IO | less

Loading "installonlyn" plugin
Setting up repositories
Reading repository metadata in from local files

perl-IO-Socket-SSL.noarch 1.01-1.fc6 base
Matched from:
perl-IO-Socket-SSL

perl-IO-Zlib.noarch 1.04-4.2.1 base
Matched from:
perl-IO-Zlib

perl-IO-Socket-INET6.noarch 2.51-2.fc6 base
Matched from:
perl-IO-Socket-INET6

perl-IO-String.noarch 1.08-1.1.1 base
Matched from:
perl-IO-String

perl-IO-Socket-SSL.noarch 1.01-1.fc6 installed
Matched from:
perl-IO-Socket-SSL

perl-IO-Zlib.noarch 1.04-4.2.1 installed
Matched from:
perl-IO-Zlib

perl-IO-Socket-INET6.noarch 2.51-2.fc6 installed
Matched from:
perl-IO-Socket-INET6


So, I'll install those:

[root@mail rpms]# yum install perl-IO-String perl-IO-Zlib perl-IO-Socket-SSL
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for perl-IO-String to pack into transaction set.
perl-IO-String-1.08-1.1.1 100% |=========================| 3.5 kB 00:00
---> Package perl-IO-String.noarch 0:1.08-1.1.1 set to be updated
--> Running transaction check

Dependencies Resolved

=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
perl-IO-String noarch 1.08-1.1.1 base 13 k

Transaction Summary
=============================================================================
Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)

Total download size: 13 k
Is this ok [y/N]: y
Downloading Packages:
(1/1): perl-IO-String-1.0 100% |=========================| 13 kB 00:00
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: perl-IO-String ######################### [1/1]

Installed: perl-IO-String.noarch 0:1.08-1.1.1
Complete!


Only one was needed, the others were already installed... But, still, no luck at all...

mail rpms# rpm --test -ivh perl-MIME-tools-5.420-2.el5.rf.noarch.rpm
warning: perl-MIME-tools-5.420-2.el5.rf.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
error: Failed dependencies:
perl(Convert::BinHex) is needed by perl-MIME-tools-5.420-2.el5.rf.noarch
perl(IO::InnerFile) is needed by perl-MIME-tools-5.420-2.el5.rf.noarch
perl(IO::Lines) is needed by perl-MIME-tools-5.420-2.el5.rf.noarch
perl(IO::Lines) >= 1.108 is needed by perl-MIME-tools-5.420-2.el5.rf.noarch
perl(IO::Scalar) is needed by perl-MIME-tools-5.420-2.el5.rf.noarch
perl(IO::Scalar) >= 1.117 is needed by perl-MIME-tools-5.420-2.el5.rf.noarch
perl(IO::ScalarArray) is needed by perl-MIME-tools-5.420-2.el5.rf.noarch
perl(IO::ScalarArray) >= 1.114 is needed by perl-MIME-tools-5.420-2.el5.rf.noarch
perl(IO::Stringy) >= 1.211 is needed by perl-MIME-tools-5.420-2.el5.rf.noarch
perl(IO::Wrap) is needed by perl-MIME-tools-5.420-2.el5.rf.noarch


On the mean time, I'll get the BinHex thing going on, no problems here:

mail rpms# wget http://dag.wieers.com/rpm/packages/perl-Convert-BinHex/perl-Convert-BinHex-1.119-2.2.el5.rf.noarch.rpm
mail rpms# rpm --test -ivh perl-Convert-BinHex-1.119-2.2.el5.rf.noarch.rpm
warning: perl-Convert-BinHex-1.119-2.2.el5.rf.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
Preparing... ########################################### [100%]


And, to wrap up the whole thing, the package I needed was 'perl-IO-stringy'... What can I say, I'm a shmuck.

mail rpms# rpm --test -ivh perl-IO-stringy-2.110-1.2.el5.rf.noarch.rpm perl-MIME-tools-5.420-2.el5.rf.noarch.rpm
warning: perl-IO-stringy-2.110-1.2.el5.rf.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
Preparing... ########################################### [100%]


After that, test it, and you are done:

mail rpms# perl -e 'use MIME::Parser'
mail rpms#


I got the prompt back without any message, so it is installed.

Labels: , ,