Search This Blog

Friday, September 28, 2018

How to Upgrade check-mk to latest version on Debian 8 jessie

You don't need shutdown before the dpkg package upgrade.
  1. Download and upgrade to the latest check-mk package:
  2. # dpkg -l|grep check-mk
    ii  check-mk-agent                 1.2.8p15-1                         all          Check_MK Agent for Linux
    ii  check-mk-raw-1.4.0p8           0.jessie                           amd64        Check_MK is a full featured system monitoring
    
    # wget https://mathias-kettner.de/support/1.4.0p36/check-mk-raw-1.4.0p36_0.jessie_amd64.deb
    
    # sudo dpkg -i check-mk-raw-1.4.0p36_0.jessie_amd64.deb 
    Selecting previously unselected package check-mk-raw-1.4.0p36.
    (Reading database ... 54001 files and directories currently installed.)
    Preparing to unpack check-mk-raw-1.4.0p36_0.jessie_amd64.deb ...
    Unpacking check-mk-raw-1.4.0p36 (0.jessie) ...
    Setting up check-mk-raw-1.4.0p36 (0.jessie) ...
    New default version is 1.4.0p36.cre.
    update-alternatives: using /omd/versions/1.4.0p36.cre to provide /omd/versions/default (omd) in manual mode
    Installing systemd service: omd.init
    Disabling startup through SysV (/etc/init.d/*) scripts
    Activating startup during system boot
    Processing triggers for systemd (215-17+deb8u7) ...
    Processing triggers for man-db (2.7.0.2-5) ...
    
  3. After package upgrade su to omd site user to perform site update:

  4. # su - milllion-doller-server
    OMD[milllion-doller-server]:~$ omd status
    mkeventd:       running
    rrdcached:      running
    npcd:           running
    nagios:         running
    apache:         running
    crontab:        running
    -----------------------
    Overall state:  running
    
    OMD[milllion-doller-server]:~$ omd update
    Please completely stop 'milllion-doller-server' before updating it.
    
    OMD[milllion-doller-server]:~$ omd stop
    Removing Crontab...OK
    Stopping dedicated Apache for site milllion-doller-server....OK
    Stopping nagios......OK
    Stopping npcd...OK
    Stopping rrdcached...waiting for termination...OK
    Stopping mkeventd...killing 21922....OK
    OMD[milllion-doller-server]:~$ omd update
    Unmounting temporary filesystem...OK
    Cleaning up temp filesystem...OK
    
    +-------------------------------------------------------------+
    | You are going to update the site milllion-doller-server     |
    | from version 1.4.0p8.cre to version                         |
    | 1.4.0p36.cre. This will include updating all of             |
    | you configuration files and merging changes in              |
    | the default files with changes made by you. In              |
    | case of conflicts your help will be needed.                 |
    +-------------------------------------------------------------+
    |                 < Abort >                          |
    +-------------------------------------------------------------+
    
    
    2018-09-28 13:32:09 - Updating site 'milllion-doller-server' from version 1.4.0p8.cre to 1.4.0p36.cre...
    
     * Updated        etc/nagvis/nagvis.ini.php
     * Updated        etc/nagvis/conf.d/demo.ini.php
    Finished update.
    
  5. Start the omd site after upgrade and check the status:

  6. OMD[milllion-doller-server]:~$ omd start
    Creating temporary filesystem /omd/sites/milllion-doller-server/tmp...OK
    Starting mkeventd...OK
    Starting rrdcached...OK
    Starting npcd...OK
    Starting nagios...2018-09-28 13:32:15 [6] updating log file index
    2018-09-28 13:32:15 [6] updating log file index
    OK
    Starting dedicated Apache for site milllion-doller-server...OK
    Initializing Crontab...OK
    
    OMD[milllion-doller-server]:~$ omd status
    mkeventd:       running
    rrdcached:      running
    npcd:           running
    nagios:         running
    apache:         running
    crontab:        running
    -----------------------
    Overall state:  running
    

No comments:

Post a Comment