<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Hi everybody,<o:p></o:p></p>
<p class=MsoNormal>I have a configuration with a Nagios monitoring some linux
servers and few Windows ones.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>I have a problem monitoring the USEDDISKSPACE on one drive
of one of the windows servers.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>It is a Windows Server 2003 R2 Standard edition
(Service pack 2).<o:p></o:p></p>
<p class=MsoNormal>The problem occurs after I did the last Windows Update last
Friday. Before it was working.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>I am using nsclient++<o:p></o:p></p>
<p class=MsoNormal>C:\>"C:\Program
Files\NSClient++\\NSClient++.exe" -version<o:p></o:p></p>
<p class=MsoNormal>l NSClient++.cpp(360) NSClient++ Version: 0.3.6.818
2009-06-14, Plattform: w32<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>And, on the Nagios site, check_nt:<o:p></o:p></p>
<p class=MsoNormal>/usr/local/nagios/libexec/check_nt --version<o:p></o:p></p>
<p class=MsoNormal>check_nt v1991 (nagios-plugins 1.4.13)<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>I show the problem running the plug-in from the command line
because it shows better what happens. <o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>The windows server has 2 disks (2 raid partitions): c and d<o:p></o:p></p>
<p class=MsoNormal>The problem is:<o:p></o:p></p>
<p class=MsoNormal>If I run the USEDDISKSPACE on the drive D everything is OK.<o:p></o:p></p>
<p class=MsoNormal># /usr/local/nagios/libexec/check_nt -H servername -p 12489
-s password -v USEDDISKSPACE -l d ; echo $?<o:p></o:p></p>
<p class=MsoNormal>d:\ - total: 182.12 Gb - used: 14.56 Gb (8%) - free 167.56
Gb (92%) | 'd:\ Used Space'=14.56Gb;0.00;0.00;0.00;182.12<o:p></o:p></p>
<p class=MsoNormal>0<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>But if I run the same identical command on the drive c.<o:p></o:p></p>
<p class=MsoNormal># /usr/local/nagios/libexec/check_nt -H servername -p 12489
-s password -v USEDDISKSPACE -l c ; echo $?<o:p></o:p></p>
<p class=MsoNormal>Segmentation fault<o:p></o:p></p>
<p class=MsoNormal>139<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>I tried running the nsclient++ service in both ways: as
administrator (with password) and as system account (allowing service to
interact with the desktop) with the same results.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Does anybody knows what is the problem and how to solve it?<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Note: I tried to stop the nsclient++ service and run it from
the command line with the option /test.<o:p></o:p></p>
<p class=MsoNormal>It works. No error is shown and the ckeck_nt result is what
I expect. So this segmentation fauld in the linux/Nagios site occurs only what
nsclient++ runs as a service.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Thank you for the help.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Massimo<o:p></o:p></p>
<p class=MsoNormal>Reno, NV, USA.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
</div>
</body>
</html>