The below error message was received after starting the CPAN shell and running “install Class::Accessor”. It was after upgrading the CPAN.pm message so to resolve this issue either just reload or upgrade and reload. Both sets of steps are detailed below.

Error: Can’t use string (“CPAN::Tarzip”) as a HASH ref while “strict refs” in use at /usr/lib/perl5/5.8.8/CPAN/Tarzip.pm line 94.

If you have not upgraded complete the following from the CPAN shell.
1. Open CPAN: perl -MCPAN -e shell
2. Upgrade CPAN.pm: install Bundle::CPAN

Read the rest of this entry »

DeliciousStumbleUponDiggTwitterFacebookRedditLinkedInEmail
Tags: , , , , ,

Comments No Comments »

To locate and replaceĀ a string of text in a file using use the below text.

shell# vi filename

Once in vi use the following:

:%s/string/new-string/ <enter>

That will replace any instance of string with new-string.

DeliciousStumbleUponDiggTwitterFacebookRedditLinkedInEmail
Tags: , , ,

Comments No Comments »

The file located in /etc/sysconfig/networking/profiles are created by the GUI network interface management tool. These files should not be edited manually and when changes need to be made they should be made directly to the files as shown below. CentOS 5 is easy to get around from the command line and it is beneficial to understand each of the below files if you are going to manage a server.

Need to make a change to hostname?
First modify /etc/sysconfig/network and modify the following line:
HOSTNAME=your.hostname.here

Read the rest of this entry »

DeliciousStumbleUponDiggTwitterFacebookRedditLinkedInEmail
Tags: , , , , , , , , , ,

Comments No Comments »

If you are in process of installing the NRPE daemon as an xinetd service for Nagios monitoring capabilities you may run across this error in /var/log/messages.

If you have started xinetd by typing the following:
shell# /etc/init.d/xinetd start

but you do not see the NRPE service listening by using netstat:
shell# netstat -an | grep 5666

Read the rest of this entry »

DeliciousStumbleUponDiggTwitterFacebookRedditLinkedInEmail
Tags: , , , , , , , , , ,

Comments 2 Comments »

This error message was received when attempting to run an NRPE command from the shell. The fill error is below followed by how the issue was resolved.

The error has been posted on the next page because of its length.

Read the rest of this entry »

DeliciousStumbleUponDiggTwitterFacebookRedditLinkedInEmail
Tags: , , , , , , ,

Comments 12 Comments »