Installation

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
Khmerlinux
Posts: 14
Joined: Mon Feb 24, 2014 11:26 am

Installation

Post by Khmerlinux »

Hello,

I am very new to linux and nagios and want to learn more and implementation Nagios for a small network in my company. I have installed CentOS 6.5 and install Nagois4.0.2 everything went well doing the installation but I got stuck with the following error. I hope someone could help me.

I login as root and following the document on How-to-install-nagios-on centOS. I performed the following:

make all
make install
make install-init
make install-config
make install-commandmode
make install-webconf

cp -R contrib/eventhandlers/ /usr/local/nagios/libexec/
chown -R nagios:nagios /usr/local/nagios/libexec/eventhandlers

it returned with cp: target "/usr/local/nagios/libexec/eventhandlers" is not a directory.

Thank you.

Khmerlinux
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Installation

Post by abrist »

Lets check to make sure the eventhandlers directory exists:

Code: Select all

cd <nagios source dir>
ls -la contrib
ls -la /usr/local/nagios/libexec
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Khmerlinux
Posts: 14
Joined: Mon Feb 24, 2014 11:26 am

Re: Installation

Post by Khmerlinux »

This is what I got

ls -la contrib
ls: cannot access contrib: No such file or directory.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Installation

Post by tmcdonald »

Did you in fact run that command in the nagios source directory?
Former Nagios employee
Khmerlinux
Posts: 14
Joined: Mon Feb 24, 2014 11:26 am

Re: Installation

Post by Khmerlinux »

Yes I did. I try browse to \usr\local\nagios and I didn't see the contrib folder. Is the correct directory to nagios folder?

Thanks
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Installation

Post by abrist »

No. We want the listing from the source directory you compiled and installed nagios from.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Khmerlinux
Posts: 14
Joined: Mon Feb 24, 2014 11:26 am

Re: Installation

Post by Khmerlinux »

OK. I found it. It is in root/downloads/nagios-4.0.3rc1/contrib. I opened the contrib folder and I I found eventhandlers.

Thanks
Locked