NSClient++ Help (#1) - Timeout readig NS-client packet (#744) - Message List

Timeout readig NS-client packet

Hi,

I´m hoping you all can help me. I have a server (Windows 2003) that no matter what I do, I can´t get the NSClient to work with Nagios.

I´ve tried changing many configs, but the timeout error is always shown. This is the error I keep getting:

"NSClientListener.cpp(305) Timeout reading NS-client packet (increase socket_timeout)."

I´ve tried changing the default socket time out to many different values, and even using the -t in check_nt command, but nothing happens. In Nagios, the message I receive is:

" No data was received from host! could not fetch information from server"

I´ve disabled firewall, antivirus, installed nightly builds and nothing. I am able to telnet to port 12489 when the service is started.

Anyone can help me in that?

Many thanks.

  • Message #2074

    Have you followed the guide for getting started with nagios?

    Michael Medin

    • Message #2077

      Hi Michael..

      Yes I have. I have in my park other 30 servers working fine. This is a particular one that is not working.

      • Message #2081

        Right... Then I can rule out the obvious.

        Well... Could you try enabling debug log and see if we have something more? Or preferably run: "nsclient++ /test" and give me the output.

        Michael Medin

        • Message #2082

          There you have it.

          2011-02-17 15:27:04: message:modules\FileLogger\FileLogger.cpp:86: Starting to log for: NSClient++ - 0.3.9.286 2011-02-16
          2011-02-17 15:27:04: message:CACHENSClient++.cpp:445: Booting: NSClientpp (Nagios) 0.3.9.286 2011-02-16 x64
          2011-02-17 15:27:04: debug:CACHENSClient++.cpp:1216: Enabling debug mode...
          2011-02-17 15:27:04: debug:CACHENSClient++.cpp:557: Attempting to start NSCLient++ - 0.3.9.286 2011-02-16
          2011-02-17 15:27:04: debug:CACHENSClient++.cpp:1007: Loading plugin: CheckDisk...
          2011-02-17 15:27:04: debug:CACHENSClient++.cpp:1007: Loading plugin: Event log Checker....
          2011-02-17 15:27:04: debug:CACHENSClient++.cpp:1007: Loading plugin: Helper function...
          2011-02-17 15:27:04: debug:CACHENSClient++.cpp:1007: Loading plugin: CheckSystem...
          2011-02-17 15:27:04: debug:CACHENSClient++.cpp:1007: Loading plugin: File logger...
          2011-02-17 15:27:04: debug:CACHEmodules\CheckSystem\PDHCollector.cpp:73: Autodetected w2k or later, using w2k PDH counters.
          2011-02-17 15:27:04: message:CACHEmodules\FileLogger\FileLogger.cpp:87: Log path is: C:\Program Files\NSClient++\\nsclient.log
          2011-02-17 15:27:04: debug:CACHEmodules\CheckSystem\PDHCollector.cpp:110: Using index to retrive counternames
          2011-02-17 15:27:04: debug:CACHENSClient++.cpp:1007: Loading plugin: NSClient server...
          2011-02-17 15:27:04: debug:NSClient++.cpp:709: NSCLient++ - 0.3.9.286 2011-02-16 Started!
          2011-02-17 15:27:04: debug:include\Socket.h:683: Bound to: 0.0.0.0:12489
          2011-02-17 15:27:04: debug:modules\CheckSystem\PDHCollector.cpp:130: Found countername: CPU:    \Processor(_total)\% Processor Time
          2011-02-17 15:27:04: message:NSClient++.cpp:461: Using settings from: INI-file
          2011-02-17 15:27:04: debug:modules\CheckSystem\PDHCollector.cpp:131: Found countername: UPTIME: \System\System Up Time
          2011-02-17 15:27:04: message:NSClient++.cpp:462: Enter command to inject or exit to terminate...
          2011-02-17 15:27:04: debug:modules\CheckSystem\PDHCollector.cpp:132: Found countername: MCL:    \Memory\Commit Limit
          2011-02-17 15:27:04: debug:modules\CheckSystem\PDHCollector.cpp:133: Found countername: MCB:    \Memory\Committed Bytes
          2011-02-17 15:28:25: error:modules\NSClientListener\NSClientListener.cpp:305: Timeout reading NS-client packet (increase socket_timeout).
          2011-02-17 15:28:46: error:modules\NSClientListener\NSClientListener.cpp:305: Timeout reading NS-client packet (increase socket_timeout).
          2011-02-22 18:09:36: message:modules\FileLogger\FileLogger.cpp:86: Starting to log for: NSClient++ - 0.3.9.286 2011-02-16
          2011-02-22 18:09:36: message:CACHENSClient++.cpp:445: Booting: NSClientpp (Nagios) 0.3.9.286 2011-02-16 x64
          2011-02-22 18:09:36: debug:CACHENSClient++.cpp:1216: Enabling debug mode...
          2011-02-22 18:09:36: debug:CACHENSClient++.cpp:557: Attempting to start NSCLient++ - 0.3.9.286 2011-02-16
          2011-02-22 18:09:36: debug:CACHENSClient++.cpp:1007: Loading plugin: CheckDisk...
          2011-02-22 18:09:36: debug:CACHENSClient++.cpp:1007: Loading plugin: Event log Checker....
          2011-02-22 18:09:36: debug:CACHENSClient++.cpp:1007: Loading plugin: Helper function...
          2011-02-22 18:09:36: debug:CACHENSClient++.cpp:1007: Loading plugin: CheckSystem...
          2011-02-22 18:09:36: debug:CACHENSClient++.cpp:1007: Loading plugin: File logger...
          2011-02-22 18:09:36: debug:CACHEmodules\CheckSystem\PDHCollector.cpp:73: Autodetected w2k or later, using w2k PDH counters.
          2011-02-22 18:09:36: message:CACHEmodules\FileLogger\FileLogger.cpp:87: Log path is: C:\Program Files\NSClient++\\nsclient.log
          2011-02-22 18:09:36: debug:CACHEmodules\CheckSystem\PDHCollector.cpp:110: Using index to retrive counternames
          2011-02-22 18:09:36: debug:CACHENSClient++.cpp:1007: Loading plugin: NSClient server...
          2011-02-22 18:09:36: debug:NSClient++.cpp:709: NSCLient++ - 0.3.9.286 2011-02-16 Started!
          2011-02-22 18:09:36: debug:include\Socket.h:683: Bound to: 0.0.0.0:12489
          2011-02-22 18:09:36: message:NSClient++.cpp:461: Using settings from: INI-file
          2011-02-22 18:09:36: debug:modules\CheckSystem\PDHCollector.cpp:130: Found countername: CPU:    \Processor(_total)\% Processor Time
          2011-02-22 18:09:36: message:NSClient++.cpp:462: Enter command to inject or exit to terminate...
          2011-02-22 18:09:36: debug:modules\CheckSystem\PDHCollector.cpp:131: Found countername: UPTIME: \System\System Up Time
          2011-02-22 18:09:36: debug:modules\CheckSystem\PDHCollector.cpp:132: Found countername: MCL:    \Memory\Commit Limit
          2011-02-22 18:09:36: debug:modules\CheckSystem\PDHCollector.cpp:133: Found countername: MCB:    \Memory\Committed Bytes
          2011-02-22 18:10:57: error:modules\NSClientListener\NSClientListener.cpp:305: Timeout reading NS-client packet (increase socket_timeout).
          2011-02-22 18:11:14: error:modules\NSClientListener\NSClientListener.cpp:305: Timeout reading NS-client packet (increase socket_timeout).
          
          • Message #2085

            Just out of curiosity... what command are you running to poll NSClient++ check_nt or check_nrpe?

            Seems to me that "No data arrives" so I would guess some missmatch in the data. You might wanna telnet in and paste a command (something alng the lines of:

            2&<password>&<arguments><CR>
            

            I can lookup the proper syntax when I get home (tomorrow)

            Michael Medin

            • Message #2086

              To clearify my check_nt vs check_nrpe question. check_nrpe uses the NRPEListsner module where as the check_nt command uses the NSCLientLIstsner module (different ports) in this case you "should" be using chekc_nt...

              Michael Medin

              • Message #2087

                Yep, you´re right. I´m using check_nt. These are the commmands I used in the test.. ./check_nt -H 10.0.0.13 -p 12489 -v UPTIME ./check_nt -H 10.0.0.13 -p 12489 -v USEDDISKSPACE -d SHOWALL -l c

Subscriptions