Personal tools
You are here: Home Web management Change from Opsview Community to Opsview Core on CentOS v6.x

Change from Opsview Community to Opsview Core on CentOS v6.x

The OpsView community RPM's are horribily out of date on my server (last update was April 2012). It seems there is no community release now but a core release is available.

The 'upgrade' to the core release is documented here.

Prerequisites

Change the repository

Edit the baseUrl in the OpsView repo configuration file '/etc/yum.repos.d/opsview.repo':

[opsview]
name = Opsview
baseurl = http://downloads.opsview.com/opsview-core/latest/yum/centos/$releasever/$basearch
enabled = 1
protect = 0
gpgcheck = 0

Disable ODW

The Opsview data wharehouse feature is not available in the core release. From the menu's, select 'Advanced' -> 'System Preferences' -> select the 'ODW' tab. Uncheck the 'Enable ODW import' checkbox.

 

 OpsView ODW 2013-06-30_103945.png

SNMP Traps

Two services include SNMP traps, which are not supported/allowed in the core edition. The 'Configuration' menu item 'SNMP Traps' shows there are two such checks. These must be removed.

SNMP Trap Summary  2013-06-30_140913.png

Go to the 'Configuration' menu 'Service Checks' item. In the long list of items there are the following two items:

  • SNMP Trap - Alert on any trap
  • SNMP Trap Link State

Network SNMP Trap Handler 2013-06-30_141134.png

Delete the two service checks.

Upgrade

Follow the instructions.

1. Perform an update check and remediate as required

2. Update (or install the new version)

# yum install opsview-compatibility-check
# yum update

Links

Appendices

Failed upgrade check

Run "# yum install opsview-compatibility-check"

opsview-compatibility-check-3.20130522.0.12328-1.ct6.noarch.rpm                             | 3.6 kB     00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Error in PREIN scriptlet in rpm package opsview-compatibility-check-3.20130522.0.12328-1.ct6.noarch
Class::C3::Componentised::load_components(): Use of DBIx::Class::UTF8Columns is strongly discouraged. 
      See documentation of DBIx::Class::UTF8Columns for more info

======================== Compatibility problems found =======================
| - Opsview Data Warehouse: Import is enabled, please disable               |
| - SNMP traps: There are SNMP Trap checks associated with your hosts       |
|   please remove services / templates                                      |
|                                                                           |
| Please apply the above changes before upgrading.                          |
|                                                                           |
| For more information please visit:                                        |
| http://docs.opsview.com/                                                  |
=============================================================================

error: %pre(opsview-compatibility-check-3.20130522.0.12328-1.ct6.noarch) scriptlet failed, exit status 1
error:   install: %pre scriptlet failed (2), skipping opsview-compatibility-check-3.20130522.0.12328-1.ct6
  Verifying  : opsview-compatibility-check-3.20130522.0.12328-1.ct6.noarch                                 1/1

Failed:
  opsview-compatibility-check.noarch 0:3.20130522.0.12328-1.ct6

Complete!

Successful upgrade check

# yum install opsview-compatibility-check
Dependencies Resolved

===========================================================================================
 Package                        Arch      Version                     Repository    Size
===========================================================================================
Installing:
 opsview-compatibility-check    noarch    3.20130522.0.12328-1.ct6    opsview       3.6 k

Transaction Summary
===========================================================================================
Install       1 Package(s)

Total download size: 3.6 k
Installed size: 0
Is this ok [y/N]: y
Downloading Packages:
opsview-compatibility-check-3.20130522.0.12328-1.ct6.noarch.rpm                        | 3.6 kB     00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : opsview-compatibility-check-3.20130522.0.12328-1.ct6.noarch                            1/1
Class::C3::Componentised::load_components(): Use of DBIx::Class::UTF8Columns is strongly discouraged.
    See documentation of DBIx::Class::UTF8Columns for more info
  Verifying  : opsview-compatibility-check-3.20130522.0.12328-1.ct6.noarch                            1/1

Installed:
  opsview-compatibility-check.noarch 0:3.20130522.0.12328-1.ct6

Complete!

yum update

# yum update 
Dependencies Resolved

==================================================================================
 Package                 Arch      Version                       Repository  Size
==================================================================================
Updating:
 opsview                 x86_64    3.20130522.0.12328-1.ct6      opsview    1.8 k
 opsview-base            x86_64    4.4.0.259-1.ct6               opsview    5.2 M
 opsview-core            x86_64    3.20130522.0.12328-1.ct6      opsview    2.3 M
 opsview-perl            x86_64    4.4.0.779-1.ct5               opsview     22 M
 opsview-web             x86_64    3.20130522.0.12328-1.ct6      opsview    477 k
Installing for dependencies:
 graphviz                x86_64    2.26.0-10.el6                 base       1.0 M
 libXaw                  x86_64    1.0.11-2.el6                  base       178 k
 libXmu                  x86_64    1.1.1-2.el6                   base        66 k
 libtool-ltdl            x86_64    2.2.6-15.5.el6                base        44 k
 mod_auth_tkt_opsview    x86_64    2.0.5rc3-1.el6                opsview     41 k
 net-snmp-perl           x86_64    1:5.5-44.el6_4.2              updates    320 k
 net-snmp-utils          x86_64    1:5.5-44.el6_4.2              updates    172 k
 openssh-clients         x86_64    5.3p1-84.1.el6                base       355 k
 php                     x86_64    5.3.3-22.el6                  base       1.1 M
 php-cli                 x86_64    5.3.3-22.el6                  base       2.2 M
 php-common              x86_64    5.3.3-22.el6                  base       524 k
 php-mbstring            x86_64    5.3.3-22.el6                  base       455 k
 php-mysql               x86_64    5.3.3-22.el6                  base        81 k
 php-pdo                 x86_64    5.3.3-22.el6                  base        75 k

Transaction Summary
==================================================================================
Install      14 Package(s)
Upgrade       5 Package(s)

Total download size: 37 M

Is this ok [y/N]: y

Downloading Packages:
(1/19): graphviz-2.26.0-10.el6.x86_64.rpm                  | 1.0 MB     00:05
(2/19): libXaw-1.0.11-2.el6.x86_64.rpm                     | 178 kB     00:01
(3/19): libXmu-1.1.1-2.el6.x86_64.rpm                      |  66 kB     00:00
(4/19): libtool-ltdl-2.2.6-15.5.el6.x86_64.rpm             |  44 kB     00:00
(5/19): mod_auth_tkt_opsview-2.0.5rc3-1.el6.x86_64.rpm     |  41 kB     00:00
(6/19): net-snmp-perl-5.5-44.el6_4.2.x86_64.rpm            | 320 kB     00:03
(7/19): net-snmp-utils-5.5-44.el6_4.2.x86_64.rpm           | 172 kB     00:01
(8/19): openssh-clients-5.3p1-84.1.el6.x86_64.rpm          | 355 kB     00:02
(9/19): opsview-3.20130522.0.12328-1.ct6.x86_64.rpm        | 1.8 kB     00:00
(10/19): opsview-base-4.4.0.259-1.ct6.x86_64.rpm           | 5.2 MB     00:24
(11/19): opsview-core-3.20130522.0.12328-1.ct6.x86_64.rpm  | 2.3 MB     00:07
(12/19): opsview-perl-4.4.0.779-1.ct5.x86_64.rpm           |  22 MB     00:38
(13/19): opsview-web-3.20130522.0.12328-1.ct6.x86_64.rpm   | 477 kB     00:00
(14/19): php-5.3.3-22.el6.x86_64.rpm                       | 1.1 MB     00:06
(15/19): php-cli-5.3.3-22.el6.x86_64.rpm                   | 2.2 MB     00:13
(16/19): php-common-5.3.3-22.el6.x86_64.rpm                | 524 kB     00:04
(17/19): php-mbstring-5.3.3-22.el6.x86_64.rpm              | 455 kB     00:03
(18/19): php-mysql-5.3.3-22.el6.x86_64.rpm                 |  81 kB     00:00
(19/19): php-pdo-5.3.3-22.el6.x86_64.rpm                   |  75 kB     00:01
----------------------------------------------------------------------------------
Total                                             295 kB/s |  37 MB     02:06
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : php-common-5.3.3-22.el6.x86_64                                1/24
  Installing : libXmu-1.1.1-2.el6.x86_64                                     2/24
  Updating   : opsview-perl-4.4.0.779-1.ct5.x86_64                           3/24
Setting up compatibility links
  Installing : libXaw-1.0.11-2.el6.x86_64                                    4/24
  Installing : graphviz-2.26.0-10.el6.x86_64                                 5/24
  Installing : php-pdo-5.3.3-22.el6.x86_64                                   6/24
  Installing : php-mysql-5.3.3-22.el6.x86_64                                 7/24
  Installing : php-cli-5.3.3-22.el6.x86_64                                   8/24
  Installing : php-5.3.3-22.el6.x86_64                                       9/24
  Installing : php-mbstring-5.3.3-22.el6.x86_64                             10/24
  Installing : 1:net-snmp-perl-5.5-44.el6_4.2.x86_64                        11/24
  Installing : libtool-ltdl-2.2.6-15.5.el6.x86_64                           12/24
  Updating   : opsview-base-4.4.0.259-1.ct6.x86_64                          13/24
  Installing : openssh-clients-5.3p1-84.1.el6.x86_64                        14/24
  Installing : 1:net-snmp-utils-5.5-44.el6_4.2.x86_64                       15/24
  Installing : mod_auth_tkt_opsview-2.0.5rc3-1.el6.x86_64                   16/24
  Updating   : opsview-core-3.20130522.0.12328-1.ct6.x86_64                 17/24
Stopping opsview... done
Sun Jun 30 14:53:39 2013: Starting for opsview
Sun Jun 30 14:53:39 2013: DB at version 3.13.11
Amending schema_version to handle new style schema changes
Updated database to version 3.13.12
Sun Jun 30 14:53:41 2013: DB at version 3.15.3
Setting up initial Opsview Community
Updated database to version 3.15.4
Sun Jun 30 14:53:41 2013: DB at version 3.15.4
Access control for service checks
Updated database to version 3.15.5
Sun Jun 30 14:53:41 2013: DB at version 3.15.5
Shared notification profiles
Updated database to version 3.15.6
Sun Jun 30 14:53:42 2013: DB at version 3.15.6
Access control for shared notification profiles
Updated database to version 3.15.7
Sun Jun 30 14:53:42 2013: DB at version 3.15.7
sensitive_arguments for service checks
Updated database to version 3.15.8
Sun Jun 30 14:53:42 2013: DB at version 3.15.8
Add set_downtime_on_host_delete to systempreferences
Updated database to version 3.15.9
Sun Jun 30 14:53:42 2013: DB at version 3.15.9
Add exclude_handled to keywords
Updated database to version 3.15.10
Sun Jun 30 14:53:43 2013: DB at version 3.15.10
Updating NagVis url
Updated database to version 3.15.11
Adding iOS push notification profile
Updated database to version 20120906ios
opsview.hosts (ip,name) index
Updated database to version 20121023hostsidx
Support for envvars in plugins
Updated database to version 20130115envvars
Increasing the size of snmp_port
Updated database to version 20130122snmpport
Checking for bad UUID
Updated database to version 20130204baduuid
Host event handlers
Updated database to version 20130219hsteh
Increasing the size of snmp.throughput_*
Updated database to version 20130221snmpthro
Support for limiting notification alerts
Updated database to version 20130424alerts
Finished updating Opsview database
Sun Jun 30 14:53:45 2013: Finished for opsview
Upgrading Nagios part of Runtime database
Sun Jun 30 14:53:46 2013: Starting for runtime-nagios
Upgrading Opsview part of Runtime database
Sun Jun 30 14:53:46 2013: Starting for runtime-opsview
Sun Jun 30 14:53:46 2013: DB at version 3.13.9
No-op
Updated database to version 3.13.10
Sun Jun 30 14:53:46 2013: DB at version 3.13.10
Amending schema_version to handle new style schema changes
Updated database to version 3.13.11
Sun Jun 30 14:53:46 2013: DB at version 3.15.1
Adding in additional columns to calculate downtimes and acknowledgements across state changes
Updated database to version 3.15.2
Sun Jun 30 14:53:53 2013: DB at version 3.15.2
No action taken
Updated database to version 3.15.3
Sun Jun 30 14:53:53 2013: DB at version 3.15.3
State information about downtimes recorded in statehistory table
Updated database to version 3.15.4
Sun Jun 30 14:53:54 2013: DB at version 3.15.4
Adding network topology information
Updated database to version 3.15.5
Sun Jun 30 14:53:54 2013: DB at version 3.15.5
Adding num_children to opsview_hosts
Updated database to version 3.15.6
Sun Jun 30 14:53:55 2013: DB at version 3.15.6
Removing unused table opsview_monitoringclusters
Updated database to version 3.15.7
Sun Jun 30 14:53:55 2013: DB at version 3.15.7
Adding monitoring servers to runtime db
Updated database to version 3.15.8
Sun Jun 30 14:53:55 2013: DB at version 3.15.8
Removing unused column from topology map
Updated database to version 3.15.9
Adding hosts matpaths
Updated database to version 20120925hstpths
Adding hosts network depth
Updated database to version 20121004hstdepth
Converting IDs to BIGINT (this will truncate tables first)
Converting nagios_hostchecks...
Converting snmptrapexceptions...
Updated database to version 20121022bigints
Finished updating database
Sun Jun 30 14:53:58 2013: Finished for runtime-opsview
Sun Jun 30 14:53:58 2013: Finished for runtime-nagios
Unknown option: h
Unknown option: h
Sun Jun 30 14:55:38 2013 Starting
Sun Jun 30 14:55:38 2013 --> Writing config files for Master Monitoring Server
Sun Jun 30 14:55:39 2013 Created distributed information
Sun Jun 30 14:55:39 2013 Created keyword lookup list for 23 keywords
Sun Jun 30 14:55:40 2013 86 commands written to checkcommands.cfg
Sun Jun 30 14:55:42 2013 103 service definitions written to services.cfg
Sun Jun 30 14:55:43 2013 48 hosts written to hosts.cfg
Sun Jun 30 14:55:43 2013 5 hostgroups written to hostgroups.cfg
Sun Jun 30 14:55:44 2013 4 contacts (2 profiles) written to contacts.cfg
Sun Jun 30 14:55:44 2013 4 contacts written to htpasswd.users
Sun Jun 30 14:55:44 2013 17 groups written to contactgroups.cfg
Sun Jun 30 14:55:44 2013 Written nagios.cfg
Sun Jun 30 14:55:44 2013 Written cgi.cfg
Sun Jun 30 14:55:44 2013 Written misccommands.cfg
Sun Jun 30 14:55:44 2013 Written timeperiods.cfg
Sun Jun 30 14:55:44 2013 Written notificationmethodvariables.cfg
Sun Jun 30 14:55:44 2013 Written nsca.cfg
Sun Jun 30 14:55:44 2013 Written nrd.conf
Sun Jun 30 14:55:44 2013 Written send_nrd.cfg
Sun Jun 30 14:55:44 2013 Written send_nsca.cfg
Sun Jun 30 14:55:44 2013 Written ndo2db.cfg
Sun Jun 30 14:55:44 2013 Written ndomod.cfg
Sun Jun 30 14:55:44 2013 6 dependencies written to services.cfg

Nagios config re-generated in 5.996 seconds

Running postinstall_root
Starting opsview... done
  Updating   : opsview-web-3.20130522.0.12328-1.ct6.x86_64                  18/24
mv: cannot move `.temp' to `': No such file or directory
Stopping opsview-web: done
Starting opsview-web: done
  Updating   : opsview-3.20130522.0.12328-1.ct6.x86_64                      19/24
  Cleanup    : opsview-3.20120424.0.8487-1.el6.noarch                       20/24
  Cleanup    : opsview-web-3.20120424.0.8487-1.el6.noarch                   21/24
  Cleanup    : opsview-core-3.20120424.0.8487-1.el6.noarch                  22/24
  Cleanup    : opsview-base-4.0.0.8487-1.el6.x86_64                         23/24
  Cleanup    : opsview-perl-4.0.0.660-1.el6.x86_64                          24/24
Temporarily removing compatibility links during removal of old package - message may repeat on upgrade
Temporarily removing compatibility links during removal of old package - message may repeat on upgrade
  Verifying  : graphviz-2.26.0-10.el6.x86_64                                 1/24
  Verifying  : mod_auth_tkt_opsview-2.0.5rc3-1.el6.x86_64                    2/24
  Verifying  : opsview-base-4.4.0.259-1.ct6.x86_64                           3/24
  Verifying  : opsview-core-3.20130522.0.12328-1.ct6.x86_64                  4/24
  Verifying  : opsview-3.20130522.0.12328-1.ct6.x86_64                       5/24
  Verifying  : 1:net-snmp-utils-5.5-44.el6_4.2.x86_64                        6/24
  Verifying  : opsview-web-3.20130522.0.12328-1.ct6.x86_64                   7/24
  Verifying  : php-mysql-5.3.3-22.el6.x86_64                                 8/24
  Verifying  : openssh-clients-5.3p1-84.1.el6.x86_64                         9/24
  Verifying  : php-pdo-5.3.3-22.el6.x86_64                                  10/24
  Verifying  : php-cli-5.3.3-22.el6.x86_64                                  11/24
  Verifying  : php-common-5.3.3-22.el6.x86_64                               12/24
  Verifying  : libtool-ltdl-2.2.6-15.5.el6.x86_64                           13/24
  Verifying  : opsview-perl-4.4.0.779-1.ct5.x86_64                          14/24
  Verifying  : libXaw-1.0.11-2.el6.x86_64                                   15/24
  Verifying  : php-5.3.3-22.el6.x86_64                                      16/24
  Verifying  : php-mbstring-5.3.3-22.el6.x86_64                             17/24
  Verifying  : 1:net-snmp-perl-5.5-44.el6_4.2.x86_64                        18/24
  Verifying  : libXmu-1.1.1-2.el6.x86_64                                    19/24
  Verifying  : opsview-3.20120424.0.8487-1.el6.noarch                       20/24
  Verifying  : opsview-web-3.20120424.0.8487-1.el6.noarch                   21/24
  Verifying  : opsview-base-4.0.0.8487-1.el6.x86_64                         22/24
  Verifying  : opsview-perl-4.0.0.660-1.el6.x86_64                          23/24
  Verifying  : opsview-core-3.20120424.0.8487-1.el6.noarch                  24/24

Dependency Installed:
  graphviz.x86_64 0:2.26.0-10.el6
  libXaw.x86_64 0:1.0.11-2.el6
  libXmu.x86_64 0:1.1.1-2.el6
  libtool-ltdl.x86_64 0:2.2.6-15.5.el6
  mod_auth_tkt_opsview.x86_64 0:2.0.5rc3-1.el6
  net-snmp-perl.x86_64 1:5.5-44.el6_4.2
  net-snmp-utils.x86_64 1:5.5-44.el6_4.2
  openssh-clients.x86_64 0:5.3p1-84.1.el6
  php.x86_64 0:5.3.3-22.el6
  php-cli.x86_64 0:5.3.3-22.el6
  php-common.x86_64 0:5.3.3-22.el6
  php-mbstring.x86_64 0:5.3.3-22.el6
  php-mysql.x86_64 0:5.3.3-22.el6
  php-pdo.x86_64 0:5.3.3-22.el6

Updated:
  opsview.x86_64 0:3.20130522.0.12328-1.ct6
  opsview-base.x86_64 0:4.4.0.259-1.ct6
  opsview-core.x86_64 0:3.20130522.0.12328-1.ct6
  opsview-perl.x86_64 0:4.4.0.779-1.ct5
  opsview-web.x86_64 0:3.20130522.0.12328-1.ct6

Complete!
 
Document Actions