Secure check transmission from Nagios

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
sds54
Posts: 6
Joined: Tue Dec 10, 2013 3:02 am

Secure check transmission from Nagios

Post by sds54 »

Hello,

I would like to secure transmission between my Nagios server (ubuntu) and the remote hosts (linux and windows), i have already enable SSL, set iptables to only acccept check from the ip of my server,and follow the Security Considerations from nagios. I need to use external scripts and send external command, this is the problem!

What can i do more ?

Does Somebody has an idea ?

Add SSL certificate ? Is it possible ? Because i don't find clear information about that!



Thanks for yours answers !!
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Secure check transmission from Nagios

Post by sreinhardt »

Honestly, using external scripts and commands is not a huge huge deal with the steps you have already taken, and hopefully continue to take. You absolutely can use certificates and ssl depending on the check and\or agent you are running. If you must use a check that cannot be encrypted, you can always run an agent local to that network and use that to send back the data in an encrypted form.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
sds54
Posts: 6
Joined: Tue Dec 10, 2013 3:02 am

Re: Secure check transmission from Nagios

Post by sds54 »

Thank you sreinhardt for your answer,

I' m looking for information on google, or website of nsclient++,nrpe.
But i don't find official documentation about implentation of certificate based authentication in nagios.

I have only find this webpage, but i don't understand how add and configure nsclient on the nagios server!

Do you where can i find tutorials,documentations about that, may be somebody can post example of configuration files like nsc.ini or nrpe.cfg !!?

I think this may interest a lot of people worried about security.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Secure check transmission from Nagios

Post by slansing »

As shown here:

http://www.nsclient.org/nscp/discussion/topic/62

You should enable SSL in the nsc/nsclient.ini file, and restart the daemon in the windows services.msc listing.
sds54
Posts: 6
Joined: Tue Dec 10, 2013 3:02 am

Re: Secure check transmission from Nagios

Post by sds54 »

Hello slansing,

SSL is already enabled in my configuration files, but does not specify which certificate and key to use.
I have no informations about the syntax for adding the path and the key to use!!

Is that someone has already done?
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Secure check transmission from Nagios

Post by slansing »

This does not use certificates per se, using the SSL flags between the NRPE server, and a ssl compiled NRPE client is simply point to point encryption as NRPE already requires you to give it addresses from which it will accept commands. There are alternatives to using NRPE of course, you can check via SNMP, various passive agents (of which NRDS uses encryption over secure http) or even check_by_ssh, which uses ssh keys (this is what I think you are thinking of).
Locked