fidi / server-status Goto Github PK
View Code? Open in Web Editor NEWServer-Status is a daemon written in C++ that reads system stats and creates json files from it that can be used to monitor server statistics.
License: MIT License
Server-Status is a daemon written in C++ that reads system stats and creates json files from it that can be used to monitor server statistics.
License: MIT License
The double check for datasize and arraysize should be an "OR" instead of an "AND".
Compiling the code under Raspian throws lots of errors like this:
undefined reference to `operator new[](unsigned long)'
Needs to be investigated.
Adding a function that parses the json files and loads their values into the arrays when starting the daemon. That way you can resume a json file.
Instead of collecting values for 1 json output either local or remote why not mix local and remote values to get a comparison.
Add something like "Which kind of graph type do you want? [bar | line | none]"
This adds the graph type option if specified.
Right now opening the config file does not work correctly. Neither vi nor nano can be called by system() without printing weird output.
Ubuntu exits the daemon with "already running" even if there is no other instance of serverstatus.
Might check if pgrep returns own pid!
For some reason the makefile does not work for me on debian. Running the makefile throws this error: "g++: error trying to exec 'as': execvp: No such file or directory". However I am not sure if this is a problem of the makefile or a wrong installation of g++. Running the commands from shell works just fine.
Needs investigation!
The function uppercase in ini.cpp throws an error when compiling under debian. On any other OS there is no error.
The first element (that's the one before the at pointer position) is calculated wrong! It uses a delta with the previous value (the newest value) which will cause somehow high negative results (like -4.5e+08).
While expanding the current project with a RAM class to monitor RAM status (active, inactive, free, ...) I noticed that all the classes (RAM, CPU and HDD) are almost alike.
I suppose there is a way to write a completely generic class for that to increase efficiency as well as file size.
OpenSSL was deprecated in OS X for a while now. However, since El Capitan it is no longer provided by the OS itself.
We may need an alternative in a not to distant future and a short-term workaround.
I want the makefile to work no matter if there is g++, g++5, clang or any other c++ compiler installed.
Sometimes the daemon seems to crash when started on FreeBSD.
Somewhere in loadfromjson function is an overflow that causes the last sequence to drop some values.
There is still some overflow...
TODO!
The sys_types that use delta to calculate values provide wrong values when read from file on start.
The problem seems to be the smaller array size.
The notify function with native OS X notifications will not work when the process is started by TotalTerminal instead of the "real" terminal.
Needs investigating.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.