opsview updated failed

auf meinem quasi frischen nagios server ist gleich das erste update auf die nase gefallen.

Preparing to replace opsview-core 3.13.0.6479-1squeeze1 (using .../opsview-core_3.13.1.6691-1squeeze1_all.deb) ...
Environment not set - have you run 'su - nagios'?
invoke-rc.d: initscript opsview, action "stop" failed.
dpkg: warning: subprocess old pre-removal script returned error exit status 2
dpkg - trying script from the new package instead ...
Environment not set - have you run 'su - nagios'?
invoke-rc.d: initscript opsview, action "stop" failed.
dpkg: error processing /var/cache/apt/archives/opsview-core_3.13.1.6691-1squeeze1_all.deb (--unpack):
 subprocess new pre-removal script returned error exit status 2
configured to not write apport reports
                                      Nagios already running
invoke-rc.d: initscript opsview, action "start" failed.
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
 /var/cache/apt/archives/opsview-core_3.13.1.6691-1squeeze1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

mit ein bischen suchen habe ich auch bald eine loesung gefunden. das problem war, dass die datei .profile im home des user nagios nicht komplett war. scheinbar hat das bei der urspruenglichen installation nicht hingehauen. so kriegt man das wieder auf die reihe:

echo "test -f /usr/local/nagios/bin/profile && . /usr/local/nagios/bin/profile" >> ~nagios/.profile
chown nagios:nagios ~nagios/.profile

Author: sd

Leave a Reply

Your email address will not be published. Required fields are marked *