LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-09-2008, 08:32 AM   #1
helptonewbie
Member
 
Registered: Aug 2006
Location: England Somewhere
Distribution: Mandriva, PCLinuxOS, Karoshi, Suse, Redhat, Ubuntu
Posts: 518

Rep: Reputation: 39
Question Nagios...NRPE and SSL communication...Must be a how to somewhere??


Hi All,
Basically it should be quite obvious but i've been googling and i can't believe that i can't find a guide or howto anywhere, as far as i can see for explaining nagios nrpe and ssl. I may just go and use a stunnel route if i don't get much info here...or maybe thats the route your meant to take with nagios...i don't think from what i've seen its even explained at all in the nagios doc's...correct me if i'm wrong.

But at the moment the easiest method would be for me to set-up stunnel and create my own SSL CA for my certificates etc etc.... God idea?? Other Methods??? Actual method that perhaps is preferred by the nagios nation??

Cheers,
 
Old 05-10-2008, 02:31 AM   #2
thedonkdonk
Member
 
Registered: Oct 2005
Location: San Antonio, TX
Distribution: Fedora, RHEL 6, CentOS 6, Debian 6, Arch, Gentoo
Posts: 136

Rep: Reputation: 16
What you need to do is read http://nagios.sourceforge.net/docs/nrpe/NRPE.pdf. Take a look at section 6. Basicly, you need to install OpenSSL as well as NRPE. Your NRPE server and client need to be compatiable versions. If you are still stuck post some log files.
 
Old 05-14-2008, 07:57 AM   #3
helptonewbie
Member
 
Registered: Aug 2006
Location: England Somewhere
Distribution: Mandriva, PCLinuxOS, Karoshi, Suse, Redhat, Ubuntu
Posts: 518

Original Poster
Rep: Reputation: 39
Its ok all sorted thanks. i'm SSL'd to the bone
 
Old 05-14-2008, 09:50 AM   #4
helptonewbie
Member
 
Registered: Aug 2006
Location: England Somewhere
Distribution: Mandriva, PCLinuxOS, Karoshi, Suse, Redhat, Ubuntu
Posts: 518

Original Poster
Rep: Reputation: 39
I do have one other thing, can you sudo commands one by one or is the only way to run any commands sudo, to have everything in the directory sudo. As it doesn't seem possible if you have commands outside of the sudo directory you specify in nrpe.cfg to run as normal, they seem to fail. So it looks to me like you either have sudo for everything or nothing at all. Unless its possible in the nrpe.cfg when setting commands to run if you can do this..:-
command[check_ping]=/usr/bin/sudo /usr/local/nagios/libexec/check_ping -H X.X.X.X -w 300.0,80% -c 500.0.0,100% -p 1

Obviously thats just an example, but i want to know if that works to obviously be able to have sudo run on a per command basis?

I couldn't get this working but maybe i set-up the sudo paremeters incorrectly in the /etc/sudoers file.
IE if this is possible what would be a correct entry in the sudoers file for this to work, i would have thought something like...
nagios ALL=(ALL) NOPASSWD: /usr/local/nagios/libexec/check_ping

Would work??

Cheers
 
Old 05-14-2008, 10:08 AM   #5
helptonewbie
Member
 
Registered: Aug 2006
Location: England Somewhere
Distribution: Mandriva, PCLinuxOS, Karoshi, Suse, Redhat, Ubuntu
Posts: 518

Original Poster
Rep: Reputation: 39
Forget that, i've worked out it is possible for whatever reason the way i tested it before i must have made a slight mistake somewhere. Typical


Thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Nagios/nrpe: SSL Issues Killbot_5000 Linux - Security 18 09-21-2010 05:27 PM
SSL probelm during nagios nrpe installation kiruthika Linux - Newbie 0 07-09-2007 04:07 AM
nagios nrpe - "make all" fails with ssl neocontrol Linux - Server 4 06-01-2007 05:34 PM
nagios nrpe - "make all" fails with ssl neocontrol Linux - Server 0 06-01-2007 04:50 PM
Nagios NRPE twantrd Linux - Software 1 10-20-2004 08:24 AM


All times are GMT -5. The time now is 06:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration