Has anyone managed to get net-snmp running in such a way that one can
observe the disk-usage of a zone's directory? 

 

I want to observe the disk usage of the /opt directory since that is the dir
where all my data is stored, but I can't get net-snmp to show me the usage. 

 

When I do df -h from the root of the zone it doesn't show the / (root)
directory too. 

 

Df -h shows:

Filesystem                      Size  Used Avail Use% Mounted on

/usr/local                     1001G  446G  556G  45% /usr/local

/sbin                           263M  241M   22M  92% /sbin

/lib/svc/manifest               2.2T   98G  2.1T   5% /lib/svc/manifest

/usr/lib/libc/libc_hwcap1.so.1  433M  374M   59M  87% /lib/libc.so.1

swap                            1.0G   43M  982M   5% /etc/svc/volatile

swap                            1.0G   43M  982M   5% /tmp

swap                            1.0G   43M  982M   5% /var/run

 

Doing the same from a Solaris 10 zone results in this list, where I can see
/ 

 

Filesystem             size   used  avail capacity  Mounted on

/                       12G   3.4G   8.2G    30%    /

/dev                    12G   3.4G   8.2G    30%    /dev

/lib                    12G   9.5G   2.3G    81%    /lib

/platform               12G   9.5G   2.3G    81%    /platform

/sbin                   12G   9.5G   2.3G    81%    /sbin

/usr                    12G   9.5G   2.3G    81%    /usr

proc                     0K     0K     0K     0%    /proc

ctfs                     0K     0K     0K     0%    /system/contract

mnttab                   0K     0K     0K     0%    /etc/mnttab

objfs                    0K     0K     0K     0%    /system/object

swap                   652M   344K   652M     1%    /etc/svc/volatile

/usr/lib/libc/libc_hwcap2.so.1                        12G   9.5G   2.3G
81%    /lib/libc.so.1

fd                       0K     0K     0K     0%    /dev/fd

swap                   652M    36K   652M     1%    /tmp

swap                   652M    16K   652M     1%    /var/run




-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com

Reply via email to