hi,<br><br>could you post your nsc.ini and bat files, please? <br><br>sanitize as necessary (do not post passwords ;-) )<br clear="all">-- <br>Groeten,<br>J.Asenjo<br>
<br><br><div class="gmail_quote">On Tue, Oct 6, 2009 at 8:28 AM, Marco Borsani <span dir="ltr"><<a href="mailto:m.borsani@it.net">m.borsani@it.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">










<div link="blue" vlink="purple" lang="IT">

<div>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Hi</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">I setted the full path (C:\program files\....) in this way, tha
batch did not work at all .</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">I try also to put an “@exit 0” at the end of ths script, notting
changed.</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">Any other ideas ?</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">Marco</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>

<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0cm 0cm;">

<p><b><span style="font-size: 10pt;">Da:</span></b><span style="font-size: 10pt;"> Natxo Asenjo
[mailto:<a href="mailto:natxo.asenjo@gmail.com" target="_blank">natxo.asenjo@gmail.com</a>] <br>
<b>Inviato:</b> lunedě 5 ottobre 2009 18.38<br>
<b>A:</b> Nagios Users Mailinglist<br>
<b>Oggetto:</b> Re: [Nagios-users] R: R: nsclient++ and nrpe commands</span></p>

</div>

<p> </p>

<div>

<p>On Mon, Oct 5, 2009 at 3:23 PM, Marco Borsani <<a href="mailto:m.borsani@it.net" target="_blank">m.borsani@it.net</a>> wrote:</p>

<div>

<div>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">Excuse me , I did
not wrote the real error message I am receiving.</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">I run from nagios
server:</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">./check_nrpe -H
<ip address> -c disk0</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">And receive this:</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">'check_openmanage.exe'
is not recognized as an internal or external command, operable program or batch
file.</span></p>

</div>

</div>

<div>

<p>ok, so the bat file disk0 is being executed. Try setting the
full path to check_openmanage.exe in the bat file because apparently it is not
in the path of your windows session.<br>
 </p>

</div>

<blockquote style="border-style: none none none solid; border-color: -moz-use-text-color -moz-use-text-color -moz-use-text-color rgb(204, 204, 204); border-width: medium medium medium 1pt; padding: 0cm 0cm 0cm 6pt; margin-left: 4.8pt; margin-right: 0cm;">


<div>

<div>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">The nsc.ini file
there are all the parameters you suggested me and the command “disk0” is
defined:</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">disk0=scripts\Disk0.bat</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">If you run Disk0.bat
in MSdos shell, it works correctly. </span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">Is has only one raw
(@check_openmanage.exe -v | find "Physical Disk 0:0")</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">In the nsclientlog
we read:</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">2009-10-05 15:22:09:
error:modules\NRPEListener\NRPEListener.cpp:263: The command (disk0) returned
an invalid return code: 255</span></p>

</div>

</div>

</blockquote>

<div>

<p><br>
you need to return valid error levels that nagios understand: 0 is 0k, 1 is
warning, 2 is critical and 3 is unknown. Otherwise nagios does not know what to
do with them.<br>
 </p>

</div>

<blockquote style="border-style: none none none solid; border-color: -moz-use-text-color -moz-use-text-color -moz-use-text-color rgb(204, 204, 204); border-width: medium medium medium 1pt; padding: 0cm 0cm 0cm 6pt; margin-left: 4.8pt; margin-right: 0cm;">


<div>

<div>

<p> </p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">I always restart
nsclientpp when I modified the NSC.ini file.</span></p>

</div>

</div>

</blockquote>

<div>

<p>good, just checking ;-)<br>
 <br>
natxo</p>

</div>

</div>

<p> </p>

</div>

</div>


</blockquote></div><br>