[Solved] Filesystem getting full. Need a monitoring script


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers [Solved] Filesystem getting full. Need a monitoring script
# 15  
Old 09-13-2012
You welcome Smilie
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Script for Monitoring Root Filesystem

I am on SCO UNIX, I need to write a script to monitor root file system. For some reason it's not working for me. #!/bin/sh df -B / | awk '{ print $5 " " $1 }' | while read output; do echo $output if ; then echo "Running out of space \ HOSTNAME" # mail -s "Alert: Almost out of... (8 Replies)
Discussion started by: samnyc
8 Replies

2. Solaris

Filesystem Full

In our shop we have to run a batch cycle. Every so often while we are running batch we get a filesystem full situation that causes batch to stop or slow down. Anyway, the practiced procedure is to look for large files and zip them. This takes a lot of time. We are in a sun solaris environment. What... (1 Reply)
Discussion started by: Harleyrci
1 Replies

3. Shell Programming and Scripting

[Solved] File System Monitoring Script

Hello Scripts Guru I had created a shell script to monitor the threshold of the file system, but some where it is not giving the correct output. Request to all to hel me out I am getting the following output /dev/vg00/lvol3 mounted on 1865224 10% / is 2097152% /dev/vg00/lvol1 mounted on... (2 Replies)
Discussion started by: indrajit_renu
2 Replies

4. Shell Programming and Scripting

Monitoring Script - filesystem

Hi all, I got an error when running this script (from BigAdmin community) the error is test: argument expected my server version is SunOS XXX 5.8 Generic_117350-46 sun4u sparc SUNW,Sun-Fire-V890 any idea on it? #! /usr/bin/ksh ### ### This script can be run from cron to... (9 Replies)
Discussion started by: SmartAntz
9 Replies

5. AIX

Help with a filesystem monitoring script.

I'd like to create a cron script that checks filesystems. For example if it reaches 95% USED, I'd like it to send me an email. Can this be possible for up to say 4 filesystems using the df -k command? Any samples to get me started would be much appreciated. (7 Replies)
Discussion started by: NycUnxer
7 Replies

6. UNIX for Dummies Questions & Answers

filesystem is full

Hello everybody, a very basic question. Inspite of me deleting huge files in a filesystem(AIX 5.3) in oracle folder, the filesystem when i check using df -k still shows 100% full. Does that mean there is a process still pointing to the files which i deleted. how do i work around this. Thanks!... (3 Replies)
Discussion started by: karthikosu
3 Replies

7. UNIX for Dummies Questions & Answers

filesystem full

my root filesystem is eventually full "/dev/rdsk/c1d0s0" as a result i cannot boot to the operating system, i booted into the fail safe mode to check the space using df -h command i discover that it is eventually full. Also to my amazement i found that i cannot see the filesystem which mounted on... (1 Reply)
Discussion started by: seyiisq
1 Replies

8. Shell Programming and Scripting

Filesystem Monitoring script problems

Hi there all, #!/usr/bin/ksh Set -x MIN_MB_FREE="100MB" # Min. MB of Free FS Space MAX_PERCENT="85%" # Max. FS percentage value FSTRIGGER="1000MB" # Trigger to switch from % Used to MB Free WORKFILE="/tmp/df.work" # Holds filesystem data >$WORKFILE #... (0 Replies)
Discussion started by: draco
0 Replies

9. UNIX for Dummies Questions & Answers

Filesystem Full

I noticed that whenever something is printed from my workstation, the available disk space in the /dev/dsk/c0t0d0s0 decreases considerably. Hence, after using my workstation for sometime, I encounter an error message: "Filesystem Full" that prevents me from printing any further. Is there a way to... (16 Replies)
Discussion started by: ilak1008
16 Replies

10. UNIX for Dummies Questions & Answers

need a unix script to let me know by email or pager when the filesystem is 80% full.

Does anyone have a script to check disk space usage. My backup directory keeps filling up with archivelog files and I need a script to let me know by email or pager when the filesystem is 80% full. Thank you! (1 Reply)
Discussion started by: jzjy0r
1 Replies
Login or Register to Ask a Question
UUX(1)							      General Commands Manual							    UUX(1)

NAME
uux - unix to unix command execution SYNOPSIS
uux [ - ] [ -cClLnprz ] [ -aname ] [ -ggrade ] [ -xdebug ] command-string DESCRIPTION
Uux will gather zero or more files from various systems, execute a command on a specified system and then send standard output to a file on a specified system. The command-string is made up of one or more arguments that look like a Shell command line, except that the command and file names may be prefixed by system-name!. A null system-name is interpreted as the local system. File names may be one of(1) a full path name; (2) a path name preceded by ~user where user is a login name on the specified system and is replaced by that user's login directory; (3) a path name prefixed by ~; where ~ is expanded to the system's public directory (usually /usr/spool/uucppublic); (4) a partial pathname, which is prefixed by the current directory. As an example, the command uux "!diff usg!/usr/dan/file1 pwba!/a4/dan/file2 > !~/dan/file.diff" will get the file1 and file2 files from the ``usg'' and ``pwba'' machines, execute a diff(1) command and put the results in file.diff in the local /usr/spool/uucppublic/dan/ directory. Any special shell characters, such as <>;|, should be quoted either by quoting the entire command-string, or quoting the special characters as individual arguments. Uux will attempt to get all files to the execution system. For files that are output files, the file name must be escaped using parenthe- ses. For example, the command uux a!wc b!/usr/file1 (c!/usr/file2 ) get /usr/file1 from system ``b'' and send it to system ``a'', perform a wc command on that file and send the result of the wc command to system ``c''. Uux will notify you by mail if the requested command on the remote system was disallowed. This notification can be turned off by the -n option. The following options are interpreted by uux: - The standard input to uux is made the standard input to the command-string. -aname Use name as the user identification replacing the initiator user-id. -c Do not copy local file to the spool directory for transfer to the remote machine (this is the default). -C Force the copy of local files to the spool directory for transfer. -ggrade Grade is a single letter/number, from 0 to 9, A to Z, or a to z; 0 is the highest, and z is the lowest grade. The default is A; by comparison uucp(1) defaults to n and mail is usually sent at grade C. Lower grades should be specified for high-volume jobs, such as news. -l Try and make a link from the original file to the spool directory. If the link cannot be made, copy the file. -n Do not notify the user when the command completes. -p Same as -: The standard input to uux is made the standard input to the command-string. -r Do not start the file transfer, just queue the job. -xdebug Produce debugging output on stdout. The debug is a number between 0 and 9; higher numbers give more detailed information. Debugging is permitted only for privileged users (specifically, those with read access to L.sys(5). -z Notify the user only if the command fails. -L Start up uucico with the -L flag. This will force calls to be made to local sites only (see uucico(8C)). FILES
/usr/spool/uucp spool directories /etc/uucp/* UUCP configuration data. SEE ALSO
uucp(1), uucico(8), uuxqt(8). WARNING
For security reasons, many installations will limit the list of commands executable on behalf of an incoming request from uux. Many sites will permit little more than the receipt of mail (see mail(1)) via uux. BUGS
Only the first command of a shell pipeline may have a system-name!. All other commands are executed on the system of the first command. The use of the shell metacharacter * will probably not do what you want it to do. The shell tokens << and >> are not implemented. When invoking uux from csh(1), the `!' character must be prefixed by the `' escape to inhibit csh's history mechanism. (Quotes are not sufficient.) 7th Edition October 22, 1996 UUX(1)