[Nagiosplug-devel] check_disk Problem with Solaris Zones

Michael Prochaska michael at prochas.net
Thu Apr 29 08:51:23 CEST 2010


Hi,

we have with a strange problem with check_disk combined with solaris zones.

check_disk running on the global zone sees all the filesystems inside the
zones. if there are two equal mountpoints inside a zone and the global
zone, we run into this problem.

check_disk thinks, that it has already seen the filesystem and overwrites
the one found first with the second one. without -A everything runs fine
and check_disk sees both filesystems.

e.g.

# df -h
Filesystem             size   used  avail capacity  Mounted on
...
/dev/md/dsk/d5          62G    34G    27G    56%    /zones
/dev/md/dsk/d30        134G   102G    32G    77%    /abc
...

# zonecfg -z xyz info
...
fs:
        dir: /abc
        special: /abc
        raw not specified
        type: lofs
        options: []
...

# /tmp/check_disk -w 20% -c 10%
DISK OK - free space: ... /zones 28134 MB (44% inode=87%); /abc 32768 MB
(23% inode=76%); ... /zones/xyz/root/abc 32768 MB (23% inode=76%); ...

# /tmp/check_disk -w 20% -c 10% -A
DISK OK - free space: ... /zones 28134 MB (44% inode=87%);
/zones/xyz/root/abc 32736 MB (23% inode=76%); ...


If i want to filter out the zone filesystems with "-i /zones/" i need -A
before to explicitly select all filesystems. that meens, that my
filesystem from the global zone is "overwritten" with my zone filesystem
and filtered out with "-i /zones/" :-(


what's the right way to fix this problem?


best regards,
michael





More information about the Devel mailing list