Operating System - HP-UX
1834185 Members
2964 Online
110064 Solutions
New Discussion

Re: Unable to view system mail.....error

 
BrianDoyle
Trusted Contributor

Unable to view system mail.....error

Trying to look at the mail on a server but tell me I dont have enough momory.
If I navigate to the root file, i can more it to see the messages but this is no way to monitor the mail. The file is 20GB in size.
Any ideas ?

Using HPUX 11.11
#elm
Reading in /var/mail/root, message: 12461
Couldn't allocate enough memory! Message #12461.
5 REPLIES 5
Ivan Krastev
Honored Contributor

Re: Unable to view system mail.....error

Try to split /var/mail/root to smaller files using split - 1-2 G. Move splitted parts to temporary folder and copy only last part (if you don't need old messages).

regards,
ivan
BrianDoyle
Trusted Contributor

Re: Unable to view system mail.....error

Correction ,i meant it's a 20MB file.
I split the file and it seems every 5-15 minutes i get a new mail saying the following.

From root@nllsp111.emea.leaseplancorp.net Mon Nov 6 13:30:01 GMT 2006
Received: (from root@localhost)
by nllsp111.emea.leaseplancorp.net (8.9.3 (PHNE_29774)/8.9.3) id NAA12862
for root; Mon, 6 Nov 2006 13:30:01 GMT
Date: Mon, 6 Nov 2006 13:30:01 GMT
From: root@nllsp111.emea.leaseplancorp.net
Message-Id: <200611061330.NAA12862@nllsp111.emea.leaseplancorp.net>
Subject: cron

sadc: Can't create/open data file: No such file or directory


*************************************************
Cron: The previous message is the standard output
and standard error of one of your crontab commands:

/usr/lbin/sa/sa1 300 1
Steven E. Protter
Exalted Contributor

Re: Unable to view system mail.....error

Shalom,

You let the mail pile up too long.

> file

That empties it and you should check it more often.

Alternatively you could install qpopper and download the whole 20 GB to a pc somewhere.

A newer version of elm will bring capacity up to 30,000 or so but I don't think thats enough.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Peter Nikitka
Honored Contributor

Re: Unable to view system mail.....error

Hi,

I think, the cause of the mails is an incomplete setup of the collection of sar-data.

If you do not need sar data collection, drop the crontab entries. Check via
crontab -l
or
crontab -l userid-of-sar-collector
The userid needn't be root - it may be adm or sys as well.

If you want to collect that data, review the setup. Look at 'man sadc' for a description.


mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"
Peter Godron
Honored Contributor

Re: Unable to view system mail.....error

Hi,
check your crontab files in /var/adm/spool/crontabs for something like :
/usr/lbin/sa/sa1 300 1

Check what the command is for (your cron should be commented) and correct the error.
See "man sadc"