Jumat, 22 November 2019

How to upgrade check mk monitoring server

  Tidak ada komentar
Download the package
[[email protected] ~]$ wget https://checkmk.com/support/1.6.0p5/check-mk-raw-1.6.0p5-el6-38.x86_64.rpm
--2019-11-08 07:34:04--  https://checkmk.com/support/1.6.0p5/check-mk-raw-1.6.0p5-el6-38.x86_64.rpm
Resolving checkmk.com...
Connecting to checkmk.com||:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 143366956 (137M) [application/x-redhat-package-manager]
Saving to: “check-mk-raw-1.6.0p5-el6-38.x86_64.rpm”

100%[======================================>] 143,366,956 5.54M/s   in 35s

2019-11-08 07:34:40 (3.95 MB/s) - “check-mk-raw-1.6.0p5-el6-38.x86_64.rpm” saved[143366956/143366956]

[[email protected] ~]$
Install the package with yum install command
[[email protected] ~]$ sudo yum install check-mk-raw-1.6.0p5-el6-38.x86_64.rpm
[sudo] password for user:
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Examining check-mk-raw-1.6.0p5-el6-38.x86_64.rpm: check-mk-raw-1.6.0p5-el6-38.x8                                                      6_64
Marking check-mk-raw-1.6.0p5-el6-38.x86_64.rpm to be installed
Determining fastest mirrors
http://centos.biz.net.id/6/os/x86_64/repodata/repomd.xml: [Errno 12] Timeout on http://centos.biz.net.id/6/os/x86_64/repodata/repomd.xml: (28, 'connect() timed out!')
Trying other mirror.
epel                                                                                                           | 5.3 kB     00:00
epel/primary_db                                                                                                | 6.1 MB     00:02
http://centos.biz.net.id/6/extras/x86_64/repodata/repomd.xml: [Errno 12] Timeout on http://centos.biz.net.id/6/extras/x86_64/repodata/repomd.xml: (28, 'connect() timed out!')
Trying other mirror.
http://centos.biz.net.id/6/updates/x86_64/repodata/repomd.xml: [Errno 12] Timeout on http://centos.biz.net.id/6/updates/x86_64/repodata/repomd.xml: (28, 'connect() timed out!')
Trying other mirror.
Resolving Dependencies
--> Running transaction check
---> Package check-mk-raw-1.6.0p5.x86_64 0:el6-38 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

 Package                            Arch                 Version              Repository                                         Size
 check-mk-raw-1.6.0p5               x86_64               el6-38               /check-mk-raw-1.6.0p5-el6-38.x86_64               585 M

Transaction Summary
Install       1 Package(s)

Total size: 585 M
Installed size: 585 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : check-mk-raw-1.6.0p5-el6-38.x86_64                                                                                 1/1
New default version is 1.6.0p5.cre.
Installing SysV init script: omd
  Verifying  : check-mk-raw-1.6.0p5-el6-38.x86_64                                                                                 1/1

  check-mk-raw-1.6.0p5.x86_64 0:el6-38

[[email protected] ~]$
Check mk site status
[[email protected] ~]$ sudo omd status mymonitor
[sudo] password for user:
Doing 'status' on site mymonitor:
rrdcached:      running
npcd:           running
nagios:         running
apache:         running
xinetd:         running
crontab:        running
Overall state:  running

[[email protected] ~]$ 
Stop cmk site
[[email protected] ~]$ sudo omd stop mymonitor
Doing 'stop' on site mymonitor:
Removing Crontab...
Stopping xinetd...OK
Stopping dedicated Apache for site mymonitor.....OK
Stopping nagios.....OK
Stopping npcd...OK
Stopping rrdcached...waiting for termination...OK

[[email protected] ~]$
Perform update version
[[email protected] ~]$ sudo omd update mymonitor
Unmounting temporary filesystem...OK

                                        x You are going to update the site kemenhub_mon    x
                                        x from version 1.5.0p13.cre to version             x
                                        x 1.6.0p5.cre. This will include updating all of   x
                                        x you configuration files and merging changes in   x
                                        x the default files with changes made by you. In   x
                                        x case of conflicts your help will be needed.      x
                                        x           <Update!>      < Abort >               x

2019-11-08 07:47:12 - Updating site 'mymonitor' from version 1.5.0p13.cre to 1.6.0p5.cre...

 * Updated        .profile
 * Installed link var/dokuwiki/lib/plugins/cli.php
 * Installed dir  etc/stunnel
 * Updated        etc/apache/apache.conf
 * Installed file etc/apache/conf.d/security.conf
 * Updated        etc/apache/conf.d/omd.conf
 * Installed file etc/apache/conf.d/01_wsgi.conf
 * Updated        etc/nagvis/nagvis.ini.php
 * Updated        etc/dokuwiki/local.php
 * Updated        etc/dokuwiki/mime.conf
 * Updated        etc/dokuwiki/dokuwiki.php
 * Installed file etc/init.d/stunnel
 * Updated        etc/init-hooks.d/README
 * Merged         etc/mk-livestatus/xinetd.conf
 * Installed file etc/logrotate.d/stunnel
 * Updated        etc/check_mk/apache.conf
 * Installed link etc/rc.d/85-stunnel
 * Permissions    0644 -> 0444 etc/jmx4perl/config/websphere/jms.cfg
 * Permissions    0644 -> 0444 etc/jmx4perl/config/websphere/threads.cfg
 * Permissions    0644 -> 0444 etc/jmx4perl/config/websphere/jdbc.cfg
 * Permissions    0644 -> 0444 etc/jmx4perl/config/websphere/appstate.cfg
 * Permissions    0644 -> 0444 etc/jmx4perl/config/websphere/jca.cfg
 * Permissions    0644 -> 0444 etc/jmx4perl/config/websphere/http.cfg
 * Installed file etc/stunnel/server.conf
 * Installed dir  local/share/check_mk/web/htdocs/themes
 * Vanished       local/lib/icinga
 * Vanished       local/share/icinga/htdocs
 * Vanished       local/share/icinga
 * Vanished       etc/rc.d/80-icinga
 * Vanished       etc/icinga/ssi/status-header.ssi
 * Vanished       etc/icinga/ssi/README
 * Vanished       etc/icinga/ssi/extinfo-header.ssi
 * Vanished       etc/icinga/icinga.d/omd.cfg
 * Vanished       etc/icinga/icinga.d/misc.cfg
 * Vanished       etc/icinga/icinga.d/logging.cfg
 * Vanished       etc/icinga/icinga.d/flapping.cfg
 * Vanished       etc/icinga/icinga.d/timing.cfg
 * Vanished       etc/icinga/icinga.d/freshness.cfg
 * Vanished       etc/icinga/icinga.d/tuning.cfg
 * Vanished       etc/icinga/icinga.d/obsess.cfg
 * Vanished       etc/icinga/icinga.d/mk-livestatus.cfg
 * Vanished       etc/icinga/icinga.d/dependency.cfg
 * Vanished       etc/icinga/icinga.d/eventhandler.cfg
 * Vanished       etc/icinga/icinga.d/retention.cfg
 * Vanished       etc/icinga/cgiauth.cfg
 * Vanished       etc/icinga/resource.cfg
 * Vanished       etc/icinga/cgi.cfg
 * Vanished       etc/icinga/icinga.cfg
 * Vanished       etc/icinga/config.inc.php
 * Vanished       etc/icinga/apache.conf
 * Vanished       etc/icinga/idomod.cfg-sample
 * Vanished       etc/icinga/icinga.d
 * Vanished       etc/icinga/conf.d
 * Vanished       etc/icinga/ssi
 * Vanished       etc/init.d/icinga
 * Vanished       etc/apache/conf.d/01_python.conf
 * Vanished       etc/icinga
 * Vanished       var/icinga
Executing update-pre-hooks script "cmk.update-pre-hooks"...OK
Output: Initializing application...
Loading GUI plugins...
Updating Checkmk configuration...
 + Rewriting WATO tags...
 + Rewriting WATO hosts and folders...
 + Rewriting WATO rulesets...
 + Rewriting autochecks...
 + Cleanup version specific caches...

Finished update.

[[email protected] ~]$
Check cmk site status
[[email protected] ~]$ sudo omd status mymonitor
Doing 'status' on site mymonitor:
rrdcached:      stopped
npcd:           stopped
nagios:         stopped
apache:         stopped
xinetd:         stopped
crontab:        stopped
Overall state:  stopped

[[email protected] ~]$ 
Start cmk site
[[email protected] ~]$ sudo omd start mymonitor
Creating temporary filesystem /omd/sites/mymonitor/tmp...OK
Starting mkeventd...OK
Starting rrdcached...OK
Starting npcd...OK
Starting nagios...OK
Starting apache...OK
Initializing Crontab...OK
[[email protected] ~]$
Check version
[[email protected] ~]$ sudo omd version mymonitor
OMD - Open Monitoring Distribution Version 1.6.0p5.cre
[[email protected] ~]$

Tidak ada komentar :

Posting Komentar