fs_trend.sh (Filesystem Trends)


 
Thread Tools Search this Thread
Operating Systems Solaris Solaris BigAdmin RSS fs_trend.sh (Filesystem Trends)
# 1  
Old 12-10-2008
fs_trend.sh (Filesystem Trends)

fs_trend.sh This script produces a nice, easy to read, colour coded "trend figure for disk usage report" web page. For each file system, it shows data from today, 1, 2 and 3 days ago, 1 and 2 weeks ago and 1, 3 and 6 months ago Where any historical data is not available, N/A will appear. New file systems are automatically catered for. The script will create a file fs_trend_.html which you can load to your web site. It also creates a file fs_history which will build over time to contain historical data for the html page. You should run the script daily from your crontab (root is not required) It also writes a copy of the web page to /tmp (in case you use something like an ssh keychain as another user to grab the files for your web server, to avoid any permissions problems) If the configuration file does not exist, then it is created with the default values Output_dir= (The output directory) is set to the same directory where the script resides Colour=YES - The option to have coulour coded cells Redpct=90 - Turns the cell red if the FS % is 90% or more Amberpct=80 - Turns the cell Amber if the FS% is between 80% and 90% See screenshot as well: http://www.sun.com/bigadmin/scripts/images/fs_trend.jpg

More...
Login or Register to Ask a Question

Previous Thread | Next Thread

5 More Discussions You Might Find Interesting

1. What is on Your Mind?

Google Trends: UNIX

Over the years I have a lot of experience with people and their opinions of technology, toolsets, programming languages, software architectures, and of course forums. These opinions come from all walks of life and range from "unix.com changed my life and got me though the university... thank you... (11 Replies)
Discussion started by: Neo
11 Replies

2. Web Development

Google Trends: react.js angular.js vue.js

While I'm on the subject of Google trends, here is a global trend since 2004 comparing react.js, angular.js, vue.js It's no secret I'm a vue.js fan and coder, but not because of the trend line (which I just saw for the first time a few minutes ago) My experience is that vue.js, a late arrival... (0 Replies)
Discussion started by: Neo
0 Replies

3. Web Development

Top 8 Web Development Trends 2019

Top 8 Web Development Trends 2019 https://www.youtube.com/watch?v=VLm3Y7Odb74 (0 Replies)
Discussion started by: Neo
0 Replies

4. UNIX for Dummies Questions & Answers

hwo to find shared filesystem and local filesystem in AIX

Hi, I wanted to find out that in my database server which filesystems are shared storage and which filesystems are local. Like when I use df -k, it shows "filesystem" and "mounted on" but I want to know which one is shared and which one is local. Please tell me the commands which I can run... (2 Replies)
Discussion started by: kamranjalal
2 Replies

5. UNIX for Dummies Questions & Answers

Platform trends (what to aim for to become a sys admin)

I am currently an AIX operator at IBM (Montreal Canada). In my career path, I wish to become a system admin. I know about Linux because I'v had ubuntu at home for 2 years. What platform should I aim for in becoming a system admin ? What book would you recomand ? What certification would... (1 Reply)
Discussion started by: Browser_ice
1 Replies
Login or Register to Ask a Question
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)