Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/serverinfo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2020-04-18Add more tests for getMemory, getCPUName and getUptimeDaniel Kesselberg
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2020-04-18Remove space between instance and method callDaniel Kesselberg
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2020-04-18Fix code style for existing filesDaniel Kesselberg
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2020-04-17Refactor getDiskInfoDaniel Kesselberg
Add tests for parsing the output Add wrapper to read and mock the command output Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2020-03-17Fix FormatBytes expects kB instead of bytesDaniel Kesselberg
I guess the confusion was the df -TP already returns the values as kB instead of bytes hence we have to multiply the values first before we pass them to FormatBytes. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2020-03-17Return something for getOsNameDaniel Kesselberg
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2020-03-17Use gethostname to fetch the systems hostnameDaniel Kesselberg
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2020-03-17Use /proc/uptime to read the uptimeDaniel Kesselberg
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2020-03-17Read cpu name from proc without shell_execDaniel Kesselberg
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2020-03-17Rewrite getMemory to return a array of informationDaniel Kesselberg
Don't use shell_exec to fetch that information anymore, Make it testable Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2020-03-17Namespace for the app is ServerInfo as per info.xmlDaniel Kesselberg
I don't know why php does not complain but phpunit were not able to locate the files. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2020-03-03Merge pull request #176 from nextcloud/bugfix/error-handling-shellRoeland Jago Douma
Do not print errors if time server config is not available
2020-03-03Do not print errors if time server config is not availableJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-02-27Avoid line breaks after long device namesMichael Koch
Signed-off-by: Michael Koch <9440351+mikoMK@users.noreply.github.com>
2019-04-15Merge pull request #146 from nextcloud/moreinfoRoeland Jago Douma
adding more info to the page. This is only the first step
2019-04-11Fix permissionsJohn Molakvoæ (skjnldsv)
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2019-04-11CleanupJohn Molakvoæ (skjnldsv)
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2019-04-11Update lib/Controller/ApiController.phpMorris Jobke
Co-Authored-By: skjnldsv <skjnldsv@users.noreply.github.com>
2019-04-11Update lib/Os.phpMorris Jobke
Co-Authored-By: skjnldsv <skjnldsv@users.noreply.github.com>
2019-04-01handle case where theming is not enabled. Fixing permissionsFrank Karlitschek
2019-03-20parse systemd timeserver config file correctlyFrank Karlitschek
2019-03-06read /etc/systemd/timesyncd.conf additionally which is used by newer distrosFrank Karlitschek
2019-03-05adding more info to the page. This is only the first stepFrank Karlitschek
2019-01-14Merge pull request #138 from nextcloud/add-new-sharesMorris Jobke
add mail shares and room shares to the output of the monitoring app
2019-01-11add mail shares and room shares to the output of the monitoring appBjoern Schiessle
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
2018-12-12Suppress error-log-entries og is_readable calln-pat
Hello, this might not be a good change as it seems to supress all error messages. Though it helps me running Nextcloud on a provider that gives me limited access to open_basedir or /proc/meminfo. Although you check for access, I still get lots of errors-log-entries when opening the Memory-System-Statistics: ``` is_readable(): open_basedir restriction in effect. File(/proc/meminfo) is not within the allowed path(s): (/var/www/vhosts/xxx.yyy.netcup.net/httpdocs/zzz.aaa.com/:/tmp/:/var/lib/php5/sessions:/var/www/vhosts/xxx.yyy.netcup.net/tmp) at /var/www/vhosts/xxx.yyy.netcup.net/httpdocs/zzz.aaa.com/apps/serverinfo/lib/SystemStatistics.php#96 ``` Just as an idea, perhaps you guys have a better approach. Good work! :-) Patrick
2018-10-26Merge pull request #97 from patschi/check-cpu-avg-valuesMorris Jobke
Checking for valid CPU average values
2018-09-04Remove checking suhosin.executor.func.blacklistPatrik Kernstock
Signed-off-by: Patrik Kernstock <info@pkern.at>
2018-09-04Use IniGetWrapper functions to check for specific functionPatrik Kernstock
Signed-off-by: Patrik Kernstock <info@pkern.at>
2018-09-03Fixed indents (let PhpStorm know about tabs)Patrik Kernstock
Signed-off-by: Patrik Kernstock <info@pkern.at>
2018-09-03Some code-beautify thingsPatrik Kernstock
Signed-off-by: Patrik Kernstock <info@pkern.at>
2018-09-03Moved is_function_enabled() from OC_Helper to appPatrik Kernstock
Signed-off-by: Patrik Kernstock <info@pkern.at>
2018-09-03Merge branch 'master' into add-nc-mon-uiPatrik Kernstock
2018-09-02Add NC section to serverinfo UI pagePatrik Kernstock
This adds a few monitoring information we already collect anyway - and were already available in the API endpoint. This currently loads all SystemStatistics, which might be reduced to a smaller dataset in the future for performance reasons. Note: `webServer` in ApiController might be moved to `SystemStatistics` at a later point. Signed-off-by: Patrik Kernstock <info@pkern.at>
2018-09-01Fix static call for isUpdateAvailableDaniel Kesselberg
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2018-08-25Merge branch 'master' into add-apps-monitoringPatrik Kernstock
2018-08-24Some phpdoc fixesPatrik Kernstock
Signed-off-by: Patrik Kernstock <info@pkern.at>
2018-08-17keep the server setting at the top, right after "overview" and "basic settings"Bjoern Schiessle
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
2018-07-18Stealthy fixed indentPatrik Kernstock
Signed-off-by: Patrik Kernstock <info@pkern.at>
2018-07-18Merge branch 'master' into add-apps-monitoringPatrik Kernstock
2017-12-24Show swap usage in FreeBSD systemsJoachim Boerner
Signed-off-by: Joachim Boerner <tflidd@aspekte.net>
2017-11-13Merge pull request #105 from Noodlesalat/masterv13.0.0beta1Morris Jobke
Splitted swap and memory graph into two different graphs
2017-11-06Add memory readout for FreeBSDtflidd
Signed-off-by: Joachim Börner tflidd@aspekte.net
2017-11-01Splitted swap and memory graph into two different graphsNoodlesalat
Signed-off-by: Fabian Dreßler <nudelsalat@clouz.de>
2017-07-05Rework: Retrieve installed apps using IAppManagerPatrik Kernstock
Removing 'num_enabled' key temporary as the new IAppManager-way seems not to provide any reliable way to tell all activated (or even the count) apps. May follow later. Signed-off-by: Patrik Kernstock <info@pkern.at>
2017-06-14Add enabled apps for monitoring endpoint as wellPatrik Kernstock
Signed-off-by: Patrik Kernstock <info@pkern.at>
2017-06-11Added apps updates monitoring, closes #86Patrik Kernstock
Signed-off-by: Patrik Kernstock <info@pkern.at>
2017-06-09Show warning when failed to retrieve CPU valuesPatrik Kernstock
Signed-off-by: Patrik Kernstock <info@pkern.at>
2017-06-01Use single quotes, check for exact 3 valuesPatrik Kernstock
Signed-off-by: Patrik Kernstock <info@pkern.at>
2017-06-01Checking for valid CPU average valuesPatrik Kernstock
Signed-off-by: Patrik Kernstock <info@pkern.at>