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
NSClient and Passive Checks
Re: NSClient and Passive Checks
Turn on debugging in the nsca.cfg if it is not turned on:
Make sure you have:
Restart the daemon:
Check to see if you have anything useful in the system logs, that can lead us to the right direction:
Code: Select all
vi /usr/local/nagios/etc/nsca.cfg
Code: Select all
debug=1
Code: Select all
service xinetd restart
Code: Select all
tail /var/log/messages
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: NSClient and Passive Checks
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)
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
just figured it out, thanks for the help though
had to add this in the nsc.ini file
[NSCA Agent]
string_length=4096
had to add this in the nsc.ini file
[NSCA Agent]
string_length=4096
-
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: NSClient and Passive Checks
Ah yes, that would do it, OID's tend to be rather long, and sometimes the payload. ![Wink ;)](./images/smilies/icon_e_wink.gif)
![Wink ;)](./images/smilies/icon_e_wink.gif)