R: R: R: nsclient++ and nrpe commands

Natxo Asenjo natxo.asenjo at gmail.com
Tue Oct 6 18:51:39 CEST 2009


hi,

could you post your nsc.ini and bat files, please?

sanitize as necessary (do not post passwords ;-) )
-- 
Groeten,
J.Asenjo


On Tue, Oct 6, 2009 at 8:28 AM, Marco Borsani <m.borsani at it.net> wrote:

>  Hi
>
>
>
> I setted the full path (C:\program files\....) in this way, tha batch did
> not work at all .
>
>
>
> I try also to put an “@exit 0” at the end of ths script, notting changed.
>
>
>
> Any other ideas ?
>
>
>
> Marco
>
>
>
> *Da:* Natxo Asenjo [mailto:natxo.asenjo at gmail.com]
> *Inviato:* lunedì 5 ottobre 2009 18.38
> *A:* Nagios Users Mailinglist
> *Oggetto:* Re: [Nagios-users] R: R: nsclient++ and nrpe commands
>
>
>
> On Mon, Oct 5, 2009 at 3:23 PM, Marco Borsani <m.borsani at it.net> wrote:
>
> Excuse me , I did not wrote the real error message I am receiving.
>
>
>
> I run from nagios server:
>
> ./check_nrpe -H <ip address> -c disk0
>
> And receive this:
>
> 'check_openmanage.exe' is not recognized as an internal or external
> command, operable program or batch file.
>
> 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.
>
>
>  The nsc.ini file there are all the parameters you suggested me and the
> command “disk0” is defined:
>
> disk0=scripts\Disk0.bat
>
> If you run Disk0.bat in MSdos shell, it works correctly.
>
> Is has only one raw (@check_openmanage.exe -v | find "Physical Disk 0:0")
>
>
>
> In the nsclientlog we read:
>
> 2009-10-05 15:22:09: error:modules\NRPEListener\NRPEListener.cpp:263: The
> command (disk0) returned an invalid return code: 255
>
>
> 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.
>
>
>
>
> I always restart nsclientpp when I modified the NSC.ini file.
>
>  good, just checking ;-)
>
> natxo
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20091006/c8ff0fce/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
-------------- next part --------------
_______________________________________________
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