check_disk on Solaris returns the wrong data
Camron W. Fox
cwfox at us.fujitsu.com
Thu Mar 10 19:34:29 CET 2005
Alle,
We're running Nagios 2.0b2 on RHEL3. We've installed plugins V1.4 on a
Solaris 8 box to do check with check_by_ssh. We've found some
inconsistencies with the out put from check_disk.
For example, here is the default ouput:
root at g31:/admin/utils/libexec [89/3]# ./check_disk -w 10 -c 5
DISK OK - free space: / 184 MB (9%); /var 1988 MB (66%); /var/run 3485
MB (100%); /tmp 1023 MB (100%); /opt 2993 MB (59%); /export/home 932 MB
(94%); /opt/share 16583 MB (79%); /bank1 205154 MB (76%); /var/mail
235756 MB (78%); /admin 179207 MB (29%); /bank1 205154 MB (76%); /admin
179207 MB (29%); /var/mail 235756 MB (78%);| /=1822MB;1995;2000;0;2005
/var=1035MB;3013;3018;0;3023 /var/run=0MB;3475;3480;0;3485
/tmp=1MB;1014;1019;0;1024 /opt=2048MB;5030;5035;0;5040
/export/home=61MB;982;987;0;992 /opt/share=4498MB;21070;21075;0;21080
/bank1=64045MB;269188;269193;0;269198
/var/mail=66794MB;302539;302544;0;302549
/admin=432608MB;611805;611810;0;611815
/bank1=64045MB;269188;269193;0;269198
/admin=432608MB;611805;611810;0;611815
/var/mail=66794MB;302539;302544;0;302549
root at g31:/admin/utils/libexec [90/4]#
As you can see, the NFS mounted filesystems (/bank1, /var/mail and
/admin) are listed twice. However, when we use the -l option for local
disks only:
root at g31:/admin/utils/libexec [90/4]# ./check_disk -l -w 10 -c 5
DISK OK - free space: / 184 MB (9%); /var 1988 MB (66%); /var/run 3485
MB (100%); /tmp 1023 MB (100%); /opt 2993 MB (59%); /export/home 932 MB
(94%); /opt/share 16583 MB (79%); /bank1 205154 MB (76%); /var/mail
235753 MB (78%); /admin 179207 MB (29%);| /=1822MB;1995;2000;0;2005
/var=1035MB;3013;3018;0;3023 /var/run=0MB;3475;3480;0;3485
/tmp=1MB;1014;1019;0;1024 /opt=2048MB;5030;5035;0;5040
/export/home=61MB;982;987;0;992 /opt/share=4498MB;21070;21075;0;21080
/bank1=64045MB;269188;269193;0;269198
/var/mail=66797MB;302539;302544;0;302549
/admin=432608MB;611805;611810;0;611815
root at g31:/admin/utils/libexec [91/5]#
The NFS files systems are still listed, but only once. If we use the -X
nfs option, we still get the nfs filesystems:
root at g31:/admin/utils/libexec [94/8]# ./check_disk -X nfs -w 10 -c 5
DISK OK - free space: / 184 MB (9%); /var 1988 MB (66%); /var/run 3485
MB (100%); /tmp 1023 MB (100%); /opt 2993 MB (59%); /export/home 932 MB
(94%); /opt/share 16583 MB (79%); /bank1 205154 MB (76%); /var/mail
235753 MB (78%); /admin 179207 MB (29%);| /=1822MB;1995;2000;0;2005
/var=1035MB;3013;3018;0;3023 /var/run=0MB;3475;3480;0;3485
/tmp=1MB;1014;1019;0;1024 /opt=2048MB;5030;5035;0;5040
/export/home=61MB;982;987;0;992 /opt/share=4498MB;21070;21075;0;21080
/bank1=64045MB;269188;269193;0;269198
/var/mail=66797MB;302539;302544;0;302549
/admin=432609MB;611805;611810;0;611815
root at g31:/admin/utils/libexec [95/9]#
I've looked back in the ML archives but haven't found anything that
mentions this.
Any help would be greatly appreciated.
Best Regards,
Camron
--
Camron W. Fox
Hilo Office
High Performance Computing Group
Fujitsu America, INC.
E-mail: cwfox at us.fujitsu.com
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list