msgbartop
MAC OS X, Linux, Windows and other IT Tips and Tricks
msgbarbottom

13 Sep 14 Installing Shinken in Debian Wheezy

Debian Wheezy does offer the installation of the full (a bit old)shinken, BUT it doesn’t offer the Installation of the WebUI.
Here is a better way to install everything including pnp4nagios and check_mk in one go:

STEPS:
Install Shinken
wget //www.shinken-monitoring.org/install -O /tmp/install_shinken.sh
cd /tmp && sh install_shinken.sh

Configure shinken
vim /usr/local/shinken/etc/shinken-specific.cfg
Change the //YOURSERVERNAME/ in:
define module {
module_name GRAPHITE_UI
module_type graphite_webui
uri //YOURSERVERNAME/
templates_path /usr/local/shinken/share/templates/graphite/
}

Because of a bug in the stop arbiter script we need to make some tiny changes:
Edit /usr/local/shinken/bin/stop_arbiter.sh
change the line
kill $(cat "$DIR"/../var/arbiterd.pid)
to
kill $(cat "$DIR"/../var/arbiter.pid)

Unfortunately the process skonf doesn’t want to stop when I run the script: /usr/local/shinken/bin/stop_all.sh
So we need to doctor the script:
vim /usr/local/shinken/bin/stop_skonf.sh
Change the following:
FROM:
kill $(cat "$DIR"/../var/skonfd.pid)
TO:
kill -9 $(ps aux | grep skonf.cfg | grep -v 'grep' | awk '{print $2}')

Start the whole shinken
cd /usr/local/shinken/bin
./launch_all.sh

WebUI


Change the password of the admin user:
cd /usr/local/shinken/etc/
htpasswd htpasswd.users admin


Now connect to the WebUI

In browser:
//yourserver.name:7727/
To Stop all the services
/usr/local/shinken/bin/stop_all.sh
To de-install shinken
cd /usr/local/shinken/
./install -u

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: