Adding kernel info in ISPConfig

Discussion in 'Tips/Tricks/Mods' started by ahrasis, Jun 3, 2018.

  1. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    This is just another play of mine to ISPConfig 3.1 where I added kernel info in ISPConfig viewable via Monitor tab (under Show Overview). I am not sure whether this is a good feature to be proposed so I think I just share the edit I made for it.

    Kernel Info.png

    First locate and open show_sys_state.php file (mine is under /usr/local/ispconfig/interface/web/monitor/) and then, find $ispcData = null; and add after it $kernelinfo = 'Kernel: ' . exec('uname -mrs'); so it will like below:
    Code:
       $ispcData = null;
       $kernelinfo = 'Kernel: ' . exec('uname -mrs');
    
    Further, find $html_ve .= '<p>' . $app->lng("monitor_serverstate_state_txt") . ': ' . $serverState . '</p>'; and add before it $html_ve .= '<p><h3>' . $kernelinfo . '</h3></p>'; so it will like below:
    Code:
       $html_ve .= '<p><h3>' . $kernelinfo . '</h3></p>';
       $html_ve .= '<p>' . $app->lng("monitor_serverstate_state_txt") . ': ' . $serverState . '</p>';
    
    Finally, find $html_server .= '<p>' . $app->lng("monitor_serverstate_state_txt") . ': ' . $serverState . ' ('; and add before it $html_server .= '<p><h3>' . $kernelinfo . '</h3></p>'; so it will like below:
    Code:
       $html_server .= '<p><h3>' . $kernelinfo . '</h3></p>';
       $html_server .= '<p>' . $app->lng("monitor_serverstate_state_txt") . ': ' . $serverState . ' (';
    
    Good luck and have fun! :D
     
    Taleman likes this.
  2. ztk.me

    ztk.me Well-Known Member HowtoForge Supporter

    we have git.ispconfig.org :)
     
    ahrasis likes this.
  3. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    I submitted it to the git but I am not so sure whether many will like this extra simple feature.
     
  4. ztk.me

    ztk.me Well-Known Member HowtoForge Supporter

    it's a handy space filler - and if it compiles, why not :)
     

Share This Page