Sponsored Content
Full Discussion: Automatic monitor disk-space
Special Forums Hardware Filesystems, Disks and Memory Automatic monitor disk-space Post 302158486 by nylou97 on Tuesday 15th of January 2008 01:34:51 PM
Old 01-15-2008
Send me "df -k" output.

I can whip up a top-level script to monitor your disk space and send an email based on a criteria.

-Lou Smilie
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

paging space & monitor

Hi folks, Lately my RS 6000 server is giving some problems. Needs a reboot from time to time (4-8 days):mad: Specs: IBM/RS6000 Unix 4.3 3 gigabyte memory I keep getting messages like : " The fork function failed " I have raised the paging space from 1 gigabyte to 3 gigabyte,... (2 Replies)
Discussion started by: Erik Rooijmans
2 Replies

2. Shell Programming and Scripting

Automatic monitor disk-space

Hello, I am trying to find a shell script to monitor diskspace. When the script encounteres a disk which above the treashold, I want an email notification. My system runs on a Sun Solaris. Is there anybode around who can help me with such a script? Norbert (3 Replies)
Discussion started by: nfbeerse
3 Replies

3. Solaris

Automatic disk labeling

First post :) ... Here is a script for automatic labeling of previously unlabeled disks. Other methods exist (format -f cmd_file), but I like this because it's all in one place. #!/bin/ksh #---------------------- # format_label # Automatic labeling of previously unlabeled disks #... (1 Reply)
Discussion started by: kwachtler
1 Replies

4. Shell Programming and Scripting

Monitor Disk Space

I would like to monitor disk space on solaris system.Need script which will send email if the disk space exceeds 90%. Thanks -sam (3 Replies)
Discussion started by: sam786
3 Replies

5. Shell Programming and Scripting

script to monitor disk space usage

Some times my disk space is used upto 100% due to the application logs . So this script is to monitor the disk space usage and wall message to the users about the disk space usage if it exceeds the limit set in the script. Here for example the limit is set to 80%. This job is added in cron to... (2 Replies)
Discussion started by: amitranjansahu
2 Replies

6. Shell Programming and Scripting

need help for scrip to monitor disk utilization

Hi, I need help to write a script which will monitor disk utilization. Please suggest the best approach to achive this. I am thinking of having sleep inside the script which will run for(eg.) 60 secs and then disk utilization will be checked and depends on the % usage of disk mail will... (1 Reply)
Discussion started by: sunilmenhdiratt
1 Replies

7. Infrastructure Monitoring

Using SNMP to monitor remote processes and disk space

snmpget -v 1 -c COMMUNITYSTR hostname OID what OIDs would I use to get information on all the processes and disk space information that are on a particular host. where can i find out information on all of this? thanks (3 Replies)
Discussion started by: SkySmart
3 Replies

8. Programming

Disk Monitor

#!/usr/bin/perl use strict; use warnings; use Filesys::DiskSpace; # file system to monitor my $dir = "/opt"; # warning level my $warning_level=10; # email setup my $to='mail@mail.com'; my $subject='Low Disk Space'; # get df my ($fs_type, $fs_desc, $used, $avail, $fused,... (1 Reply)
Discussion started by: sdhn1900
1 Replies

9. Shell Programming and Scripting

Script to monitor the disk space details in HP-UX

Hi, I need to monitor the disk space details in HP-UX . I need a command on how to display the information on below format File System Total_Space_KB Used_Space_KB Available_Space_KB %Used /u05 524288000 376235344 138799427 73% /u02 ... (0 Replies)
Discussion started by: ali560045
0 Replies

10. Hardware

Fedora 16 dual monitor - dual head - automatic monitor shutdown

Hi, I am experiencing troubles with dual monitors in fedora 16. During boot time both monitors are working, but when system starts one monitor automatically shut down. It happend out of the blue. Some time before when I updated system this happend but then I booted older kernel release and... (0 Replies)
Discussion started by: wakatana
0 Replies
MYTHTV-STATUS(1)					User Contributed Perl Documentation					  MYTHTV-STATUS(1)

NAME
mythtv-status - Display the status of a MythTV backend SYNOPSIS
mythtv-status [options] DESCRIPTION
This script queries a MythTV backend and reports on the status of it, any upcoming recordings and any which are happening right now. The intention is to warn you if there is a program being recorded or about to be recorded. OPTIONS
-c, --colour Use colour when showing the status of the encoder(s). -d, --description Display the description for the scheduled recordings. --disk-space-warn The threshold (in percent) of used disk space that we should show the disk space in red (if using colour) or send an email if we're in email mode with email only on warnings. --encoder-details Display the input ID and channel name against the recording details. --encoder-skip-idle Suppress displaying idle encoders in the Encoders block. -e, --episode Display the episode (subtitle) for the scheduled recordings. --email <address>[ --email <address> ...] Send the output to the listed email addresses. By default the encoder status, currently recording shows and time till next recording is surpressed from the email. To turn the additional blocks on you can use --encoders, --recording-now and/or --next-recording. --email-only-on-alert Only send an email out (if --email is present) if there is an alert (i.e., schedule conflict or low disk space). -?, --help Display help. --file <file> Load XML from the file specified instead of querying a MythTV backend. Handy for debugging things. --save-file <file> Save the XML we received from the MythTV backend. Handy for debugging things. --guide-days-warn <days> Warn if the number of days of guide data present is equal to or below this level. Default is 2 days. -h HOST, --host=HOST The host to check, defaults to localhost. --nostatus, --noencoders, --norecording-now, --noscheduled-recordings, --noschedule-conflicts, --nonext-recording, --nototal-disk-space, --nodisk-space, --noguide-data, --noauto-expire Suppress displaying blocks of the output if they would normally be displayed. -p PORT, --port=PORT The port to use when connecting to MythTV, defaults to 6544. --oneliner-bullets Insert asterisks (*) before each of the oneliners to stop some email clients from thinking the oneliner block is a paragraph and trying to word wrap them. --auto-expire Display the shows due to auto expire (output is normally suppressed). --auto-expire-count How many of the auto expire shows to display, defaults to 10. --recording-in-warn If the "Next Recording In" time is less than this amount, display it in red. This in seconds, and defaults to 3600 (1 hour). --verbose Have slightly more verbose output. This includes any warnings that might be generated while parsing the XML. -v, --version Show the version of mythtv-status and then exit. OUTPUT
The output of this script is broken up into several chunks they are: Status Some general info about the backend, currently just the timestamp of when this program was run. Guide Data The number of days of guide data is present. By default it is only shown if the number of days is below the warning level. To show it regardless of the warning level use --guide-data. Encoders Each encoder that the backend knows about are listed, with the hostname they are on, the encoder ID (in brackets) and the current status. Recording Now Any programs which are being recorded right now. Scheduled Recordings Up to 10 programs which are scheduled to be recorded today and tomorrow. Schedule Conflicts Any upcoming schedule conflicts (not just limited to today or tomorrow). Shows due to Auto Expire The shows which will be deleted and the order they'll be deleted if the auto expirer kicks in. Total Disk Space The amount of disk space in total, and used by MythTV. Next Recording In If there are no recordings currently happening, then the amount of time until the next recording is displayed. Disk Space Details about each storage group that MythTV knows about. By default this only shows storage groups that are above the warning level. Use --disk-space to turn on display of all storage groups. RETURN CODES
mythtv-status provides some return codes. 0 Standard return code 1 A warning is generated AUTHOR
Andrew Ruthven, andrew@etc.gen.nz LICENSE
Copyright (c) 2007-2009 Andrew Ruthven <andrew@etc.gen.nz> This code is hereby licensed for public consumption under the GNU GPL v3. perl v5.14.2 2012-12-20 MYTHTV-STATUS(1)
All times are GMT -4. The time now is 01:53 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy