Ubuntu 14 - Install Shinken Alternative to Nagios

About

"Shinken is an open source monitoring framework based on Nagios Core which has been rewritten in python to enhance flexibility, scalability, and ease of use. Shinken is fully compatible with Nagios and supports its plugins and configurations that can be used on the go without rewriting or adjusting." - Digital Ocean Community

Installation

Download and run the installation script with the following command:

curl -L http://install.shinken-monitoring.org | /bin/bash

Update the administator's password:

editor /usr/local/shinken/etc/contacts.cfg

Update the auth secret

editor /usr/local/shinken/etc/shinken-specific.cfg

Install Mongodb support and reboot

cd /usr/local/shinken
./install -a mongodb
sudo apt-get install python-pip -y 
pip install pymongo 
sudo reboot

Now you can navigate to the server in order to configure it further or view information/alerts. Just go to http://xxx.xxx.xxx.xxx:7767

Add A Server To Monitor

There is no point having a monitoring server that doesn't monitor any other servers. Here we are going to configure the Shinken server to monitor an external entity.

Add a config file to the

/usr/local/shinken/etc/hosts/
path. E.g
editor /usr/local/shinken/etc/hosts/[put-name-here].cfg

Add the following contents to it, ensuring to fill in the details between []

define host{
   use             linux,ssh
   host_name       [unique name here]
   address         xxx.xxx.xxx.xxx
   _SNMPCOMMUNITY  [Password Here]
}

Restart the service for all changes to take effect.

sudo service shinken restart

Configure the Client

Install the snmpd service before configuring it:

sudo apt-get install snmpd -y
editor /etc/snmp/snmpd.conf

Comment out the following line:

agentAddress  udp:127.0.0.1:161

Uncomment this line:

agentAddress udp:161,udp6:[::1]:161

Replace "rocommunity public" with whatever password you put in [Password Here] e.g.

rocommunity [PASSWORD HERE]

I also had to comment out the -V systemonly in order to get CPU/RAM/Disk information etc

Restart the snmpd daemon

service snmpd restart

References

No comments:

Post a Comment