Code of 139 when checking mapped unit

Ken Netzorg knetzorg at gmail.com
Mon Mar 23 18:13:55 CET 2009


In regards to your NCSA Mismatch, are you intending to use NSClient++
through NCSA or only through the check_nt option? If you aren't using NCSA,
you may need to double check your nsc.ini file to make sure it is commented
out.
There is a pretty good tutorial here
http://trac.nakednuns.org/nscp/wiki/doc/usage/nagios for configuring
NSClient for simple check_nt usage.

As far as the other error goes, I'm not sure how NSClient handles mapped
drives. I know there was a post a while back about someone accidently
monitoring a CDROM drive that caused errors.

You can also run the NSClient from the command line with /test argument and
then run any command through there to see what the output is. That may help
identify what is causing the 139 error. (here is the link on how to use the
/test argument in NSClient http://trac.nakednuns.org/nscp/wiki/doc/Usage)
Ken

2009/3/23 Alejandro Sánchez Meroño <alejandro.sanchez at ite.es>

> Hello everybody,
>
> I am pretty novice at Nagios, so I hope that my question were easy to
> answer, or at least, I could get a hint...
>
> The thing is that I want to monitor a mapped unit on a Windows host, just
> to check the available disk space (i.e., drive U:, that might be "myuser at
> server\users").
>
> What I have done is the following:
>
> At windows.cfg:
>
> (...)
> define host {
>        use             windows-server
>        host_name       myhost
>        alias           My Windows host
>        address xxx.xxx.xxx.xxx
> }
> (...)
> define service {
>        use                             generic-service
>        host_name                       myhost
>        service_description     Check C: disk space
>        check_command           check_nt!USEDDISKSPACE!-l c -w 80 -c 90
> }
> define service {
>        use                             generic-service
>        host_name                       myhost
>        service_description     Check mapped unit U: disk space
>        check_command           check_nt!USEDDISKSPACE!-l u -w 80 -c 90
> }
>
> (I had previously installed NSClient++ at the host...).
>
> The thing is that I get a correct answer from C:, but U: gives me the error
> "Return code of 139 is out of bounds".
>
> So obviously I guess that it's not that what I should have done.
>
> I checked the log file at the Windows host and it only says -repeatedly:
> NSCA Configuration missmatch. I don't think it has anything to see with my
> problem though...
>
> Any hint?
>
> Thanks in advance.
>
>         Alejandro
>
>
> ==
> Alejandro Sanchez - alejandro.sanchez at ite.es
> IT Department
> Institute of Electrical Technology - www.ite.es
> Valencia - Spain
>
>
> ------------------------------------------------------------------------------
> Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
> powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
> easily build your RIAs with Flex Builder, the Eclipse(TM)based development
> software that enables intelligent coding and step-through debugging.
> Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20090323/4bb5768a/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
-------------- 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