Page 1 of 1

insserv: Script nagios is broken: incomplete LSB comment.

Posted: Tue Jun 24, 2014 11:23 am
by venkatesh ch
Hi ,

I just started installing nagios 4.0.7 and nagios plugin 2.0 on suse linux 11 sever using quick start guide.

link : http://nagios.sourceforge.net/docs/3_0/ ... nsuse.html
i have observed below error while starting nagios service.

Code: Select all

rdatgen4588:/usr/local/nagios # chkconfig --add nagios
insserv: Script nagios is broken: incomplete LSB comment.
insserv: missing `Default-Start:'  entry: please add even if empty.
insserv: Script nagios is broken: incomplete LSB comment.
insserv: missing `Default-Start:'  entry: please add even if empty.
insserv: Script nagios is broken: incomplete LSB comment.
insserv: missing `Default-Start:'  entry: please add even if empty.
insserv: Script nagios is broken: incomplete LSB comment.
insserv: missing `Default-Start:'  entry: please add even if empty.
insserv: Script nagios is broken: incomplete LSB comment.
insserv: missing `Default-Start:'  entry: please add even if empty.
insserv: warning: current stop runlevel(s) (3 5) of script `nagios' overwrites defaults (empty).
insserv: Default-Start undefined, assuming default start runlevel(s) for script `nagios'
nagios                    0:off  1:off  2:off  3:on   4:off  5:on   6:off
rdatgen4588:/usr/local/nagios #
could some one please help me to fix it.

Re: insserv: Script nagios is broken: incomplete LSB comment

Posted: Tue Jun 24, 2014 12:55 pm
by tmcdonald
I'm not a SuSE expert, but a quick Google search suggests you might need to edit the init script to conform to the LSB format:

http://www.novell.com/support/kb/doc.php?id=7010013
http://en.opensuse.org/openSUSE:Packaging_init_scripts

And as it turns out, we have the SuSE script right on our Exchange! http://exchange.nagios.org/directory/Pa ... 11/details You will want version 1.2. Let us know how this works out!

Re: insserv: Script nagios is broken: incomplete LSB comment

Posted: Thu Sep 24, 2015 10:17 am
by lvlammert
Installed 4.1.1 from source on debian, .. same problem; the init script in the Exchange DNW either.

Would anyone have an 'installable' init script for Debian 7.1?

Re: insserv: Script nagios is broken: incomplete LSB comment

Posted: Thu Sep 24, 2015 10:34 am
by lvlammert
FYI, .. after some experimentation this appears to work:

### BEGIN INIT INFO
# Provides: nagios
# Required-Start: $local_fs $syslog $network
# Required-Stop: $local_fs $syslog $network
# Short-Description: Start and Stop Nagios monitoring server
# Description: Nagios is is a service monitoring system
# Default-Start: start
# Default-Stop: stop
### END INIT INFO

Re: insserv: Script nagios is broken: incomplete LSB comment

Posted: Thu Sep 24, 2015 1:47 pm
by hsmith
Thanks for sharing! Is there anything else we can do to help you out?