Page 1 of 6

Plugins Helps

Posted: Thu Jul 21, 2016 9:39 pm
by kwhogster
Have issues with getting Nagios Plugins to work on my Nagios 4.1.1 platform.
Run Raspibain on Raspberry Pi

I downloaded Nagios-plugins-2.1.1 into a tmp folder used tar to extract the files into a folder Nagios-plugins-2.1.1
Ran the following commands
tar xzf Nagios-plugins-2.1.1.tar.gz

./configure --with-Nagios-user-Nagios --with-Nagios-group=Nagios
make
make install

/etc/init.d/Nagios reload

service Nagios restart

Then went to my browser and connected to Nagios logged in and to my surprise I saw nothing different.

I also tried this

apt-get install Nagios-nrpe-server
vi /etc/Nagios/nrpe.cfg
service Nagios-nrpe-server restart

apt-get install Nagios-nrpe-plugin
vi /etc/Nagios-plugins/config/check_nrpe.cfg

then this is where I had to stop on this

The instructions told me to do this command

vi /etc/nagios3/conf.d/nrpe.cfg this is not valid I am running nagios 4.1.1

I tried to find the file no luck not sure what this file ins I found the one from the server install but the instruction are different.
This is the link I used for a guide
http://xmodulo.com/nagios-remote-plugin ... linux.html






What am I doing wrong?
What am I missing?


Thanks

Tom

Re: Plugins Helps

Posted: Fri Jul 22, 2016 11:29 am
by mcapra
kwhogster wrote: Then went to my browser and connected to Nagios logged in and to my surprise I saw nothing different.
Compiling the plugins shouldn't change anything about the Nagios Core GUI. What where you expecting to see?

I'm a bit confused. Are you trying to install the Nagios plugins package for your Core installation? NRPE is an agent that is installed on remote machines that you want to monitor. It's not typically installed on the Nagios Core machine (though you can do that).

Here's our official document on setting up NRPE. This document was written for Nagios XI, but also applies to Nagios Core:
https://assets.nagios.com/downloads/nag ... _Agent.pdf

Re: Plugins Helps

Posted: Fri Jul 22, 2016 11:56 am
by kwhogster
Thanks for responding.

Followed the steps in the doc you provided but it failed

root@raspberrypi:/tmp/linux-nrpe-agent# ./fullinstall
Raspbian is not currently supported. Please use either Red Hat, CentOS, Oracle Linux, SUSE Enterprise, OpenSUSE, Ubuntu, or Debian.

I am using a rapsbery pi for Nagios is there another method for Raspbian?

Thank you

Tom

Re: Plugins Helps

Posted: Fri Jul 22, 2016 12:25 pm
by mcapra
Again, if you could shed some light on exactly what you're looking to achieve we will be able to give a better answer.
kwhogster wrote: The instructions told me to do this command

vi /etc/nagios3/conf.d/nrpe.cfg this is not valid I am running nagios 4.1.1

I tried to find the file no luck not sure what this file ins
That file is (I believe) intended to be a Nagios object definition.
https://assets.nagios.com/downloads/nag ... tions.html

The NRPE guide on this Raspberry Pi forum post looks a little more modern:
https://www.raspberrypi.org/forums/view ... 6&t=105002

Re: Plugins Helps

Posted: Fri Jul 22, 2016 12:42 pm
by kwhogster
root@raspberrypi:/tmp/linux-nrpe-agent# ls /usr/local/nagios/etc
cgi.cfg htpasswd.users nagios.cfg~ resource.cfg
cgi.cfg~ nagios.cfg objects resource.cfg~


I do not have a folder named hosts or services as you can see.

looking at the raspberry nrpe instructions now

I started the process from the link provided
No luck

the ,/configure failed at the end could not find SSL libraries.

Re: Plugins Helps

Posted: Fri Jul 22, 2016 1:52 pm
by lmiltchev
Try running the following command first:

Code: Select all

sudo apt-get install openssl libssl-dev
Did this help?

Re: Plugins Helps

Posted: Fri Jul 22, 2016 2:15 pm
by kwhogster
root@raspberrypi:/tmp/nrpe-3.0# sudo apt-get install openssl libssl-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
openssl is already the newest version.
openssl set to manually installed.
The following NEW packages will be installed:
libssl-dev libssl-doc
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 2,223 kB of archives.
After this operation, 6,245 kB of additional disk space will be used.
Err http://raspbian.mirrors.wvstateu.edu/raspbian/ jessie/main libssl-dev armhf 1.0.1k-3+deb8u1
404 Not Found
Err http://raspbian.mirrors.wvstateu.edu/raspbian/ jessie/main libssl-doc all 1.0.1k-3+deb8u1
404 Not Found
E: Failed to fetch http://raspbian.mirrors.wvstateu.edu/ra ... _armhf.deb 404 Not Found

E: Failed to fetch http://raspbian.mirrors.wvstateu.edu/ra ... u1_all.deb 404 Not Found

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Re: Plugins Helps

Posted: Sat Jul 23, 2016 5:44 pm
by kwhogster
Hello

I decided to move to running Nagios Core 4.1.1 on Ubuntu Server 16.04.1

I have the plugins installed but still do not see any difference

I will try to add a plugin that I found later this weekend

Thanks

Re: Plugins Helps

Posted: Sun Jul 24, 2016 11:04 pm
by Box293
kwhogster wrote:I have the plugins installed but still do not see any difference
Are you still experiencing issues?

Re: Plugins Helps

Posted: Mon Jul 25, 2016 8:13 pm
by kwhogster
Hello

I am making some headway on this

I used these instructions to setup NRPE
http://xmodulo.com/nagios-remote-plugin ... linux.html

I am stuck on this section

Step Three: Adding Host and Command Definition

Next, define remote host(s) and commands to execute remotely on them.

The following shows sample definitions of a remote host a command to execute on the host. Naturally, your configuration will be adjusted based on your requirements. The path to the file is slightly different for Debian-based and RedHat-based systems. But the content of the files are identical.

On Debian, Ubuntu or Linux Mint:

# vim /etc/nagios3/conf.d/nrpe.cfg

On CentOS, Fedora or RHEL:

# vim /etc/nagios/objects/nrpe.cfg

It wants to define a HOST and SERVICE in the NRPE.CFG file

I am running Nagios 4.1.1 Core on Ubuntu Server 16.04.1

Do not have the above folders

My NRPE.CFG file is located here /etc/Nagios/nrpe.cfg

It does not have any sample HOST or SERVICE entries

Not sure what to do next

Any ideas?

Thank you

Tom