
Hi

The folloowing error was corrected:

echo -e "Host\tService\tServiceOutput\tPerformanceData\n" | ./send_nsca
monitor2 -c /root/Snmp-Scripts/send_nsca.cfg
Connection refused by host
Error: Could not connect to host monitor2 on port 5667

Sorry to say that it was my fault.

Just changing 
    chown nagios /usr/local/nagios/etc/nsca.cfg
    chgrp nagios /usr/local/nagios/etc/nsca.cfg
    chmod 644 /usr/local/nagios/etc/nsca.cfg

worked OK

Dec 30 17:41:12 monitor2 nsca[662]: Handling the connection...
Dec 30 17:41:13 monitor2 nsca[662]: SERVICE CHECK -> Host Name: 'Host',
Service Description: 'Service', Return Code: '0', Output: 'PerformanceData'
Dec 30 17:41:13 monitor2 nsca[662]: End of connection...

Now my new question is: where this data is going to?

   ls -la /usr/local/nagios/etc/nsca.cfg
   -rw-r--r--    1 nagios   nagios       5199 Dec 29 21:02
/usr/local/nagios/etc/nsca.cfg

   lsof | grep nagios.cmd
   nagios    24899     root    6r  FIFO        3,2             1844163
/usr/local/nagios/var/rw/nagios.cmd

I've reading into nsca.c source file, but could not find for any clues to 
where nsca is sending its received data.

vi /usr/local/nagios/etc/nsca.cfg:

command_file=/usr/local/nagios/var/status.log
alternate_dump_file=/usr/local/nagios/var/rw/nsca.dump
debug=1
aggregate_writes=1
append_to_file=1



Regards


    Jose Dragone




This message powered by EMUmail.  http://EMUmail.com




-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Nagios-users mailing list
Nagios-users@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



