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!
NSClient++ using NSCA protocol
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: NSClient++ using NSCA protocol
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
Thanks for the reply!
Log file is here attached.
Log file is here attached.
You do not have the required permissions to view the files attached to this post.
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: NSClient++ using NSCA protocol
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
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.
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
I activated and tested active checks (check_nt) right now. This works fine!
Passive checks not!
Passive checks not!
Re: NSClient++ using NSCA protocol
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:
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.
Code: Select all
service xinetd restartNote: I am moving this topic to the General XI Support Forum, since it doesn't belong here.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: NSClient++ using NSCA protocol
The problem is solved!
I have not correctly commented out the "only_from" ligne on /etc/xinetd.d/nsca condig file.
Thanks!
I have not correctly commented out the "only_from" ligne on /etc/xinetd.d/nsca condig file.
Thanks!
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: NSClient++ using NSCA protocol
Ah that would do it!