Page 1 of 1

NSClient++ using NSCA protocol

Posted: Sat Jul 13, 2013 11:19 pm
by agim
Hello,

I am trying to setup passive checks between Windows machines to Nagios XI using NSCA protocol. The config is almost done, but a have this error message at "nscp test" screen :

{{{
d rvice\NSClient++.cpp:960 Injecting: alias_cpu...
d rvice\NSClient++.cpp:960 Injecting: checkcpu...
d rvice\NSClient++.cpp:985 Result checkcpu: OK
d rvice\NSClient++.cpp:985 Result alias_cpu: OK
d lient\NSCAClient.cpp:429 Connection details: host: 217.244.24.230:5667, buffer
r_length: 512, time_delta: 0, password: my-passwd, encryption: xor(1), hostname: acami
, encoding: , ssl: ssl disabled
d lient\NSCAClient.cpp:435 Sending (data): host: acami, service: cpu_check, cod
e: 0, time: 1373756693, result: OK CPU Load ok.|'5m'=0%;80;90 '1m'=0%;80;90 '30s
'=0%;80;90
e de\socket/client.hpp:149 Failed to read data: End of file
d de\socket/client.hpp:356 Retrying attempt 0 of 3
e de\socket/client.hpp:149 Failed to read data: End of file
d de\socket/client.hpp:356 Retrying attempt 1 of 3
e de\socket/client.hpp:149 Failed to read data: End of file
d de\socket/client.hpp:356 Retrying attempt 2 of 3
e de\socket/client.hpp:149 Failed to read data: End of file
d de\socket/client.hpp:362 Retrying failed
e lient\NSCAClient.cpp:447 Error: Retry failed

At the server side this is the situation:

Jul 13 23:07:55 localhost xinetd[16203]: START: nsca pid=16709 from=::ffff:79.106.109.190
Jul 13 23:07:55 localhost xinetd[16709]: FAIL: nsca address from=::ffff:79.106.109.190
Jul 13 23:07:55 localhost xinetd[16203]: EXIT: nsca status=0 pid=16709 duration=0(sec)

I checked the password, encryption, firewall. All are OK!
What should I check first?
Thanks!

Re: NSClient++ using NSCA protocol

Posted: Mon Jul 15, 2013 9:23 am
by slansing
Can you share your nsclient.log file with us? It should be located in the nsclient base directory. If there is sensetive information in there, just send us a snippet of the log after you force a NSCA passive result.

Re: NSClient++ using NSCA protocol

Posted: Mon Jul 15, 2013 1:32 pm
by agim
Thanks for the reply!
Log file is here attached.

Re: NSClient++ using NSCA protocol

Posted: Mon Jul 15, 2013 2:29 pm
by slansing
What version of NSClient++ and Nagios Xi are you using? Have you been able to run any active checks to this nsclient system or have you only tried with NSCA?

Re: NSClient++ using NSCA protocol

Posted: Tue Jul 16, 2013 7:01 am
by agim
NSClient++ Ver. 04.1.90
NagiosXI Ver. 2012R2.2
I have tried only with NSCA on two PC (Windows 2003 server and XP). Same situation.

Re: NSClient++ using NSCA protocol

Posted: Tue Jul 16, 2013 8:37 am
by agim
I activated and tested active checks (check_nt) right now. This works fine!
Passive checks not!

Re: NSClient++ using NSCA protocol

Posted: Tue Jul 16, 2013 10:53 am
by lmiltchev
Make sure you have the windows server's IP in the "only_from" line in the "/etc/xinetd.d/nsca" on the Nagios XI server. After modifying the file, restart the daemon:

Code: Select all

service xinetd restart
If this doesn't help, post the "nsclient.ini" file (hide the sensitive info).

Note: I am moving this topic to the General XI Support Forum, since it doesn't belong here.

Re: NSClient++ using NSCA protocol

Posted: Thu Jul 18, 2013 7:20 am
by agim
The problem is solved!
I have not correctly commented out the "only_from" ligne on /etc/xinetd.d/nsca condig file.
Thanks!

Re: NSClient++ using NSCA protocol

Posted: Thu Jul 18, 2013 9:06 am
by slansing
Ah that would do it!