LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   Two Error Messages Occurring Every Five Minutes (https://www.linuxquestions.org/questions/red-hat-31/two-error-messages-occurring-every-five-minutes-695131/)

kaplan71 01-05-2009 11:33 AM

Two Error Messages Occurring Every Five Minutes
 
Hi there --

One of our systems, Red Hat Linux 9, suffered a completely filled root filesystem, and during the course of this issue several directories, and files were overwritten. One example is the X11 library.

The system has been troubleshooted, and for the most part things are back to normal. There are, however, two error messages that are appearing in root's mailbox once every five minutes:

Quote:

Can't locate MRTG_lib.pm in @INC (@INC contains: /usr/bin/../lib/mrtg2 /usr/bin /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at /usr/bin/mrtg line 59.
BEGIN failed--compilation aborted at /usr/bin/mrtg line 59.
The second message is the following:

Quote:

Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
'import site' failed; use -v for traceback
Traceback (most recent call last):
File "/etc/cron.hourly/diskcheck", line 232, in ?
from socket import gethostname
File "/usr/lib/python2.2/socket.py", line 41, in ?
from _socket import *
ImportError: No module named _socket
The user has been able to run perl without difficulty, but does not regularly use python to say with certainty if there is a problem with it.

The course of action we are thinking of doing, is an re-installation of the perl and python packages to the system. The question is the following: Is this the best approach to take, or are we looking at a more extensive problem with the system? If there is a fundamental problem here, is it possible to do a non-desructive 'repair' install of the operating system? Also, it is not possible at this time to upgrade to a newer version of the OS.

unSpawn 01-05-2009 01:14 PM

Quote:

Originally Posted by kaplan71 (Post 3397944)
The course of action we are thinking of doing, is an re-installation of the perl and python packages to the system. The question is the following: Is this the best approach to take, or are we looking at a more extensive problem with the system?

If 'rpm -qVva' doesn't show more trouble, and your system runs OK, what "more extensive problems" would or do you expect?


Quote:

Originally Posted by kaplan71 (Post 3397944)
Also, it is not possible at this time to upgrade to a newer version of the OS.

Bummer. I hope you took extra care of hardening and added the right amount of "early warning" in front of it?

chrism01 01-06-2009 08:10 PM

The Perl thing is due to a perl prog using that module. Usually its used by something like Nagios for drawing graphs of performance. Check the email for details of which prog and where.
You can re-install the module as root using

# perl -e shell -MCPAN
cpan> install MRTG


All times are GMT -5. The time now is 09:02 AM.