In my previous post’s, i’ve explained on How to setup Sensu server and setting up check’s and handler’s. The default dashboard is very simple with limited options, but for those who wants a full fledged dashboard, there is a Rails project in Github Sensu-Admin. So let’s try setting it up.
First clone the repository from Github.
$ git clone https://github.com/sensu/sensu-admin.git
Now go to sensu-admin folder, and run
bundle install to install all the dependency gems. Now go inside the ”config” folder, edit the ”database.yml” and fill in the database details. I’m going to use mysql, below is my database config.
development: adapter: mysql2 database: sensudb username: sensu password: secreto host: localhost production: adapter: mysql2 database: sensudb username: sensu password: secreto host: localhost
rake db:migrate and then
rake db:seed. The seed file creates auser account named ”firstname.lastname@example.org” with password ”secret”.
We can start the Rails app by running “rails s”, this will start the app using the thin webserver at port 3000. Access the dashboard using the url ”http://server_ip:3000” Login to the dashboard with the email@example.com and go to the “*Account” tab and modify the default user name and password. Now we go through tabs and check if it displays the checks, clients, events etc properly. This is a screenshot of the SensuAdmin dashboard.