NSClient and Passive Checks

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
blariv
Posts: 188
Joined: Wed Sep 26, 2012 11:55 am

NSClient and Passive Checks

Post 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
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: NSClient and Passive Checks

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
blariv
Posts: 188
Joined: Wed Sep 26, 2012 11:55 am

Re: NSClient and Passive Checks

Post 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)
blariv
Posts: 188
Joined: Wed Sep 26, 2012 11:55 am

Re: NSClient and Passive Checks

Post 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
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: NSClient and Passive Checks

Post by slansing »

Ah yes, that would do it, OID's tend to be rather long, and sometimes the payload. ;)
Locked