insserv: Script nagios is broken: incomplete LSB comment.

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.
Locked
venkatesh ch
Posts: 5
Joined: Mon Jun 23, 2014 10:37 am

insserv: Script nagios is broken: incomplete LSB comment.

Post 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.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

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

Post 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!
Former Nagios employee
lvlammert
Posts: 19
Joined: Thu Jun 07, 2012 3:54 pm

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

Post 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?
lvlammert
Posts: 19
Joined: Thu Jun 07, 2012 3:54 pm

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

Post 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
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

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

Post by hsmith »

Thanks for sharing! Is there anything else we can do to help you out?
Former Nagios Employee.
me.
Locked