You are not logged in.

#1 2006-09-22 18:10:26

peque
Member
From: Denmark - Møn
Registered: 2005-06-26
Posts: 441

Installing Nagios ?? wierd error

Well installing nagios from binary, and after
./configure (standart definitions
make all
make install - This ones gives this error ???
[root@meeko nagios-2.5]# make install
cd ./base && make install
make[1]: moving to dir '/root/nagios-2.5/base'
make install-basic
make[2]: moving to dir '/root/nagios-2.5/base'
/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/bin
/bin/install: unknown user 'nagios'
make[2]: *** [install-basic] Fejl 1
make[2]: Leaving dir '/root/nagios-2.5/base'
make[1]: *** [install] Fejl 2
make[1]: leaving dir '/root/nagios-2.5/base'
make: *** [install] Fejl 2

Well have installed earlier but didn't have that issue before - have anybody an idea about what to do????


Just getting better .... All the time

Offline

#2 2006-09-22 18:57:56

toxic
Member
Registered: 2006-06-05
Posts: 117

Re: Installing Nagios ?? wierd error

Well, not sure really. It's obvious that it searches for a user nagios, and couldn't find it. Solution to that is to change the makefile, ie like
sed -e 's/nagios/your_user_name/g' < makefile
... to change the user nagios to an existing user (you?). Or you could try and create nagios user.
It seems it wants to install in nagios in the user nagions folder on /usr/local, which doesn't exist. Then it seems it selects root/... folder instead, which it doesn't seem to like. My best bet would be to download the program again, the latest version of course, redo the procedure and set ./configure --prefix=/usr.

Not sure if this was of any help, but at least it's a reply wink

Offline

#3 2006-09-22 19:35:19

peque
Member
From: Denmark - Møn
Registered: 2005-06-26
Posts: 441

Re: Installing Nagios ?? wierd error

That is exactly what I' ve done - therefor it seems strange that it didn' t make the user during the configure

Is there a way to to add an user without any passwd???
Normally I use adduser - but I mean there something also about useradd ???????


Just getting better .... All the time

Offline

#4 2006-09-22 23:47:10

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: Installing Nagios ?? wierd error

It probably assume that the nagios user and groups already exist.
One thing that you could do, would be to use sed/patch to replace the:
-o nagios -g nagios
in the install lines to:
-o root -g root
However, I don't know what nagios is so it might not work or there could be a security issue.

Offline

#5 2006-09-24 16:58:19

Snarkout
Member
Registered: 2005-11-13
Posts: 542

Re: Installing Nagios ?? wierd error

Is there some reason you don't want a nagios user and group?

FWIW, Snowman, nagios is a network monitoring app, so yeah, it should be pretty secure.


Unthinking respect for authority is the greatest enemy of truth.
-Albert Einstein

Offline

#6 2006-09-25 07:09:28

peque
Member
From: Denmark - Møn
Registered: 2005-06-26
Posts: 441

Re: Installing Nagios ?? wierd error

Well - i do want a user - And did an adduser manually - but last time I installed this was not an issue.

I do want the normal installation, but i wondering whats wrong since I've had to add those manually.


Just getting better .... All the time

Offline

#7 2006-09-25 12:56:58

Snarkout
Member
Registered: 2005-11-13
Posts: 542

Re: Installing Nagios ?? wierd error

Well, that's all I see it complaining about - you're saying you have a user and group "nagios" on this box?  Did the compile actually bomb out, or did it just complain?  It's been a while since I installed nagios, but IIRC, I had to manually create those entries.  Also, most nagios installations do expaect to find it in /usr/local/nagios IME, but sometimes it's created in /etc by distros that package it.  You can probably stick it anywhere as long as you change all the paths in your config file(s).


Unthinking respect for authority is the greatest enemy of truth.
-Albert Einstein

Offline

#8 2006-09-27 11:22:54

peque
Member
From: Denmark - Møn
Registered: 2005-06-26
Posts: 441

Re: Installing Nagios ?? wierd error

Jep - But at this time I have installed Nagios quite some times setup a distributed system up with 700PC on - So have tryed it some time big_smile But not usual have to create this user first ? not one time !
The only time i rigth now where I have to install it on Arch at home - With a fully opdatet system ?
That´s more some wondering than problems ? !!!


Just getting better .... All the time

Offline

Board footer

Powered by FluxBB