Skip to content

dashboard

Display Informations on the usage and statistics of the FTP and Apache services

Read

Input

Available query sections

  • live: rpm versions of the installed Lamp stack and number of the vhost/proxypass, FTP users created
  • apacheStatus: statistics on the apache service

The input query format is:

{
    "action":"live"
}
{
    "action":"apacheStatus"
}

Output

The output contains the queried sections.

Live

  • Detection of installed databases and php (from nethserver integration of software collection)
  • Detection of versions of databases and php (from nethserver integration of software collection)
  • number of the vhost/proxypass and ftp user created
  • Detection if nethserver-httpd-virtualhosts is installed (0 or 1)
  • Detection if nethserver-vsftpd is installed (0 or 1)
{
  "versions": {
    "database_SCL": {
      "rh-postgresql94": "9.4.14"
    },
    "default": {
      "php": "5.4.16",
      "httpd": "2.4.6",
      "mysqld": "5.5.60-MariaDB"
    },
    "php_SCL": {
      "rh-php72-php-fpm": "7.2.10",
      "rh-php71-php-fpm": "7.1.8"
    }
  },
  "packages": {
    "virtualhost": 1,
    "vsftpd": 1
  },
  "statistics": {
    "FTP": 1,
    "ProxyPass": 0,
    "VhostReverse": 2,
    "virtualhosts": 4
  },
  "services": {
    "php": 1,
    "rh-php72-php-fpm": 1,
    "postgresql": 0,
    "rh-php71-php-fpm": 1,
    "rh-postgresql94-postgresql": 1,
    "httpd": 1,
    "mysqld": 1
  }
}

ApacheStatus

Statistics on the apache service based on Apache mod_status

{
  "BytesPerReq": "1764.43",
  "Total_kbytes": "448",
  "ReqPerSec": ".00464195",
  "Uptime": "56011",
  "statistics": {
    "RunningWorkers": "1",
    "SpareWorkers": 248,
    "IdleWorkers": "7"
  },
  "TotalAccess": "260",
  "BytesPerSec": "8.19039"
}