[Nagiosplug-devel] check_disk Problem with Solaris Zones

Masopust, Christian christian.masopust at siemens.com
Wed Jul 21 17:53:16 CEST 2010


probably noone else has already got this problem....

anyway, I found a solution (or workaround) for that...
when running check_disk locally in such a configuration then
I can simple use the "-M" to check_disk.
but when using "-M" when running check_disk via nrpe it again
fails.... so I solved this by changing owner of check_disk to 
root and set the s-bit

christian

> > 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
> 
> Hi all,
> 
> I have the same problem here on my Solaris 10.  Is there any news
> about this problem? Or probably a solution?  :-))
> 
> Thanks,
> Christian
>  
> 
> ___________________________________________________________
> 
>         Christian Masopust
> 
>         SIEMENS AG  SIS SDE SVI CON IPB
>         Tel:   +43 (0) 5 1707 26866
>         E-mail: christian.masopust at siemens.com
>         Addr: Austria, 1210 Vienna, Siemensstraße 90-92, B. 
> 33, Rm. 243
> 
>         Leader of the RUGA 
> <http://www.rational-ug.org/groups.php?groupid=119> 
> 
>         Firma: Siemens Aktiengesellschaft Österreich, 
> Rechtsform: Aktiengesellschaft, 
>         Sitz: Wien, Firmenbuchnummer: FN 60562 m, 
>         Firmenbuchgericht: Handelsgericht Wien, DVR 0001708 
>         ___________________________________________________________
> 
> 
> 
> 
> --------------------------------------------------------------
> ----------------
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> _______________________________________________________
> Nagios Plugin Development Mailing List 
> Nagiosplug-devel at lists.sourceforge.net
> Unsubscribe at 
> https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel
> ::: Please include plugins version (-v) and OS when reporting 
> any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null
> 




More information about the Devel mailing list