LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-25-2008, 09:58 PM   #1
nawuza
Member
 
Registered: Jan 2007
Location: High Castle
Distribution: FC8
Posts: 66

Rep: Reputation: 15
error in message in /var/spool/mail/root


hello..i have install Ourmon(network monitoring tool) manually on my FC8 and seem to be ok.but then i started to get message in my /var/spool/mail/root.

Quote:
From root@localhost.localdomain Fri Sep 26 17:58:52 2008
Return-Path: <root@localhost.localdomain>
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
by localhost.localdomain (8.14.1/8.14.1) with ESMTP id m8Q9wqt5008465
for <root@localhost.localdomain>; Fri, 26 Sep 2008 17:58:52 +0800
Received: (from root@localhost)
by localhost.localdomain (8.14.1/8.14.1/Submit) id m8Q9w3ht008088;
Fri, 26 Sep 2008 17:58:03 +0800
Message-Id: <200809260958.m8Q9w3ht008088@localhost.localdomain>
From: root@localhost.localdomain (Cron Daemon)
To: root@localhost.localdomain
Subject: Cron <root@localhost> /home/mrourmon/bin/omupdate.sh
Date: Fri, 26 Sep 2008 17:58:01 0800 (MYT)
Content-Type: text/plain; charset=UTF-8
Auto-Submitted: auto-generated
X-Cron-Env: <SHELL=/bin/bash>
X-Cron-Env: <PATH=/sbin:/bin:/usr/sbin:/usr/bin>
X-Cron-Env: <MAILTO=root>
X-Cron-Env: <HOME=/>
X-Cron-Env: <LOGNAME=root>
X-Cron-Env: <USER=root>

cp: cannot stat `/home/mrourmon/tmp/mon.lite': No such file or directory
Can't locate RRDs.pm in @INC (@INC contains: /usr/local/rrdtool-1.0.49/lib/perl ../lib/perl /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 /home/mrourmon/bin/omupdate.pl line 42.
BEGIN failed--compilation aborted at /home/mrourmon/bin/omupdate.pl line 42.
grep: /home/mrourmon/tmp/mon.lite: No such file or directory
cp: cannot stat `/home/mrourmon/tmp/tcpworm.txt': No such file or directory
can't open /home/mrourmon/tmp/tcpworm.txt: No such file or directory
cp: cannot stat `/home/mrourmon/web.pages/portreport.txt': No such file or directory
can't open /home/mrourmon/tmp/p2pfile.txt: No such file or directory
can't open /home/mrourmon/tmp/syndump.txt: No such file or directory
cp: cannot stat `/home/mrourmon/tmp/syndump.txt': No such file or directory
can't open /home/mrourmon/tmp/emaildump.txt: No such file or directory
cp: cannot stat `/home/mrourmon/tmp/emaildump.txt': No such file or directory
can't open /home/mrourmon/tmp/potdump.txt: No such file or directory
cp: cannot stat `/home/mrourmon/tmp/potdump.txt': No such file or directory
cp: cannot stat `/home/mrourmon/tmp/p2pfile.txt': No such file or directory
cp: cannot stat `/home/mrourmon/web.pages/p2pportreport.txt': No such file or directory
can't open /home/mrourmon/tmp/tcpworm.txt: No such file or directory
can't open /home/mrourmon/tmp/irc.txt file: No such file or directory
cp: cannot stat `/home/mrourmon/tmp/irc.txt': No such file or directory
cp: cannot stat `/home/mrourmon/tmp/mon.lite': No such file or directory
Can't locate RRDs.pm in @INC (@INC contains: /usr/local/rrdtool-1.0.49/lib/perl ../lib/perl /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 /home/mrourmon/bin/omupdate.pl line 42.
BEGIN failed--compilation aborted at /home/mrourmon/bin/omupdate.pl line 42.
grep: /home/mrourmon/tmp/mon.lite: No such file or directory
cp: cannot stat `/home/mrourmon/tmp/tcpworm.txt': No such file or directory
can't open /home/mrourmon/tmp/tcpworm.txt: No such file or directory
cp: cannot stat `/home/mrourmon/web.pages/portreport.txt': No such file or directory
can't open /home/mrourmon/tmp/p2pfile.txt: No such file or directory
can't open /home/mrourmon/tmp/syndump.txt: No such file or directory
cp: cannot stat `/home/mrourmon/tmp/syndump.txt': No such file or directory
can't open /home/mrourmon/tmp/emaildump.txt: No such file or directory

bla..bla..
how do i stop this message from coming?what happen?
 
Old 09-25-2008, 10:33 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
This is the first clue:

From: root@localhost.localdomain (Cron Daemon)
To: root@localhost.localdomain
Subject: Cron <root@localhost> /home/mrourmon/bin/omupdate.sh

Your cron job /home/mrourmon/bin/omupdate.sh is failing. Its failing because

cp: cannot stat `/home/mrourmon/tmp/mon.lite': No such file or directory
Can't locate RRDs.pm in @INC (@INC contains: /usr/local/rrdtool-1.0.49/lib/perl ../lib/perl etc

and
at /home/mrourmon/bin/omupdate.pl line 42.
BEGIN failed--compilation aborted at /home/mrourmon/bin/omupdate.pl line 42.

etc

Basically you need to read the shell source and make sure the files it expects are where they should be.
You need to use the CPAN tool to install RRDs.pm (at least). The Perl prog needs this and other files.

To install from CPAN, login as root and

perl -e shell -M CPAN
cpan> install RRDs

To check a perl prog for syntax without running it, try

perl -wc file.pl

There should be some docs for this stuff that specify what you need to setup to make it run.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Clearing /var/spool/mail/root Reegz Linux - Software 6 09-15-2006 10:50 AM
Unable to open mail spool file /var/mail/root cccc Debian 4 09-14-2006 02:31 PM
/var/spool/mail/root mail message absalon Linux - General 1 07-04-2005 10:08 PM
How to read /var/spool/mail/root? neo_in_matrix Linux - Newbie 1 04-04-2005 09:49 PM
/var/spool/mail/root j-me Linux - Newbie 5 02-14-2003 07:48 AM


All times are GMT -5. The time now is 09:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration