Page 1 of 2

installation issue on Debian Wheezy

Posted: Sun Sep 22, 2013 12:17 am
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.

Re: installation issue on Debian Wheezy

Posted: Mon Sep 23, 2013 9:34 am
by sreinhardt
Please post this to the tracker.nagios.org, so we can follow it with proper bug tracking.

Re: installation issue on Debian Wheezy

Posted: Mon Sep 23, 2013 9:37 am
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.

Re: installation issue on Debian Wheezy

Posted: Mon Sep 23, 2013 12:10 pm
by robotto
I have found the issue in the bug tracker.

http://tracker.nagios.org/view.php?id=460

Re: installation issue on Debian Wheezy

Posted: Mon Sep 23, 2013 3:29 pm
by abrist
You should be able to use 'su' in place of runuser.

Re: installation issue on Debian Wheezy

Posted: Tue Sep 24, 2013 11:55 am
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

Re: installation issue on Debian Wheezy

Posted: Tue Sep 24, 2013 12:41 pm
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)?

Re: installation issue on Debian Wheezy

Posted: Tue Sep 24, 2013 9:49 pm
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. =)

Re: installation issue on Debian Wheezy

Posted: Wed Sep 25, 2013 10:29 am
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.

Re: installation issue on Debian Wheezy

Posted: Wed Sep 25, 2013 12:00 pm
by robotto
I can't find this init script.