resource disk is 90% used

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
peep
Premium Member
Premium Member
Posts: 162
Joined: Mon Aug 20, 2012 6:52 pm

resource disk is 90% used

Post by peep »

Can we write a script to send an email when resource disk reaches 90% of usage ?
If so Wat is the logic?
can any one share your ideas?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

One could write a script to do pretty darn much anything. Space utilization monitoring is typically the domain of the SysAdmins, why not ask them to monitor that for you?
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Most operating systems allow you to set an alarm to do this.

The real question is what are you planning to do should this situation arise?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Re: resource disk is 90% used

Post by chulett »

peep wrote:If so Wat is the logic?
Nope, Wat is a temple.
-craig

"You can never have too many knives" -- Logan Nine Fingers
peep
Premium Member
Premium Member
Posts: 162
Joined: Mon Aug 20, 2012 6:52 pm

Post by peep »

I want to write a script to send a alarm email to admin ..when disk space reaches 90% used or when the disk space has 10% free.


so what is the logic?
do I need to change any settings at operating system level ?
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Which UNIX variant are you using?

See http://www.unix.com/shell-programming-s ... cript.html
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Maybe this is just me, but to me that is... backwards. My admins are not gonna want some ETL knucklehead like me sending them email alerts about diskspace that we control the usage of. Right now, they come the other way - they monitor the usage and notify the 'owners' when thresholds are hit.

I'm curious, what is the goal here? They rush in and nuke files from your resource disks while jobs are running? Better in my opinion to send emails to yourself if you need to start making a case for needing more diskspace. Perhaps not even worry about thresholds but instead just cron something to report or accumulate (write to a file) usage statistics every x minutes over time so you can start trending it.

Anywho, as Arnd notes, the details of what you'll need to do will vary based on your UNIX variant.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply