Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add monitoring OCS API #2

Merged
merged 4 commits into from Jul 26, 2016
Merged

add monitoring OCS API #2

merged 4 commits into from Jul 26, 2016

Conversation

schiessle
Copy link
Member

@schiessle schiessle commented Jul 22, 2016

Collect system information and publish them over a OCS API

Missing statistics:

  • memory status
  • CPU status

ToDos:

  • unit tests

cc @Ivansss have a look at this PR. lib/*Statistics.php provides various system statistics you can reuse for the web interface. Here you can see how I publish the data over the ApiController, this should work similiar with your PageController

@schiessle schiessle force-pushed the monitoring-api2 branch 2 times, most recently from 5cc27c9 to b70f1a2 Compare July 25, 2016 14:25
@schiessle schiessle force-pushed the monitoring-api2 branch 2 times, most recently from 77c4b2b to feb78a5 Compare July 25, 2016 15:52
*/
private function getWebserver() {
if (isset($_SERVER['SERVER_SOFTWARE'])) {
return $_SERVER['SERVER_SOFTWARE'];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we html escape or something, just to be sure?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants