You are here

After upgrade from Atom 5.1 to latest, opsview not working

11 posts / 0 new
Last post
Stephen Hughes
stephen.hughes's picture
After upgrade from Atom 5.1 to latest, opsview not working

Hi, I ran the upgrade via 

sudo apt-get install opsview-watchdog opsview opsview-core opsview-base opsview-web opsview-perl

After this, the opsview does not seem to be starting

The output of  /opt/opsview/watchdog/bin/opsview-monit summary is as follows

https://docs.google.com/document/d/1MxIke_3xhRRyq1-SWCQI4SP2dDfsB9ElDoA-...

this was after running /opt/opsview/watchdog/bin/opsview-monit start all

Also rebooted to check if it was that.

The system is running in Ubuntu 14

Any ideas?

 

Duncan Ferguson
dferguson's picture
As the nagios user, use

As the nagios user, use `opsview_watchdog all stop`, make sure everything has stopped (using `ps -fu nagios`) then `cd /usr/local/nagios/var; rm *.pid`.

After this, start everything back up and see how it looks - `opsview_watchdog all start`

  Duncs

 

Stephen Hughes
stephen.hughes's picture
Thanks for the quick reply.

Thanks for the quick reply.

unfortunately it doens;t seem to have worked.

When I run cd /usr/local/nagios/var; rm *.pid

It cannot find any file/directory, I've put screenshots in the shared doc, if that helps

Duncan Ferguson
dferguson's picture
Can you put the output from

Can you put the output from `opsview_watchdog summary` into the doc, please?

Stephen Hughes
stephen.hughes's picture
Just added to the bottom of

Just added to the bottom of the doc

Duncan Ferguson
dferguson's picture
As nagios, please run

As nagios, please run 'opsview_watchdog all montitor', wait a mninute and then run 'summary'.  Also (as nagios) run 'opsview-web restart' and post back any errors it comes back with.  Can you confirm you have plenty of disk space on your system and the mysql database is contactable (using 'db_opsview db_exists', which should output nothing if all is okay)

Stephen Hughes
stephen.hughes's picture
Hi, all seems fine on db

Hi, all seems fine on db_exist, though get this on restart, presume run this and all should be fine?? :)



ATTENTION! Please execute as root the following command to complete your installation/upgrade:

  /usr/local/nagios/installer/postinstall_root -p MYSQL_ROOT_PASSWORD -h MYSQL_HOST -P MYSQL_PORT

 

Duncan Ferguson
dferguson's picture
That suggests the upgrade did

That suggests the upgrade did not complete successfully.

Yes, run that command and then try the restart again

Stephen Hughes
stephen.hughes's picture
Now get the following when

Now get the following when running the upgrade command

Cannot write to '/var/log/opsview/opsviewd.log': Permission denied at /opt/opsview/perl/lib/perl5/Log/Dispatch/File.pm line 106.

upgrade failed at /usr/local/nagios/installer/upgradedb.pl line 25.

Cannot upgradedb

This is being run as root

Apologies for the 'simple' questions, not an expert at all in linux

 

Thanks

Duncan Ferguson
dferguson's picture
Run the following as root,

Run the following as root, then retry the upgrade command

chown -R nagios:nagios /var/log/opsview

 

Stephen Hughes
stephen.hughes's picture
Thanks, that did the trick.

Thanks, that did the trick.

Much appreciated all your help