Operating System - HP-UX
1753396 Members
7027 Online
108792 Solutions
New Discussion юеВ

need a script to monitor file system

 
abhijeet_7
Advisor

need a script to monitor file system

Hello Gurus,

I am handling LIVE server(HP RP8400/HPUX 11i) with "mision critical" scenario.

Generally i use bdf to monitor file system.
but i need a script which if a file system crosses ,say 70 % usage,will convey it either
through e-mail(preferably) or messages in syslogs.

how to set auditing so that in /var/adm/syslog/syslog.log, it can print the messages?


Thanks & Regards
A B H I K

we work, to become...not acquire
5 REPLIES 5
Robert-Jan Goossens
Honored Contributor

Re: need a script to monitor file system

abhijeet_7
Advisor

Re: need a script to monitor file system

Thanks Robert,

the thread was helpful.

Regards
A B H I K
we work, to become...not acquire
Andrew Merritt_2
Honored Contributor

Re: need a script to monitor file system

The Event Monitoring Service (EMS) in SAM lets you do this.

In SAM, select "Resource Management" then "Event Monitoring Service", and then you can, among many other options, set up alerts that will be triggered when free space on a file system crosses a boundary. The alerts can be delivered to many destinations, e.g. email and syslog.

See http://www.docs.hp.com/en/ha.html#Event%20Monitoring%20Service%20and%20HA%20Monitors for links to the documentation.

(EMS is free, HA monitors, which are on the same page, but not needed for this, are an additional charge).

Andrew
MarkSyder
Honored Contributor

Re: need a script to monitor file system

Big Brother is good for this and it's free.

Visit http://www.bb4.org for details.

Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing
Dave La Mar
Honored Contributor

Re: need a script to monitor file system

ABHIK -
Attached find a (rough) script we use for vg monitoring.
I think this will accomodate what you wish to do. You will have to adjust the fields parsed out with awk to meet your environments requirements.

Regards,
dl
"I'm not dumb. I just have a command of thoroughly useless information."