NSCA Connection problem

me me at wizkid.homeip.net
Sun Jul 18 20:55:06 CEST 2004


hi chris,

Chris Hemsley wrote:
> To troubleshoot, I've started the nsca daemon manually with debug enabled:
> # nsca -c /etc/nagios/nsca.cfg -d
> 
> I then try to send a passive check to it using:
> # printf "myserver\tname\t1\tTest Message\n"  | send_nsca 127.0.0.1  -c /tmp/ch
> 
> ( where /tmp/ch specified encryption_method=1 and nsca.cfg specified
> decryption_method=1.)
> 
> Jul 18 07:19:44 adm201 nsca[1810]: Connection from 172.16.2.200 port 19102
> Jul 18 07:19:44 adm201 nsca[1810]: Host address checks out ok
> Jul 18 07:19:44 adm201 nsca[1810]: Handling the connection...
> Jul 18 07:19:45 adm201 nsca[1810]: Received invalid packet
> type/version from client -
> possibly due to client using wrong password or crypto algorithm?
> Jul 18 07:19:45 adm201 nsca[1810]: End of connection or could not read
> request from cl
> ient...

i am missing the option -d "\" for defining the delimiter in your test

Usage: send_nsca -H <host_address> [-p port] [-to to_sec] [-d delim] [-c 
config_file]

try something like:
echo "hostname;HTTP;0;just_testing" | send_nsca -H localhost -d ";" -c 
config_file


greetings
ruediger


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
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