You are here

Trouble Getting Opsview installed - Ubuntu

9 posts / 0 new
Last post
ssa3512
ssa3512's picture
Trouble Getting Opsview installed - Ubuntu
I'm getting this when installing opsview on ubuntu 12.04   Setting up opsview-core (3.20131016.0.14175-1precise1) ... Checking if Opsview database already exists No Opsview DB found New install - creating databases with random passwords Cannot set initial opsview conf file dpkg: error processing opsview-core (--configure): subprocess installed post-installation script returned error exit status 1 dpkg: dependency problems prevent configuration of opsview-web: opsview-web depends on opsview-core (>= 3.20131016.0.14175); however: Package opsview-core is not configured yet. dpkg: error processing opsview-web (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of opsview: opsview depends on opsview-core (>= 3.20131016.0.14175); however: Package opsview-core is not configured yet. opsview depends on opsview-web (>= 3.20131016.0.14175); however: Package opsview-web is not configured yet. dpkg: error processing opsview (--configure): dependency problems - leaving unconfigured No apport report written because the error message indicates its a followup error from a previous failure. No apport report written because the error message indicates its a followup errorfrom a previous failure. Errors were encountered while processing: opsview-core opsview-web opsview E: Sub-process /usr/bin/dpkg returned an error code (1)uname -a Linux nagios 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:42:40 UTC 2014 i686 i686 i386 GNU/Linuxnagios user is in the correct groups nagios : nagios nagcmd  permissions on folders in /usr/local drwxrwxr-x 22 nagios nagios 4096 Feb 26 19:48 nagios drwxr-xr-x 7 nagios nagios 4096 Feb 26 19:48 opsview-web  I tried to follow all the steps here, but something seems to have gone wrong http://docs.opsview.com/doku.php?id=opsview-core:ubuntu-installation   Any advice?

 

awijntje
awijntje's picture
Re: Trouble Getting Opsview installed - Ubuntu

he there,

from a quick glance it looks like the opsview.conf file is not writable by the installation process (during the creating of the database a random password is generated that goes into the opsview.conf file).

Double check if the file exists and is writable (should be though as the install is done as root, so most likely the file is missing).

hope this helps,

Alan

peterdaniel02_85664
peterdaniel02_85664's picture
HI Alan,

HI Alan,

So what's the solution to the problem? I am encourting the same exception. The file indeed is missing. Should i just copy opsview.defaults and make opsview.conf out of it?

 

root@myhost:/usr/local/nagios/etc# ll
total 56
drwxrwxr-x  3 nagios nagios 4096 Aug 21 10:37 ./
drwxrwxr-x 22 nagios nagios 4096 Aug 21 10:24 ../
-rw-r-----  1 nagios nagios 1537 Oct 16  2013 Log4perl.conf
-rw-r-----  1 nagios nagios 1070 Oct 16  2013 Log4perl-slave.conf
-r--r-----  1 nagios nagios 1431 Oct 16  2013 logrotate.conf
-r--r-----  1 nagios nagios 6550 Oct 16  2013 map
-rw-r-----  1 nagios nagios 1166 Oct 16  2013 nagiosgraph.conf
-r--r--r--  1 nagios nagios 7930 Oct 16  2013 nrpe.cfg
drwxrwxr-x  2 nagios nagios 4096 Oct 16  2013 nrpe_local/
-r--r-----  1 nagios nagios   17 Oct 16  2013 opsview_build_os
-r--r-----  1 nagios nagios 7533 Oct 16  2013 opsview.defaults
root@myhost:/usr/local/nagios/etc#

 

smarsh
smarsh's picture
Id recommend trying this

Id recommend trying this first.

peterdaniel02_85664
peterdaniel02_85664's picture
Hi Alan,

Hi Alan,

I'm still on this issue. I've done multiple installs, on ubuntu 12*, same result: Cannot set initial opsview conf file

I don't know what else to try. Going by the pasted details below what would you advice? thanks

 

 * Reloading web server config apache2                                                                                                                                                                [ OK ]
Setting up opsview-core (3.20131016.0.14175-1precise1) ...
Checking if Opsview database already exists
No Opsview DB found
New install - creating databases with random passwords
Cannot set initial opsview conf file
dpkg: error processing opsview-core (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up cmap-adobe-japan1 (0+20090930-2) ...
Setting up fonts-liberation (1.07.0-2ubuntu0.1) ...
Setting up libijs-0.35 (0.35-8) ...
Setting up libjbig2dec0 (0.11-1ubuntu1) ...
Setting up libpaper1 (1.1.24+nmu1build1) ...

Creating config file /etc/papersize with new version
Setting up libgs9-common (9.05~dfsg-0ubuntu4.2) ...
update-alternatives: using /usr/share/ghostscript/9.05 to provide /usr/share/ghostscript/current (ghostscript-current) in auto mode.
Setting up gsfonts (1:8.11+urwcyr1.0.7~pre44-4.2ubuntu1) ...
Setting up libcdt4 (2.26.3-10ubuntu1.1) ...
Setting up libcgraph5 (2.26.3-10ubuntu1.1) ...
Setting up libgraph4 (2.26.3-10ubuntu1.1) ...
Setting up libpathplan4 (2.26.3-10ubuntu1.1) ...
Setting up libgvc5 (2.26.3-10ubuntu1.1) ...
Setting up libgvpr1 (2.26.3-10ubuntu1.1) ...
Setting up graphviz (2.26.3-10ubuntu1.1) ...
Setting up libpaper-utils (1.1.24+nmu1build1) ...
dpkg: dependency problems prevent configuration of opsview-web:
 opsview-web depends on opsview-core (>= 3.20131016.0.14175); however:
  Package opsview-core is not configured yet.
dpkg: error processing opsview-web (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          dpkg: dependency problems prevent configuration of opsview:
 opsview depends on opsview-core (>= 3.20131016.0.14175); however:
  Package opsview-core is not configured yet.
 opsview depends on opsview-web (>= 3.20131016.0.14175); however:
  Package opsview-web is not configured yet.
dpkg: error processing opsview (--configure):
 dependency problems - leaving unconfigured
Setting up ttf-dejavu-extra (2.33-2ubuntu1) ...
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Setting up ttf-dejavu (2.33-2ubuntu1) ...
Setting up ttf-liberation (1.07.0-2ubuntu0.1) ...
Setting up gs-cjk-resource (1.20100103-3) ...
Setting up libgs9 (9.05~dfsg-0ubuntu4.2) ...
Setting up ghostscript (9.05~dfsg-0ubuntu4.2) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
 opsview-core
 opsview-web
 opsview
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@somehost:~#

peterdaniel02_85664
peterdaniel02_85664's picture
Cannot set initial opsview conf file

HI,

Anyone encontering the same issue, as below?  And had a solution?  Thanks in advnace.

"Checking if Opsview database already exists
No Opsview DB found
New install - creating databases with random passwords
Cannot set initial opsview conf file"

Setting up opsview-base (4.5.0.397-1precise1) ...
chmod: cannot access `/var/lib/nagios/.ssh': No such file or directory
Setting up opsview-compatibility-check (3.20131016.0.14175-1precise1) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Selecting previously unselected package opsview-core.
(Reading database ... 101188 files and directories currently installed.)
Unpacking opsview-core (from .../opsview-core_3.20131016.0.14175-1precise1_amd64.deb) ...
Selecting previously unselected package cmap-adobe-japan1.
Unpacking cmap-adobe-japan1 (from .../cmap-adobe-japan1_0+20090930-2_all.deb) ...
Selecting previously unselected package fonts-liberation.
Unpacking fonts-liberation (from .../fonts-liberation_1.07.0-2ubuntu0.1_all.deb) ...
Selecting previously unselected package libijs-0.35.
Unpacking libijs-0.35 (from .../libijs-0.35_0.35-8_amd64.deb) ...
Selecting previously unselected package libjbig2dec0.
Unpacking libjbig2dec0 (from .../libjbig2dec0_0.11-1ubuntu1_amd64.deb) ...
Selecting previously unselected package libpaper1.
Unpacking libpaper1 (from .../libpaper1_1.1.24+nmu1build1_amd64.deb) ...
Selecting previously unselected package gs-cjk-resource.
Unpacking gs-cjk-resource (from .../gs-cjk-resource_1.20100103-3_all.deb) ...
Selecting previously unselected package libgs9-common.
Unpacking libgs9-common (from .../libgs9-common_9.05~dfsg-0ubuntu4.2_all.deb) ...
Selecting previously unselected package libgs9.
Unpacking libgs9 (from .../libgs9_9.05~dfsg-0ubuntu4.2_amd64.deb) ...
Selecting previously unselected package gsfonts.
Unpacking gsfonts (from .../gsfonts_1%3a8.11+urwcyr1.0.7~pre44-4.2ubuntu1_all.deb) ...
Selecting previously unselected package ghostscript.
Unpacking ghostscript (from .../ghostscript_9.05~dfsg-0ubuntu4.2_amd64.deb) ...
Selecting previously unselected package libcdt4.
Unpacking libcdt4 (from .../libcdt4_2.26.3-10ubuntu1.1_amd64.deb) ...
Selecting previously unselected package libcgraph5.
Unpacking libcgraph5 (from .../libcgraph5_2.26.3-10ubuntu1.1_amd64.deb) ...
Selecting previously unselected package libgraph4.
Unpacking libgraph4 (from .../libgraph4_2.26.3-10ubuntu1.1_amd64.deb) ...
Selecting previously unselected package libpathplan4.
Unpacking libpathplan4 (from .../libpathplan4_2.26.3-10ubuntu1.1_amd64.deb) ...
Selecting previously unselected package libgvc5.
Unpacking libgvc5 (from .../libgvc5_2.26.3-10ubuntu1.1_amd64.deb) ...
Selecting previously unselected package libgvpr1.
Unpacking libgvpr1 (from .../libgvpr1_2.26.3-10ubuntu1.1_amd64.deb) ...
Selecting previously unselected package graphviz.
Unpacking graphviz (from .../graphviz_2.26.3-10ubuntu1.1_amd64.deb) ...
Selecting previously unselected package libpaper-utils.
Unpacking libpaper-utils (from .../libpaper-utils_1.1.24+nmu1build1_amd64.deb) ...
Selecting previously unselected package opsview-web.
Unpacking opsview-web (from .../opsview-web_3.20131016.0.14175-1precise1_amd64.deb) ...
Selecting previously unselected package opsview.
Unpacking opsview (from .../opsview_3.20131016.0.14175-1precise1_amd64.deb) ...
Selecting previously unselected package ttf-dejavu-extra.
Unpacking ttf-dejavu-extra (from .../ttf-dejavu-extra_2.33-2ubuntu1_all.deb) ...
Selecting previously unselected package ttf-dejavu.
Unpacking ttf-dejavu (from .../ttf-dejavu_2.33-2ubuntu1_all.deb) ...
Selecting previously unselected package ttf-liberation.
Unpacking ttf-liberation (from .../ttf-liberation_1.07.0-2ubuntu0.1_all.deb) ...
Processing triggers for ureadahead ...
Processing triggers for fontconfig ...
Processing triggers for man-db ...
Setting up libavahi-common-data (0.6.30-5ubuntu2.1) ...
Setting up libavahi-common3 (0.6.30-5ubuntu2.1) ...
Setting up libavahi-client3 (0.6.30-5ubuntu2.1) ...
Setting up libcups2 (1.5.3-0ubuntu8.5) ...
Setting up libcupsimage2 (1.5.3-0ubuntu8.5) ...
Setting up x11-common (1:7.6+12ubuntu2) ...
Setting up libice6 (2:1.0.7-2build1) ...
Setting up libjasper1 (1.900.1-13) ...
Setting up liblcms2-2 (2.2+git20110628-2ubuntu3.1) ...
Setting up libsm6 (2:1.2.0-2build1) ...
Setting up libxt6 (1:1.1.1-2ubuntu0.1) ...
Setting up libxmu6 (2:1.1.0-3) ...
Setting up libxaw7 (2:1.0.9-3ubuntu1) ...
Setting up libapache2-mod-auth-tkt-prefork-opsview (2.0.5rc3-1precise1) ...
 * Reloading web server config apache2                                                                                                                                                                [ OK ]
Setting up opsview-core (3.20131016.0.14175-1precise1) ...
Checking if Opsview database already exists
No Opsview DB found
New install - creating databases with random passwords
Cannot set initial opsview conf file
dpkg: error processing opsview-core (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up cmap-adobe-japan1 (0+20090930-2) ...
Setting up fonts-liberation (1.07.0-2ubuntu0.1) ...
Setting up libijs-0.35 (0.35-8) ...
Setting up libjbig2dec0 (0.11-1ubuntu1) ...
Setting up libpaper1 (1.1.24+nmu1build1) ...

Creating config file /etc/papersize with new version
Setting up libgs9-common (9.05~dfsg-0ubuntu4.2) ...
update-alternatives: using /usr/share/ghostscript/9.05 to provide /usr/share/ghostscript/current (ghostscript-current) in auto mode.
Setting up gsfonts (1:8.11+urwcyr1.0.7~pre44-4.2ubuntu1) ...
Setting up libcdt4 (2.26.3-10ubuntu1.1) ...
Setting up libcgraph5 (2.26.3-10ubuntu1.1) ...
Setting up libgraph4 (2.26.3-10ubuntu1.1) ...
Setting up libpathplan4 (2.26.3-10ubuntu1.1) ...
Setting up libgvc5 (2.26.3-10ubuntu1.1) ...
Setting up libgvpr1 (2.26.3-10ubuntu1.1) ...
Setting up graphviz (2.26.3-10ubuntu1.1) ...
Setting up libpaper-utils (1.1.24+nmu1build1) ...
dpkg: dependency problems prevent configuration of opsview-web:
 opsview-web depends on opsview-core (>= 3.20131016.0.14175); however:
  Package opsview-core is not configured yet.
dpkg: error processing opsview-web (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          dpkg: dependency problems prevent configuration of opsview:
 opsview depends on opsview-core (>= 3.20131016.0.14175); however:
  Package opsview-core is not configured yet.
 opsview depends on opsview-web (>= 3.20131016.0.14175); however:
  Package opsview-web is not configured yet.
dpkg: error processing opsview (--configure):
 dependency problems - leaving unconfigured
Setting up ttf-dejavu-extra (2.33-2ubuntu1) ...
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Setting up ttf-dejavu (2.33-2ubuntu1) ...
Setting up ttf-liberation (1.07.0-2ubuntu0.1) ...
Setting up gs-cjk-resource (1.20100103-3) ...
Setting up libgs9 (9.05~dfsg-0ubuntu4.2) ...
Setting up ghostscript (9.05~dfsg-0ubuntu4.2) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
 opsview-core
 opsview-web
 opsview
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@canwebtest07:~#

clifford.meece_88136
clifford.meece_88136's picture
same problem here

any recomendations?  It seems like the install is just broken.

clifford.meece_88136
clifford.meece_88136's picture
hmm

seems to be something related to the nagios user's home directory, or lack thereof.  I exploded the debian package and started reading through the postinst script.  It breaks down when it  tries to set profile information for the nagios user.  I think this may happen in some case if the server already had a nagios user installed, perhaps from an earlier vanilla nagios install.

 

It's not entirely clear to me at the moment what the user directory for nagios should be.  The comments in the script don't seem to match the actual commands being run.  I feel like this is fixable though, so I'll keep at it for a bit.

 

 

clifford.meece_88136
clifford.meece_88136's picture
I think I got mine working. 

I think I got mine working. 

 

Try this:

usermod -d /var/log/nagios nagios

mkdir -p /var/log/nagios

chown nagios.nagios /var/log/nagios

usermod -s /bin/bash nagios

 

and run apt-get install opsview again.  If you followed the instructions above to create a dummy or blank opsview.conf, remove it first.