Page 2 of 2
Re: Ubuntu 12.04 Nagios 4.0.2 issue w/ /etc/init.d/nagios
Posted: Fri Mar 14, 2014 5:28 am
by mkot
I've copied it to
as
nagios. Then I've made it runnable
. When I put
or
error ocoured:
Code: Select all
Executable file @bindir@/nagios not found. Exiting.
Re: Ubuntu 12.04 Nagios 4.0.2 issue w/ /etc/init.d/nagios
Posted: Fri Mar 14, 2014 11:27 am
by slansing
This should actually be patched and resolved in version 4.0.3 which is now released. If you wish to stay on version 4.0.2 we can continue to help you on that end, though upgrading should resolve this.
Re: Ubuntu 12.04 Nagios 4.0.2 issue w/ /etc/init.d/nagios
Posted: Sat Mar 15, 2014 5:19 am
by mkot
Acctually I've got Nagios 4.0.3 with this issue ;]
I've upgradet Nagios from v4.0.2 to 4.0.3...
EDIT:
I've upgraded Nagios from v4.0.3 to 4.0.4 and issue is still present when I try stop/reload Nagios' process...
Re: Ubuntu 12.04 Nagios 4.0.2 issue w/ /etc/init.d/nagios
Posted: Mon Mar 17, 2014 7:43 am
by scottwilkerson
In the upgrade did you run
Re: Ubuntu 12.04 Nagios 4.0.2 issue w/ /etc/init.d/nagios
Posted: Mon Mar 17, 2014 8:15 am
by mkot
No, i didn't. I upgraded Nagios via this procedure:
http://nagios.sourceforge.net/docs/3_0/upgrading.html. Can I use it now? Is it safe for my ocnfiguration?

Re: Ubuntu 12.04 Nagios 4.0.2 issue w/ /etc/init.d/nagios
Posted: Mon Mar 17, 2014 9:50 am
by slansing
We recommend using this document as it is much more up to date than the 3_0 upgrading/installing document found on sourceforge:
http://assets.nagios.com/downloads/nagi ... Source.pdf
Please run through the entire procedure, remember, an upgrade is essentially a re-compile, the above link includes the make install-init that Scott mentioned, please let us know if you need help.
Re: Ubuntu 12.04 Nagios 4.0.2 issue w/ /etc/init.d/nagios
Posted: Mon Mar 17, 2014 11:55 am
by mkot
It worked, I can restart Nagios from ssh
So if I want upgrade Nagios all I need to do is:
Code: Select all
./configure --with-nagios-group=nagios --with-command-group=nagcmd -–with-mail=/usr/bin/sendmail
All systems:
make all
make install
make install-init
cp -R contrib/eventhandlers/ /usr/local/nagios/libexec/
chown -R nagios:nagios /usr/local/nagios/libexec/eventhandlers
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
/etc/init.d/nagios start
I didn't make
Code: Select all
make install-config
make install-commandmode
make install-webconf
because I'll loose my configuration
