installation issue on Debian Wheezy

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.
robotto
Posts: 10
Joined: Sun Sep 22, 2013 12:08 am

installation issue on Debian Wheezy

Post by robotto »

Hello,

I have compiled the new nagios 4 version and I have some problems on Debian Wheezy.

/etc/init.d/nagios

line 20
. /etc/rc.d/init.d/functions
This file doesn't exist on Debian. The correct file is
. /lib/lsb/init-functions
line 142
$nice runuser -s /bin/bash - $user -c "$corelimit >/dev/null 2>&1 ; $exec -vp $config"
The command runuser doesn't exist on Debian Wheezy.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: installation issue on Debian Wheezy

Post by sreinhardt »

Please post this to the tracker.nagios.org, so we can follow it with proper bug tracking.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: installation issue on Debian Wheezy

Post by slansing »

Could you report this to our tracker as well? That way it will get the most coverage:

http://tracker.nagios.org/

Are you picking apart the source? Or is this a result of an error you received? If so please show us the entirety of the error.
robotto
Posts: 10
Joined: Sun Sep 22, 2013 12:08 am

Re: installation issue on Debian Wheezy

Post by robotto »

I have found the issue in the bug tracker.

http://tracker.nagios.org/view.php?id=460
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: installation issue on Debian Wheezy

Post by abrist »

You should be able to use 'su' in place of runuser.
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.
robotto
Posts: 10
Joined: Sun Sep 22, 2013 12:08 am

Re: installation issue on Debian Wheezy

Post by robotto »

When I used su I get the following error.

Code: Select all

root@server:/etc/init.d# ./nagios start
./nagios: 117: ./nagios: status: not found
./nagios: 74: test: false: unexpected operator
$Starting nagios: ./nagios: 80: ./nagios: daemon: not found
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: installation issue on Debian Wheezy

Post by abrist »

You may need to use a different init script. Were any others provided in the source directory (there should be a couple - the one you are looking for is init-script.debian)?
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.
magna.vis
Posts: 8
Joined: Tue Sep 24, 2013 9:37 pm

Re: installation issue on Debian Wheezy

Post by magna.vis »

I'm having the same issue. I added to the bug tracker yesterday. This caused a lot of problems with my upgrade from 3.4.4. Did no one test on Ubuntu server prior to making this document: http://assets.nagios.com/downloads/nagi ... Source.pdf? At least we don't have to do the crazy

Code: Select all

sed -i 's:for file in includes/rss/\*;:for file in includes/rss/\*.\*;:g' ./html/Makefile


sed -i 's:for file in includes/rss/extlib/\*;:for file in includes/rss/extlib/\*.\*;:g' ./html/Makefile
That was required for previous versions, but it's still not right. In addition, that quick start has

Code: Select all

tar zxvf nagios-3.4.1.tar.gz
on page 2 instead of what it ought to be. I'm glad I was able to roll back using snapshots. I stood up a clean install to play with in the meantime. I'm no sysadmin, so I'm not really sure how to make it right. I do know that I couldn't find a clear answer from several other people that are having the same issue. Maybe I should take this as a sign to switch to CentOS. =)
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: installation issue on Debian Wheezy

Post by abrist »

Our installer is more finely tuned for centos/rhel systems. Did you find a file named:

Code: Select all

init-script.debian
In your nagios source folder? That is usually the init script we suggest people use for debian/ubuntu.
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.
robotto
Posts: 10
Joined: Sun Sep 22, 2013 12:08 am

Re: installation issue on Debian Wheezy

Post by robotto »

I can't find this init script.
Locked