-V on the plugin says the version is check_disk (nagios-plugins 1.3.1) <a href="http://1.7.2.4">1.7.2.4</a><br>
<br>
I'm just doing check_disk -w 20 -c 10<br>
<br>
I want all filesystems checked, so I'm not specifying. If I run
it locally and try specifying either a mount point or a device, same
thing happens.<br>
<br>
Aaron<br><br><div><span class="gmail_quote">On 11/8/05, <b class="gmail_sendername">Frank, Jason</b> <<a href="mailto:JasonFrank@srcp.com">JasonFrank@srcp.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div align="left" dir="ltr"><font face="Tahoma" size="2"><span class="q"><b>From:</b>
<a href="mailto:nagios-users-admin@lists.sourceforge.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">nagios-users-admin@lists.sourceforge.net</a>
[mailto:<a href="mailto:nagios-users-admin@lists.sourceforge.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">nagios-users-admin@lists.sourceforge.net</a>] <b>On Behalf Of </b>Aaron
Carr<br></span><b>Sent:</b> Tuesday, November 08, 2005 12:46 PM</font><div><span class="e" id="q_107713fc868f2b60_3"><font face="Tahoma" size="2"><br><b>To:</b>
<a href="mailto:nagios-users@lists.sourceforge.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">nagios-users@lists.sourceforge.net</a><br><b>Subject:</b> Re: [Nagios-users]
check_disk on Solaris 8 and 9<br></font></span></div><br></div><div><span class="e" id="q_107713fc868f2b60_5">
<div></div>I understand what Luc is saying.<br><br>If I do "which df" I
get "/usr/bin/df".<br><br>/usr/bin/df is actually a symlink. /usr/bin/df
-> ../sbin/df<br><br>The binary that's linked to is the one I replaced, with
no effect.<br><br>Aaron<br><br>
<div><span class="gmail_quote">On 11/8/05, <b class="gmail_sendername">Frank,
Jason</b> <<a href="mailto:JasonFrank@srcp.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">JasonFrank@srcp.com</a>>
wrote:</span>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div align="left" dir="ltr"><font face="Tahoma" size="2"><span><b>From:</b> <a href="mailto:nagios-users-admin@lists.sourceforge.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">nagios-users-admin@lists.sourceforge.net
</a> [mailto:<a href="mailto:nagios-users-admin@lists.sourceforge.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">nagios-users-admin@lists.sourceforge.net</a>] <b>On Behalf Of
</b>Aaron Carr<br></span><b>Sent:</b> Tuesday, November 08, 2005 12:14 PM<span><br><b>To:</b> <a href="mailto:nagios-users@lists.sourceforge.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">nagios-users@lists.sourceforge.net
</a><br></span><b>Subject:</b>
Re: [Nagios-users] check_disk on Solaris 8 and 9<br></font><br></div>
<div><span>
<div></div>At this point, I've tried copying the df binary from a known good
machine, with no effect. I still get the "Disk "" not mounted or
nonexistant" error.<br><br>I also tried copying the df from /usr/xpg4/bin/ to
/usr/sbin/, same thing. No difference.<br><br>Aaron<br><br>
<div><span class="gmail_quote">On 11/8/05, <b class="gmail_sendername">Luc I.
Suryo</b> <<a href="mailto:luc@suryo.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">luc@suryo.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><font color="#0000ff" face="Arial" size="2"></font><font color="#0000ff" face="Arial" size="2">
</font><br><br>> Has anyone resolved the issue with the check_disk
plugin on Solaris<br>> returning "Disk "" not mounted or
nonexistant"?<br>><br>> I have two Solaris machines that were here
before I started this position <br>> that both return the above error
when check_disk is run. One is Solaris 8,<br>> one is 9, both are SPARC.
The error occurs regardless of whether I run it<br>> via ssh (which is
how all of my actual checks get run) or locally. It's also <br>> the same
result whether I leave it blank (to check all partitions), use<br>> mount
points, or use disk devices.<br>><br>> I searched the archives and
found several emails about the error, but none<br>> seemt to successfully
address the problem. <br>><br><br>the reasom, I believe is do the df.
use/defined during compilation..<br>/usr/xpg4/bin/df -Pk<br>and the -P is
unknow to Solaris<br><br>'hack' the sources with correct flags and you
should be ok, I had to do <br>that too, running on solaris 7, 8,
9(x86/sparc), and 10(x86/sparc) all working
properly<br><br><br>-ls<br></blockquote></div><br></span></div>
<div align="left" dir="ltr"><span><font color="#0000ff" face="Arial" size="2">I think
you're misunderstanding what Luc is saying. The problem is that the df
command that you're running does not accept the -P option, so it give up, and
leaves everything in a funky state. The version in /usr/xpg4/bin
does:</font></span></div>
<div align="left" dir="ltr"><span><font color="#0000ff" face="Arial" size="2"></font></span> </div>
<div align="left" dir="ltr"><span><font color="#0000ff" face="Arial" size="2"></font></span><span><font color="#0000ff" face="Arial" size="2">bash-2.05$
/usr/xpg4/bin/df
-Pk<br>Filesystem
1024-blocks Used
Available Capacity Mounted
on<br>/dev/md/dsk/d1
36357261 10268500
25725189 29%
/<br>/proc
0
0
0 0% /proc<br>mnttab
0
0
0 0% /etc/mnttab<br>fd
0
0
0 0% /dev/fd<br>swap
3604088
24 3604064
1%
/var/run<br>swap
3604080
16 3604064
1% /tmp<br></font></span></div>
<div align="left" dir="ltr"><span><font color="#0000ff" face="Arial" size="2"></font></span> </div>
<div align="left" dir="ltr"><span><font color="#0000ff" face="Arial" size="2">but the
version in /usr/bin does not:</font></span></div><font color="#0000ff" face="Arial" size="2">bash-2.05$ <span>/usr/bin/</span>df -Pk<br>df:
unknown option: P<br>Usage: df [-F FSType] [-abeghklntVv] [-o
FSType-specific_options] [directory | block_device | resource]<br></font>
<div align="left" dir="ltr"><span><font color="#0000ff" face="Arial" size="2"></font></span> </div>
<div align="left" dir="ltr"><span><font color="#0000ff" face="Arial" size="2">Copying
the version from /usr/xpg4/bin to /usr/sbin won't fix anything, since it's
likely trying to run from /usr/bin. If you copy the version from
/usr/xpg4/bin to /usr/bin, you're going to be disappointed in how Solaris
reacts. The proper fix is to change the check_disk program to use the
version in /usr/bin/xpg4. To be honest, I don't remember if the path is
set by your PATH during configure, a hard coded path, or your PATH at
runtime. Perhaps someone can fill in the blank there. It would be
easy enough to test with changing your path though.</font></span></div><span>
<div align="left" dir="ltr"><span><font color="#0000ff" face="Arial" size="2"></font></span> </div>
<div align="left" dir="ltr"><span><font color="#0000ff" face="Arial" size="2">Jason</font></span></div></span></blockquote></div>
<div><span><font color="#0000ff" face="Arial" size="2"> </font></span></div></span></div>
<div><span><font color="#0000ff" face="Arial" size="2">Mine
appears to be working just fine, and I haven't patched the source on this box
(SPARC Solaris 8):</font></span></div>
<div><span> </span><br><font color="#0000ff" face="Arial" size="2">check_disk -p /tmp<br>DISK OK - free space: /tmp 8713 MB
(95%);| /tmp=506MB;9218;9218;0;9218<br></font></div>
<div><font color="#0000ff" face="Arial" size="2">which
df<br>/usr/xpg4/bin/df</font></div>
<div><font color="#0000ff" face="Arial" size="2"></font> </div>
<div><span><font color="#0000ff" face="Arial" size="2">When I
truss the program, I do see that it's calling statvfs internally now, so it
should not need to call df any longer. What is the exact syntax of the
check_disk command that your using? What version of the plugins are you
using?</font></span></div>
<div><font face="Arial"><br><font color="#0000ff" size="2"></font></font></div>
</blockquote></div><br>