Page 1 of 1

Encryption issues NSCA

Posted: Mon Dec 29, 2014 5:27 am
by Robin888
Some how i can't get my NSCA communication from my windows client to my nagios core server encrypted.

If i enable encryption (by setting it both to the same number) in my nsclient.ini, and nsca.cfg my log says: "received invalid packet type/version from client - possibly due to client using wrong password or crypto algorithm?"

i tried different encryption methods.
My communication works fine whit out encryption! (Setting both sites to 0)

I'm using Nagios Core 4.0.8 whit NSCA 2.9.1. and NSClient ++ 0.4.3


nsclient.ini

Code: Select all

[/modules]
CheckSystem=1
CheckDisk=1
CheckExternalScripts=1
CheckHelpers=1
CheckNSCP = 1
CheckEventLog = 1
Scheduler=1
NSCAClient=1


[/settings/NSCA/client]
hostname=${host}


[/settings/NSCA/client/targets/default]
address=11.22.33.44
nsca_port=5667
encryption=1
password=mypass
nsca.cfg

Code: Select all

password =  mypass

decryption_method=1

any help will be appreciated

regards,

Re: Encryption issues NSCA

Posted: Mon Dec 29, 2014 10:25 am
by scottwilkerson
Is NCPA running under xinetd or initd?

If xinetd, you you have your host in the only_from field in /etc/xinetd.d/nsca ?

Re: Encryption issues NSCA

Posted: Tue Dec 30, 2014 11:12 am
by Robin888
Hi Scot thanks for your reply.

i have my local host and client ip defined in the only_from field.

i found out i didn't had libmcrypt installed so i did that.
Not sure if i had installed that before i installed nsca, cause it still isn't working.

Re: Encryption issues NSCA

Posted: Tue Dec 30, 2014 11:29 am
by Robin888
guess that was the case..

recompiled nsca and its working.

Thanks

Re: Encryption issues NSCA

Posted: Tue Dec 30, 2014 11:38 am
by tmcdonald
Great to hear! I'll be closing this thread now, but feel free to open another if you need anything in the future!