problem with nrpe and ubuntu

This forum is intended for the discussion of Nagios plugin development. Feature requests, patches, bug fixes, and all types of development-related discussions are welcome!

NOTE: The SourceForge.net nagiosplug-devel mailing list has been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

problem with nrpe and ubuntu

Postby majed » Mon Oct 09, 2017 6:40 am

Peace,
I tried to add a command to nrpe.cfg and restart nrpe but on the remote machine it would write
Code: Select all
check_service not defined

i checked if there are other nrpe.cfg files but there aren't. I restarted the server and voila, it worked!
it means the nrpe demon is not restarting on ubuntu.
Version: 2.15
is this a problem with the plugin or should I contact Ubuntu?
Seek and you shall find, knock and it shall be opened, cry and you shall find comfort
majed
 
Posts: 86
Joined: Mon Mar 17, 2014 5:29 am

Re: problem with nrpe and ubuntu

Postby npolovenko » Mon Oct 09, 2017 10:32 am

Hello,@majed. Are you running nrpe as a service or under xinet.d?
Code: Select all
service nrpe status
or
service xinetd status

Can you try to shut down the nrpe from the command line and then turn it back on? Would the services work or say undefined?
I'd also recommend taking a look at the sys log in /var/log. Let us know if you see any nrpe related errors in there.
Have you considered removing the old NRPE and installing a new one(3.2.1)?
User avatar
npolovenko
 
Posts: 95
Joined: Mon May 15, 2017 5:00 pm

Re: problem with nrpe and ubuntu

Postby majed » Fri Oct 13, 2017 6:11 am

I can't stop nrpe, the service keeps running.
I do not want to install nrpe from source as that would need to be updated manually.
I contacted Ubuntu and they said that Ubuntu 16 will not update nrpe, either wait till spring of 2018 for Ubuntu 18 with a new nrpe version or upgrade to Ubuntu 17.0.4 with nrpe version 3.0.1
so I installed a test machine with Ubuntu 17.0.4 and installed nrpe, but it is getting compiled without ssl support. Do you know how to compile nrpe with ssl support using apt-get ?
Seek and you shall find, knock and it shall be opened, cry and you shall find comfort
majed
 
Posts: 86
Joined: Mon Mar 17, 2014 5:29 am

Re: problem with nrpe and ubuntu

Postby npolovenko » Mon Oct 16, 2017 10:51 am

@majed, How did you install NRPE on your Ubuntu? Can you provide a link to the manual that you used?
Our manual below uses --with-ssl flag to compile NRPE with SSL.
Code: Select all
https://support.nagios.com/kb/article.php?id=515#Ubuntu

Also, what exact command did you run to stop NRPE service? Is your NRPE running under xinetd or as a standalone service?
User avatar
npolovenko
 
Posts: 95
Joined: Mon May 15, 2017 5:00 pm


Return to Nagios Plugin Development

Who is online

Users browsing this forum: Bing [Bot] and 1 guest