Web application for creating screens per host with all its graphs
With this instance on Heroku you can create screens if your Zabbix server is accessible from the Internet.
The app is deployed on a free dyno. Free dynos will sleep after a half hour of inactivity. This causes a delay of a few seconds for the first request upon waking. Subsequent requests will perform much faster
Assuming that you have already installed Git, Ruby, NodeJS
git clone https://github.com/d-vandyshev/zabbix-screens-generator
cd zabbix-screens-generator
bundle install
rails server
That runs a local webserver. On a local machine, paste the URL http://localhost:3000 into the address bar of your browser.
- Run automated build from Docker Hub:
docker run -p3000:3000 dmitvan/zabbix-screens-generator
- Open URL http://localhost:3000 in your favorite browser
- Open URL http://localhost:3000 and enter Zabbix credentials
- Select Host group
- Select the hosts for which you want to create screens
- Page with statuses
Function | Component |
---|---|
Web framework | Ruby on Rails 5 |
Design | Froala blocks |
CSS framework | Bootstrap 4 |
JS Framework | Stimulus |
Icons | SVG evil_icons |
Test Framework | Minitest |
- Place for Zabbix credentials (server, username, password): not stored
- Place for Zabbix instance: save in memory (Rails.cache) of the server for current session
- Change the code
- Check the app in production environment
RAILS_ENV=production SECRET_KEY_BASE=$(rails secret) RAILS_SERVE_STATIC_FILES=yes RAILS_LOG_TO_STDOUT=yes rails server
- Generate new assets
RAILS_ENV=production bundle exec rails assets:precompile
- Remove old JS/CSS-files
- Commit & push new generated assets