Operating System - HP-UX
1825768 Members
2094 Online
109687 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
Steve Post
Trusted Contributor

Re: Best way for flesystem monitoring in hp-ux

If you know perl, I have a perl script that has worked fine for me for the last 8 years.
It pages me if the filesystems get over a certain threshhold. But it won't page me every 5 minutes until it is fixed.
It uses bdf command and knows about the file line breaks.
It's probably not the most pretty thing.

But it works.
I'm not going to make the 269 line script generic unless you want it. Then I'll post it here.
....hmm...it there a place where people post SIMPLE scripts?
Ivan Krastev
Honored Contributor

Re: Best way for flesystem monitoring in hp-ux

Nagios is ported for HP-UX as a part of Internet Express package - http://h20338.www2.hp.com/hpux11i/cache/324414-0-0-0-121.html

regards,
ivan
Jonathan E. Deady
Frequent Advisor

Re: Best way for flesystem monitoring in hp-ux

sysadmin,

I understand you want to use an HP product however I would recommend looking at Nagios. I admin between 120 and 150 servers which run HP-UX 11i v1/v2 /CentOS(Linux Distro)/RedHat Enterprise Linux. It was a nightmare of scripts and cron jobs and sed/awd; expect, perl etc, etc. Until I got involved with this Open Source Tool. Installing it can be done in twenty or thirty minutes although adding your hosts and configuring the plugins and alerts takes considerable time initially you won't be sorry afterward. Believe me.

Regards,

Jonathan
kirkkak
Advisor

Re: Best way for flesystem monitoring in hp-ux

You may also check Zabbix as alternative for Nagios/Cacti
Steve Post
Trusted Contributor

Re: Best way for flesystem monitoring in hp-ux

You could also try the checkfs monitoring system.
sysadm_1
Valued Contributor

Re: Best way for flesystem monitoring in hp-ux

Thans you very much.