add a server configuration report
authorDenis Ovsienko <denis@ovsienko.info>
Wed, 27 Dec 2017 16:54:24 +0000 (16:54 +0000)
committerDenis Ovsienko <denis@ovsienko.info>
Wed, 27 Dec 2017 16:54:24 +0000 (16:54 +0000)
* renderServerConfigurationReport(): a new function, a wrapper around
  platform_is_ok()

ChangeLog
wwwroot/inc/interface-reports.php
wwwroot/inc/navigation.php

index 17468f9..4980bbf 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,7 @@
        update: 802.1Q: do permission check for changing native vlan while keeping the allowed vlans list unchanged
        update: 802.1Q: foreign VLANs (missing from the vlan domain list) are not propagated to uplinks
        update: ability to extend supported device breed list via plug-in
+       update: add a server configuration report (same as before install/upgrade)
 0.21.1 2017-10-22
        update: improve Percona server support (Mantis#1793)
        bugfix: fix an upgrade bug introduced in 0.21.0 (found by Chris James)
index 03d535c..55394e8 100644 (file)
@@ -983,3 +983,9 @@ function renderDataIntegrityReport ()
        if (! $violations)
                echo '<h2 class=centered>No integrity violations found</h2>';
 }
+
+function renderServerConfigurationReport ()
+{
+       echo '<br>';
+       platform_is_ok (TRUE);
+}
index f38dba1..83e77ba 100644 (file)
@@ -706,6 +706,7 @@ $tab['reports']['ports'] = 'Ports';
 $tab['reports']['8021q'] = '802.1Q';
 $tab['reports']['warranty'] = 'Expirations';
 $tab['reports']['integrity'] = 'Data Integrity';
+$tab['reports']['server'] = 'Server configuration';
 $tab['reports']['local'] = 'local'; // this one is set later in init.php
 $trigger['reports']['local'] = 'trigger_localreports';
 $tabhandler['reports']['default'] = 'renderSystemReports';
@@ -716,8 +717,10 @@ $tabhandler['reports']['ports'] = 'renderPortsReport';
 $tabhandler['reports']['8021q'] = 'render8021QReport';
 $tabhandler['reports']['warranty'] = 'renderExpirations';
 $tabhandler['reports']['integrity'] = 'renderDataIntegrityReport';
+$tabhandler['reports']['server'] = 'renderServerConfigurationReport';
 $tabhandler['reports']['local'] = 'renderLocalReports';
 $interface_requires['reports-rackcode'] = 'code.php';
+$interface_requires['reports-server'] = 'dictionary.php';
 $interface_requires['reports-*'] = 'interface-reports.php';
 
 $page['files']['title'] = 'Files';