Operating System - HP-UX
1834165 Members
2269 Online
110064 Solutions
New Discussion

Re: bdf/system check scripts

 
Joanne Joki_1
Occasional Contributor

bdf/system check scripts

I had a great idea to write a a script that would go out each day and report back to me via email file systems that we 70% and above ... then I got to thinking that someone out that surely has had this idea before and probably has written a nice system check scripts they wouldn't mind sharing .... do any of you have such a script or know of such a utility?
6 REPLIES 6
Jeff Schussele
Honored Contributor

Re: bdf/system check scripts

Hi Joanne,

Here's a link to the "favorite scripts" thread - think there's one in there.
And it contains pointers to other sources as well.

http://forums.itrc.hp.com/cm/QuestionAnswer/0,,0x026250011d20d6118ff40090279cd0f9,00.html

Should be able to find one here I would think.

HTH,
Jeff

PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
S.K. Chan
Honored Contributor

Re: bdf/system check scripts

Darrell Allen
Honored Contributor

Re: bdf/system check scripts

Hi Joanne,

I was interested in a script to tell me which filesystems were changing size. Hence the attached script, ckfssize. It also reports filesystems over 90% full (if not already listed).

Simply running it from cron will have it mailed to you on the local host. That's all I cared to do. You could capture it's output to a file and email that. Or perhaps pipe the output to mail.

My next reply will have attached the script that creates my "baseline" file, mkbaseline.

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)
Darrell Allen
Honored Contributor

Re: bdf/system check scripts

The afore-mentioned mkbaseline script.

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)
Tony Rose
Advisor

Re: bdf/system check scripts

Here is a quick script that I run each day that gives bdf as well as some other information on a mail server.
Fred Martin_1
Valued Contributor

Re: bdf/system check scripts

I have a setup, where the root cron runs every 15 mins, the attached script.

It has two user-definable thresholds, one for non-critical file systems that can go pretty high, and one for critical systems like /var that I want to keep lower.

If a threshold is met, several things happen.

First, it sends email to my pager. It does this until the problem is fixed.

Second, it sends an email to an alias, a list of admins. The mail is only sent once, however, since email to four people every 15 minutes would only add to disk space problems :) I use a file as a flag for that - if the file exists no more mail is sent.
fmartin@applicatorssales.com