Want more timely Centmin Mod News Updates?
Become a Member

Beta Branch update cminfo command with debug-menuexit flag

Discussion in 'Centmin Mod Github Commits' started by eva2000, Apr 12, 2018.

  1. eva2000

    eva2000 Administrator Staff Member

    53,828
    12,160
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,712
    Local Time:
    6:06 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  2. eva2000

    eva2000 Administrator Staff Member

    53,828
    12,160
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,712
    Local Time:
    6:06 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    cminfo example output

    you can either wait for cminfo_updater cronjob to update cminfo command or manually run it to update cminfo command
    Code (Text):
    cminfo_updater
    

    cminfo command options
    Code (Text):
    cminfo -h  
    /usr/bin/cminfo {info|update|netstat|listlogs|debug-menuexit}
    

    So centmin mod 123.09beta01 cminfo update allows for doing debug-menuexit log run which is the more convenient automated way of running the manual debug centmin.sh menu option 24 cmds at Checking for yum updates every time you exit. Used for debugging slow centmin.sh menu 24 exits saving a debug log to /root/centminlogs/debug-menuexit.txt and calculating the yum check time/duration.

    When there's yum updates available
    Code (Text):
    cminfo debug-menuexit
    
    ------------------------------------------------------------------
    Debugging centmin.sh menu option 24 exit routine starting
    Please wait until complete...
    ------------------------------------------------------------------
    Full debug log saved at /root/centminlogs/debug-menuexit.txt
    
    Inspect Yum Check Times In debug-menuexit.txt log
    
    2018-04-12 06:36:59 + echo ' checking for YUM updates... please wait...'
    2018-04-12 06:36:59  checking for YUM updates... please wait...
    2018-04-12 06:36:59 + [[ -f /etc/yum.repos.d/remi.repo ]]
    2018-04-12 06:36:59 ++ /usr/bin/yum --disableplugin=priorities,versionlock -e 0 -d 0 check-update --enablerepo=remi '--exclude=nginx* php* mysql*'
    2018-04-12 06:37:33 ++ echo 100
    2018-04-12 06:37:33 + UPDATE_CHECK=100
    2018-04-12 06:37:33 + [[ 100 = \1\0\0 ]]
    
    Yum Check Duration: 34.00 seconds
    
    ------------------------------------------------------------------
    Debugging centmin.sh menu option 24 exit routine completed
    ------------------------------------------------------------------

    When there's no yum updates available
    Code (Text):
    cminfo debug-menuexit
    
    ------------------------------------------------------------------
    Debugging centmin.sh menu option 24 exit routine starting
    Please wait until complete...
    ------------------------------------------------------------------
    Full debug log saved at /root/centminlogs/debug-menuexit.txt
    
    Inspect Yum Check Times In debug-menuexit.txt log
    
    2018-04-12 07:01:37 + echo ' checking for YUM updates... please wait...'
    2018-04-12 07:01:37  checking for YUM updates... please wait...
    2018-04-12 07:01:37 + [[ -f /etc/yum.repos.d/remi.repo ]]
    2018-04-12 07:01:37 ++ /usr/bin/yum --disableplugin=priorities,versionlock -e 0 -d 0 check-update --enablerepo=remi '--exclude=nginx* php* mysql*'
    2018-04-12 07:02:02 ++ echo 0
    2018-04-12 07:02:02 + UPDATE_CHECK=0
    2018-04-12 07:02:02 + [[ 0 = \1\0\0 ]]
    
    Yum Check Duration: 25.00 seconds
    
    ------------------------------------------------------------------
    Debugging centmin.sh menu option 24 exit routine completed
    ------------------------------------------------------------------
    

    If you have no intentions of using Varnish Cache you can disable yum repo completely to speed up yum checks
    Code (Text):
    yum-config-manager --disable varnishcache_varnish41 varnishcache_varnish41-source | grep enabled
    

    Optimising /etc/resolv.conf dns resolver + disabled varnish cache yum repo
    Code (Text):
    nameserver 1.1.1.1
    nameserver 8.8.8.8
    nameserver 8.8.4.4
    options rotate
    options timeout:1
    

    Code (Text):
    cminfo debug-menuexit
    
    ------------------------------------------------------------------
    Debugging centmin.sh menu option 24 exit routine starting
    Please wait until complete...
    ------------------------------------------------------------------
    Full debug log saved at /root/centminlogs/debug-menuexit.txt
    
    Inspect Yum Check Times In debug-menuexit.txt log
    
    2018-04-12 14:59:37 + echo ' checking for YUM updates... please wait...'
    2018-04-12 14:59:37  checking for YUM updates... please wait...
    2018-04-12 14:59:37 + [[ -f /etc/yum.repos.d/remi.repo ]]
    2018-04-12 14:59:37 ++ /usr/bin/yum --disableplugin=priorities,versionlock -e 0 -d 0 check-update --enablerepo=remi '--exclude=nginx* php* mysql*'
    2018-04-12 14:59:46 ++ echo 0
    2018-04-12 14:59:46 + UPDATE_CHECK=0
    2018-04-12 14:59:46 + [[ 0 = \1\0\0 ]]
    
    Yum Check Duration: 9.00 seconds
    
    ------------------------------------------------------------------
    Debugging centmin.sh menu option 24 exit routine completed
    ------------------------------------------------------------------