System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

How to monitor directory size using SNMP traps.

kumasudh
Advisor

How to monitor directory size using SNMP traps.

Hi Gurus,

I want to monitor the size of certain directories (may be all..) on my HP-UX11.23 system. I want to restrict the metadata structure of a directory to be lower than a threshold value. If that exceeds, a SNMP trap should get generated and targated to a OVO NNM system. The reason to do this monitoring is because of VxFS issues with directories having big size metadata structure.

http://wtec.cup.hp.com/~hpux/fs/VxFS/pa-news/jfs_dvnl2bb.htm

Though the EMS system allows to manage the root filesystem (availMB) size but i don't know if i can configure at individual directory level also ?

Could somebody please help me ?

Best Regards
Sudhir
3 REPLIES
Steven E. Protter
Exalted Contributor

Re: How to monitor directory size using SNMP traps.

Shalom,

I would write a script using du -sk or du -k | sort -rn

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
smatador
Honored Contributor

Re: How to monitor directory size using SNMP traps.

Hi,

wtec.cup.hp.com is internal HP.
If your upgrade to vxFS 4.1 or vxFS 5.0 do you have this issues?

kumasudh
Advisor

Re: How to monitor directory size using SNMP traps.

Hi SEP,

Thanks a lot for the reply. But may be my problem is not about the actual size of the directory( real content of the directory) but about the metadata structure of that directory. The problem with VxFS is, if there is very frequent creation/updation/deletion of files happens under a certain directory then the metadata of that directory keeps growing even if the files been created are no longer exist. So this way the even if the directory barely hosts few files, its metadata doesn't shrink and hence result in a fragmented but huge structure.

Best Regards
Sudhir