nsca results don't reach nagios
    Pankaj 
    penguinhead at gmail.com
       
    Wed Jan  6 15:10:44 CET 2010
    
    
  
Hi,
I have configured a nagios and nsca server, When I run the service check I
get the following message in syslog:
>Jan  6 09:06:58 cl-t036-222cl nsca[31340]: Connection from 10.1.233.10 port
48077
>Jan  6 09:06:58 cl-t036-222cl nsca[31340]: Handling the connection...
>Jan  6 09:06:58 cl-t036-222cl nsca[31340]: SERVICE CHECK -> Host Name:
'localhost', Service Description: 'TestMessage', Return Code: '1', Output:
'Service in warning state'command_file=/var/lib/nagios3/rw/nagios.cmd
>Jan  6 09:06:58 cl-t036-222cl nsca[31340]: End of connection...
The results reach the command_file=/var/lib/nagios3/rw/nagios.cmd
> cat /var/lib/nagios3/rw/nagios.cmd
>[1262786818] PROCESS_SERVICE_CHECK_RESULT;localhost;TestMessage;1;Service
in warning state
However the results of my passive checks do not reach nagios. The nagios
error log files say nothing about the check.  What could I be doing wrong?
Here are my conf files:
>>>>>>>>nagios.cfg
cat nagios.cfg | grep passive | grep -v '#'
log_passive_checks=1
accept_passive_service_checks=1
accept_passive_host_checks=1
translate_passive_host_checks=0
passive_host_checks_are_soft=0
command_file=/var/lib/nagios3/rw/nagios.cmd
>>>>>>>>nsca.cfg
cat /etc/nsca.cfg | grep -v '#'
pid_file=/var/run/nsca.pid
server_port=5667
server_address=10.1.233.52
nsca_user=nagios
nsca_group=nogroup
debug=1
command_file=/var/lib/nagios3/rw/nagios.cmd
alternate_dump_file=/var/run/nagios/nsca.dump
aggregate_writes=0
append_to_file=0
max_packet_age=30
decryption_method=1
>>>>>>> localhost_nagios2.cfg
define host{
        use                     generic-host            ; Name of host
template to use
        host_name               localhost
        alias                   localhost
        address                 127.0.0.1
        }
define command{
        command_name check_dummy
        command_line $USER1$/check_dummy $ARG1$
        }
define service{
         use                    generic-service
         name                   passive_service
         active_checks_enabled  0
         passive_checks_enabled 1                               # We want
only passive checking
         flap_detection_enabled 0
         register               0                               # This is a
template, not a real service
         is_volatile            0
         check_period           24x7
         max_check_attempts     1
         normal_check_interval  5
         retry_check_interval   1
         check_freshness        0
         contact_groups         admins
         check_command          check_dummy!0
         notification_interval  120
         notification_period    24x7
         notification_options   w,u,c,r
         stalking_options       w,c,u
         }
define service{
         use                 passive_service
         service_description TestMessage
         host_name           localhost
         }
>>>>>>>>>>>>> The service check
#!/bin/sh
HOST=localhost
SERVICE="TestMessage"
NSCAHOST=10.1.233.52
echo -e "$HOST\t$SERVICE\t1\tService in warning state" |
/usr/sbin/send_nsca -H $NSCAHOST -c /etc/send_nsca.cfg
exit 0
-- 
( 2b || ! 2b )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20100106/cf387b5c/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
-------------- next part --------------
_______________________________________________
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