Page 1 of 1

NSClient and Passive Checks

Posted: Mon Nov 26, 2012 8:49 am
by blariv
hi,

having trouble getting passive checks to show up in unconfigured objects. I get the following output from the nsclient log in windows.

2012-11-26 08:45:06: debug:modules\NSCAAgent\NSCAThread.cpp:272: Sending to server...
2012-11-26 08:45:06: debug:modules\NSCAAgent\NSCAThread.cpp:279: Looked up 10.3.35.139 to 10.3.35.139
2012-11-26 08:45:07: debug:modules\NSCAAgent\NSCAThread.cpp:356: Finnished sending to server...

I also do not show anything in the nagios.log.

not sure what i'm missing.

config is this.

centos 6.3 64bit
manual install of XI - 2012R1.2
no special config

Re: NSClient and Passive Checks

Posted: Mon Nov 26, 2012 11:13 am
by lmiltchev
Turn on debugging in the nsca.cfg if it is not turned on:

Code: Select all

vi /usr/local/nagios/etc/nsca.cfg
Make sure you have:

Code: Select all

debug=1
Restart the daemon:

Code: Select all

service xinetd restart
Check to see if you have anything useful in the system logs, that can lead us to the right direction:

Code: Select all

tail /var/log/messages

Re: NSClient and Passive Checks

Posted: Mon Nov 26, 2012 11:18 am
by blariv
I get this everytime the host says finished sending

Nov 26 11:16:45 nagiosxi xinetd[3293]: START: nsca pid=3723 from=::ffff:10.3.38.172
Nov 26 11:16:45 nagiosxi nsca[3723]: Handling the connection...
Nov 26 11:16:46 nagiosxi nsca[3723]: End of connection...
Nov 26 11:16:46 nagiosxi xinetd[3293]: EXIT: nsca status=0 pid=3723 duration=1(sec)

Re: NSClient and Passive Checks

Posted: Mon Nov 26, 2012 12:57 pm
by blariv
just figured it out, thanks for the help though

had to add this in the nsc.ini file

[NSCA Agent]

string_length=4096

Re: NSClient and Passive Checks

Posted: Mon Nov 26, 2012 1:04 pm
by slansing
Ah yes, that would do it, OID's tend to be rather long, and sometimes the payload. ;)