I'm currently running nsca under inetd and everything works just fine,
but only once. when nsca has recieved it's first service result, it
stops checking for more. <br><br>when trying nsca I have sent results fron the localhost with the command:<br><br>echo "nagios:testmessage:0:test" | /app/nsca/2.6/sbin/send_nsca -H localhost -d : -c /app/nsca/2.6/etc/send_nsca.cfg
<br><br>This works and the result is passed to nagios where it shows up.<br>The next time i send the command i get:<br><br>Error: Timeout after 10 seconds<br><br>Because it works the first time I don't think it's a permisson issue. 
<br><br>I
don't know why this happends, but because I'm not able to fix it and
nobody seems to have a solution I'm going to try to work around the
problem. <br><br>How about a solution where nagios restarts nsca every time i recieves a service result. <br>I
don't know if it's possible to do it the way I'm trying to in the
example below. Maybe the command is'nt used when nagios only uses
passive checks. <br>Anyone who got any ideas how to make this work or maybe another solution for my problem?<br><br>#########################<br>#services.cfg          #<br>#########################    <br>define service{<br>        name                                 generic-service 
<br>        active_checks_enabled          1              <br>        passive_checks_enabled       1        <br>        parallelize_check                 1           <br>        obsess_over_service             1             <br>        check_freshness                  0                    
<br>        notifications_enabled           1                     <br>        event_handler_enabled        1                <br>        flap_detection_enabled          1                     <br>        process_perf_data               1             <br>        retain_status_information       1             
<br>        retain_nonstatus_information    1   <br>        register                        0               <br>        }<br><br>define service{<br>        use                             generic-service<br>        name                            passive_service
<br>        active_checks_enabled           0<br>        passive_checks_enabled          1          <br>        flap_detection_enabled          0<br>        register                        0          <br>        is_volatile                     0
<br>        check_period                    24x7<br>        max_check_attempts              1<br>        normal_check_interval           5<br>        retry_check_interval            1<br>        check_freshness                 0
<br>        notification_interval           120<br>        notification_period             24x7<br>        notification_options            w,u,c,r<br>        stalking_options                w,c,u<br>        }<br><br>define service{
<br>        use                             passive_service<br>        service_description             testmessage<br>        host_name                       nagios,windows<br>        check_command                   restart_nsca
<br>        contact_groups                  test-admins<br>        }<br><br>#########################<br>#checkcommands.cfg       #<br>#########################<br><br>define command{<br>        command_name restart_nsca<br>        command_line /app/init.d/nsca-
2.6 restart<br>        }<br clear="all"><br>-- <br>Daniel Nyman<br><span class="smalltext">--<br>Nagios 2.3<br>Nagios-plugins 1.4.2<br>NagiosGraph 0.8<br>NSCA 2.6</span><br><br>