Encryption issues NSCA

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Robin888
Posts: 3
Joined: Mon Dec 29, 2014 4:08 am

Encryption issues NSCA

Post 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,
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Encryption issues NSCA

Post 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 ?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Robin888
Posts: 3
Joined: Mon Dec 29, 2014 4:08 am

Re: Encryption issues NSCA

Post 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.
Robin888
Posts: 3
Joined: Mon Dec 29, 2014 4:08 am

Re: Encryption issues NSCA

Post by Robin888 »

guess that was the case..

recompiled nsca and its working.

Thanks
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Encryption issues NSCA

Post 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!
Former Nagios employee
Locked