NSCA only accepts first check
Andrew M. Lyons
lyonsam at accre.vanderbilt.edu
Thu Aug 24 22:05:00 CEST 2006
Thought I would forward along this fix. It works fine after doing this,
but we had to add nsca to /etc/services as well.
Thanks for the help!
Best,
-Andrew
Derek Olsen wrote:
>
> Andrew.
> Have you verified if the nsca port is open on the monitor host after
> you've submitted the first passive check?
>
> telnet 127.0.0.1 5667
> Trying 127.0.0.1...
> Connected to 127.0.0.1.
> Escape character is '^]'.
>
>
> It might help you determine where the problem is if the port closes
> after the first attempt. It sounds like your running nsca in daemon
> mode you might also try running it out of inetd to see if you get any
> different behavior. Here is my xinetd nsca config
>
> service nsca
> {
> flags = REUSE
> socket_type = stream wait = no
> user = nagios
> group = nagios
> server = /usr/sbin/nsca
> server_args = -c /etc/nagios/nsca.cfg --inetd
> log_on_failure += USERID
> disable = no
> port = 5667
> }
>
>
>
> Anyhoo i hope i've provided some useful suggestions to narrow down
> your issue.
> Deet.
>> Hi all,
>>
>> I'm trying to configure nsca, and I've run into a problem: NSCA only
>> accepts the first passive check that is sent to it, and all subsequent
>> checks fail.
>>
>> first check:
>> [18:05:02]$ echo -e "vmp161.vampire\tMyrinet Connectivity\t0\tBLAH\n"
>> | ./src/send_nsca -H monitor -c nsca.cfg
>> 1 data packet(s) sent to host successfully.
>>
>> second try:
>> [18:11:29]$ echo -e "vmp161.vampire\tMyrinet Connectivity\t0\tBLAH\n"
>> | ./src/send_nsca -H monitor -c nsca.cfg
>> Error: Timeout after 10 seconds
>>
>> After restarting the nsca daemon on the monitoring host, it will again
>> accept a single check, and all subsequent checks will timeout.
>>
>> The nsca.cfg on the remote host has only a password entry. Here are
>> the relevant bits from the nsca.cfg on the nagios server(monitor):
>>
>> pid_file=/var/run/nsca.pid
>> server_port=<the port>
>> server_address=<the addr>
>> nsca_user=nagios
>> nsca_group=nagios
>> debug=1
>> command_file=/var/log/nagios/rw/nagios.cmd
>> alternate_dump_file=/var/log/nagios/rw/nsca.dump
>> aggregate_writes=0
>> append_to_file=0
>> max_packet_age=30
>> password=<the pw>
>> decryption_method=1
>>
>> Any help would be appreciated. Thanks!
>>
>> Best,
>>
>> Andrew
>>
>> -------------------------------------------------------------------------
>> Using Tomcat but need to do more? Need to support web services, security?
>> Get stuff done quickly with pre-integrated technology to make your job
>> easier
>> Download IBM WebSphere Application Server v.1.0.1 based on Apache
>> Geronimo
>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>> _______________________________________________
>> Nagios-users mailing list
>> Nagios-users at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/nagios-users
>> ::: Please include Nagios version, plugin version (-v) and OS when
>> reporting any issue. ::: Messages without supporting info will risk
>> being sent to /dev/null
>>
>
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list