Skip to content

Dashboard minimalist and non-intrusive for Linux Servers. Monitoring in real-time Proccess, CPU, memory, swap and IO with NodeJS and Socke.IO

Notifications You must be signed in to change notification settings

mobarrio/dashboard

Repository files navigation

Dashboard Linux v1.02

Dashboard minimalista y no intrusiva para servers linux. Monitoriza en tiempo real Procesos CPU, Memoria y SWAPE utilizando NodeJS y Socke.IO

Dashboard minimalist and non-intrusive for Linux Servers. Monitoring in real-time Proccess, CPU, memory and Swap with NodeJS and Socke.IO

Pre-Instalacion:

Linux:

 Install: 
 	CentOS, Redhat, Fedora: lsb_release
 	Ubuntu, Debian: lsb-release
 
 eg: CentOS 
          # yum -y install redhat-lsb-core*
     Debian 
          # apt-get install lsb-release

Instalacion:

Linux:

 $ mkdir -p /var/adm/ssoo

 $ cd /var/adm/ssoo 

 $ git clone https://github.com/mobarrio/dashboard.git

 $ chmod 755 /var/adm/ssoo/dashboard/bin/fsstat.sh 
 
 $ chmod 755 /var/adm/ssoo/dashboard/etc/dashgs.sh

 $ cd dashboard && npm install

Preparamos scripts de arranque automatico POSIX:

 $ npm -g install forever
   
 $ cp /var/adm/ssoo/dashboard/etc/dashgs.sh /etc/init.d/dashgs
   
 $ chmod 755 /etc/init.d/dashgs
   
 $ chkconfig --add dashgs

Preparamos scripts de arranque automatico SYSTEMCTL:

 $ npm -g install forever

 1. Creamos el usuario que arrancara el servicio (sin loguin)
 # adduser dashboard -s /sbin/nologin

 2. Creamos el archivo que administrara el servicio
 # vi /etc/systemd/system/dashboard.service

 [Unit]
 Description=Dashboard GSIS
 After=network.target local-fs.target remote-fs.target
 
 [Service]
 Type=forking
 User=root
 ExecStart=/var/adm/ssoo/dashboard/etc/dashgs.sh start
 ExecStop=/var/adm/ssoo/dashboard/etc/dashgs.sh stop
 Restart=on-abort
 
 [Install]
 WantedBy=multi-user.target

 3. Ejecutamos las tareas propias del servicio (Arrancar, Parar, Status, Etc.)
 Arrancar el servicio de la Dashboard
 # systemctl start dashboard

 Verificamos el status
 # systemctl status dashboard

 Paramos el servicio
 # systemctl stop dashboard

 Habilitamos el serivio en el boot
 # systemctl enable dashboard

 Deshabilitamos el serivio en el boot
 # systemctl disable dashboard

Ejecutar la app en modo DEBUG:

 $ DEBUG=dashboard:server

 $ npm start

Ejecutar la app STANDALONE:

     $ node bin/server.js

Ejecutar la app via init.d (FOREVER):

     $ /etc/init.d/dashgs start

Después ejecutamos en un navegador:

   http://server:666/

Demo

TOP Output

IOSTAT Output

FSSTAST Output

Alerts

Resumen

Credits

Esta aplicación utiliza las siguientes librerías:

- Socke.IO - by http://socket.io
- TopParser - by https://github.com/devalexqt/topparser
- Bootstrap - by http://getbootstrap.com
- Lumino Admin Bootstrap Template - by http://medialoot.com

About

Dashboard minimalist and non-intrusive for Linux Servers. Monitoring in real-time Proccess, CPU, memory, swap and IO with NodeJS and Socke.IO

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published