03-24-2010
df | grep "[89][0-99]%" | awk '{ print $1,"mounted on",$6,"has exceeded 80%"}' | mail -s "partitions more than 80%" user
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I am trying to write a script to Count Files in a directory located on a remote server and send an email Notification if it exceeds a limit. The code given below doesnot check the condition and sends the mail everytime irrespective of the condition. I have put this script in the cron. Can... (10 Replies)
Discussion started by: amitsayshii
10 Replies
2. Shell Programming and Scripting
I searched through the forum and couldn't quite find what I was looking for. I have a script that looks for a process "DW" to be running. If it is not it will email a notice to an account. I would like to add the functionality to have it also email a seperate notice if there is more that one of... (1 Reply)
Discussion started by: heprox
1 Replies
3. Shell Programming and Scripting
shell script to send email with usage of space in the directory as description :
Please any one help me in writing a script to send email with usage of space in the directory as description . (3 Replies)
Discussion started by: sakthifire
3 Replies
4. Shell Programming and Scripting
I am very new to Linux and learning to script. This is for one of my servers at work that I have to keep track off as far as disk space and how it is used. I have tried to go line by line but little things keep chewing me up. I would appreciate any and all help or advice, and Mutt is installed on... (3 Replies)
Discussion started by: sgtjkj
3 Replies
5. UNIX for Dummies Questions & Answers
Please help! I am really new to Linux, and my colleague who usually deals with these things isnt here to help me out.
We are running Scalix mail services on CentOS 6.0. Email users with IMAP folders are getting an error message stating the server cannot be reached, however POP3 mail users are... (13 Replies)
Discussion started by: beckyboo
13 Replies
6. UNIX for Dummies Questions & Answers
Hello Everyone,
I am new to this forum and also unix/linux. Our application today threw an alert whcih read as
"The users active count on host has crossed the threshold limit of 50
and is standing at 65."
This was although cleared when I restarted tomcat. But I am not sure why this count... (0 Replies)
Discussion started by: ykhati
0 Replies
7. Shell Programming and Scripting
autorep -m bogus
Machine Name Max Load Current Load Factor O/S Status
___________ ________ ___________ ______ ________ ______
bogus --- --- 1.00 Sys Agent Online
Status
______
Online
Offline
Missing
Unqualified
The "Status" always "Online". I like create a script execute run... (6 Replies)
Discussion started by: dotran
6 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I am getting the error su: cannot set user id: Resource temporarily unavailable.
In limits.conf, it shows soft nproc 2047 for this user. ps H -u | wc -l shows 508 processes only.
Linux flavour is Red Hat Enterprise Linux Server release 5.10 (Tikanga)
Any advice will be much... (1 Reply)
Discussion started by: newbie_01
1 Replies
9. Shell Programming and Scripting
Hi Guys,
Is there any way I can write a script that sends DISK SPACE USAGE STATUS via email once a week?
Thanks, (5 Replies)
Discussion started by: g4v1n
5 Replies
10. UNIX for Beginners Questions & Answers
Please help!!
This code works perfect but the only problem I am having is that is treats eg SQL Developer as separate cell/column which makes the formatting bad. I want to put SQL Developer in one cell. I attached a sample of how the output looks like.
report.txt
USERNAME OSUSER ... (5 Replies)
Discussion started by: lpoolfc
5 Replies
LEARN ABOUT HPUX
acctsuspend
acctsuspend(5) File Formats Manual acctsuspend(5)
NAME
acctsuspend, acctresume - suspend and resume accounting when available disk space reaches threshold
VALUES
Failsafe
Default.
Default
acctsuspend:
acctresume:
Allowed values
acctresume:
acctsuspend:
Recommended values
acctsuspend:
acctresume: (But more than acctsuspend)
DESCRIPTION
The and tunables control when accounting stops and resumes due to disk space constraints. When free disk space on the file system being
used by accounting reaches the suspension threshold, which is the percentage relative to the percentage of disk space available only to the
superuser, accounting is suspended until such time as the free disk space reaches the resumption threshold, which is the percentage rela-
tive to the percentage of disk space available only to the superuser.
Note: Since the and values are specified relative to the percentage of disk space available only to the superuser, negative values
of these parameters can make sense. For example, if the superuser has reserved 10 percent of the disk space on the file system at
file system creation time, and acctsuspend is -5 and acctresume is 0, the suspension threshold will be 5 percent of the total disk
space and the resumption threshold will be 10 percent of the total disk space.
Who Is Expected to Change This Tunable?
Anyone using accounting.
Restrictions on Changing
Changes to this tunable take effect at the next reboot.
When Should the Value of This Tunable Be Raised?
Increasing either variable should be considered when it is necessary to maintain a higher percentage of free space on the accounting
filesystem.
What Are the Side Effects of Raising the Value of This Tunable?
The higher either value is, the less accounting data may be captured. The further the values are separated, the greater the amount of
potentially lost accounting data.
When Should the Value of This Tunable Be Lowered?
If additional disk space is needed for accounting data, and it cannot be obtained by moving files off of the filesystem, then the value of
should be lowered.
What Are the Side Effects of Lowering the Value of This Tunable?
Filesystem performance (writing accounting records) decreases as the filesystem fills up. In turn, this will decrease the overall perfor-
mance of accounting processes.
What Other Tunables Should Be Changed at the Same Time?
When changing either of these tunables, both should be considered.
WARNINGS
All HP-UX kernel tunable parameters are release specific. This parameter may be removed or have its meaning changed in future releases of
HP-UX.
Installation of optional kernel software, from HP or other vendors, may cause changes to tunable parameter values. After installation,
some tunable parameters may no longer be at the default or recommended values. For information about the effects of installation on tun-
able values, consult the documentation for the kernel software being installed. For information about optional kernel software that was
factory installed on your system, see at
AUTHOR
and were developed by HP.
SEE ALSO
accton(1M).
Tunable Kernel Parameters acctsuspend(5)