An application that receives information from client servers as cpu usage, disk usage and processes. You can find the source for the client application here https://github.com/warrenchaudhry/monitoring_agent.
Note: This application uses ActionCable for realtime streaming of data.
You will need the following things properly installed on your computer.
Clone the repository or download and uncompress the code
$ git clone git@github.com:warrenchaudhry/monitoring_server.git
$ cd monitoring_server
- Install the Rubygems dependencies
$ bundle install
It is highly recommended for you to use a virtual environment with user-based libraries instead of system-based. Check out https://rvm.io , for example. 0. Install Redis
Follow the instructions here. Once installed, make sure that redis is running. You can check by:
$ redis-cli
- Rename
config/application.yml.example
toconfig/application.yml
$ mv config/application.yml.example config/application.yml
- Be sure to change the credentials in
config/application.yml
file and please check the configuration inconfig/database.yml
for any modifications before creating the database.
DATABASE_USERNAME: mysqlusername
DATABASE_PASSWORD: mysqlpassword
- Create database and migration
$ rails db:create
$ rails db:migrate
- Seed the tables
$ rails db:seed
- The project should work from here on, but if it has been updated with new dependencies, pull the code again, and run
$ bundle install
. - Run the tests
$ rake
- Start the application
$ rails s
- Visit your application at http://localhost:3000
Once the application is running, you can access the application with the following data.
There should be given users:
Password | |
---|---|
admin@email.com | admin1234 |
- Darwin 14.5.0
Darwin Kernel Version 14.5.0: Mon Aug 29 21:14:16 PDT 2016; root:xnu-2782.50.6~1/RELEASE_X86_64 x86_64
- Ruby
ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-darwin14]
- Rails
5.0.0.1
- Gem
2.6.7
- Bundler
Bundler version 1.13.1