Operating System - HP-UX
1753522 Members
7016 Online
108795 Solutions
New Discussion юеВ

Re: Best way for flesystem monitoring in hp-ux

 
SOLVED
Go to solution
sysadm_1
Valued Contributor

Best way for flesystem monitoring in hp-ux

Hi gurus,
What is the best way to monitor hp-ux disk usage?.I have 50 plus hp-ux servers.It is not practical to login in all servers and check the disk usaage daily.Currently I am using Big brother for this.I am seaching for a hp solution which should send me alert when any of the filesystem reaches 90%.Please help.
15 REPLIES 15
Aneesh Mohan
Honored Contributor

Re: Best way for flesystem monitoring in hp-ux

Hi,

I feel the better way to do this using HP Openview Operations Software.


Thanks,
Aneesh
Jeeshan
Honored Contributor

Re: Best way for flesystem monitoring in hp-ux

or, you can use shell or perl script for email notification of file system usage. check this link

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=78542
a warrior never quits
Rasheed Tamton
Honored Contributor

Re: Best way for flesystem monitoring in hp-ux

Hi,

You can use very simple one like this:

bdf | awk ' / 9[0-9]%/ {print $NF}'|xargs bdf|mailx -s "bdf from `hostname`" username@abcd.com

Here it is looking for any file system above 90% and will mail it with the name of the file system with hostname in the subject line. You can setup it on cron two three times per a day as per your system file usage.

rgds.
Srimalik
Valued Contributor

Re: Best way for flesystem monitoring in hp-ux

Try Storage Foundation Management, Free of cost its and its a beauty once it starts working.

abandon all hope, ye who enter here..
sysadm_1
Valued Contributor

Re: Best way for flesystem monitoring in hp-ux

thanks for the replies.

srikishan,
yo are talking about Veritas Storage Foundation Manager ?.Let me check it.
Srimalik
Valued Contributor

Re: Best way for flesystem monitoring in hp-ux

yes, The veritas storage foundation manager.

http://www.symantec.com/business/theme.jsp?themeid=sfms

It also has centralized alerting(email, SNMP trap).

abandon all hope, ye who enter here..
Bill Hassell
Honored Contributor
Solution

Re: Best way for flesystem monitoring in hp-ux

Be very careful using bdf. It has a very annoying behavior where long source paths for filesystems will cause split lines and mess up any scripting. Almost all NFS or Samba/CIFS shared filesystems will exhibit this problem.

Use the attached bdfmegs script. bdfmegs will never split a line and can report in MB or GB. You'll find the -P and -q options very useful. For example:

bdfmegs -qP 95

will show all filesystems that are 95% full or more. The -q leaves off the header so scripting is easier. Just store bdfmegs on each server and then run the script on each server with ssh and capture the result. Here are the options:

Usage: bdfmegs [ -glPpqstvu ] [ dir(s) or file(s) ]
where:
-g = gigabytes rather than megabytes
-l = local only (not NFS)
-p ## = highlight pct -ge ##
-P ## = same as -p but show only pct -ge ##
-q = suppress the header line and no char enhancements
-s = summary of total, used and available
-t xxxx = specifc filesystem (hfs vxfs nfs cdfs cifs autofs DevFS)
-u = usage details (return code = 0, usage text to stdout)
-v = verbose (shows FSversion, largefiles flag)
(requires read permission for mountpoint)

File(s) or dirpath(s) may be specified to limit
the output of bdfmegs as in:

bdfmegs -vlg /usr/contrib/bin /var/tmp

If bdfmegs is run as bdfgigs (ie, a link), then -g is default.


Bill Hassell, sysadmin
Kenan Erdey
Honored Contributor

Re: Best way for flesystem monitoring in hp-ux

Hi,

Not hp but what about using nagios. it can send e-mail and sms.

http://www.nagios.org/

Kenan.
Computers have lots of memory but no imagination
Arturo Galbiati
Esteemed Contributor

Re: Best way for flesystem monitoring in hp-ux

Hi,
you can use the diskspace script by B.Hassel.
I attache dit for your use.
HTH,
Art