Need to get monitoring up now? We can do it under 5 minutes with AWS and OMD with these simple steps.
-
Create a EC2 instance
-
SSH into the instance
-
su to root
-
Install dependencies
yum install boost-program-options dialog fping graphviz graphviz-gd httpd libmcrypt libtool-ltdl mod_fcgid mysql-server net-snmp net-snmp-utils pango perl-Net-SNMP php php-mbstring php-pdo php-gd uuid xinetd xorg-x11-server-Xvfb python-ldap radiusclient-ng -y
- Download rpm
wget http://files.omdistro.org/releases/centos_rhel/omd-1.20.rhel6.x86_64.rpm
--2015-12-18 16:56:01-- http://files.omdistro.org/releases/centos_rhel/omd-1.20.rhel6.x86_64.rpm
Resolving files.omdistro.org (files.omdistro.org)... 178.248.246.154
Connecting to files.omdistro.org (files.omdistro.org)|178.248.246.154|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 114963807 (110M) [application/x-redhat-package-manager]
Saving to: ‘omd-1.20.rhel6.x86_64.rpm’
omd-1.20.rhel6.x86_64.rpm 100%[=======================================================================================================================>] 109.64M 14.7MB/s in 10s
2015-12-18 16:56:12 (10.6 MB/s) - ‘omd-1.20.rhel6.x86_64.rpm’ saved [114963807/114963807]
- Install rpm
rpm -ivh omd-1.20.rhel6.x86_64.rpm
Preparing... ################################# [100%]
Updating / installing...
1:omd-1.20-rh61-33 ################################# [100%]
- Start apache
/etc/init.d/httpd start
Starting httpd:
- Create a site
omd create
Adding /omd/sites//tmp to /etc/fstab.
Restarting Apache...httpd: apr_sockaddr_info_get() failed for ip-1.2.3.4
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
OK
Creating temporary filesystem /omd/sites//tmp...OK
Created new site with version 1.20.
The site can be started with omd start .
The default web UI is available at http://ip-1.2.3.4//
The admin user for the web applications is omdadmin with password omd.
Please do a su - for administration of this site.
- Start OMD
omd start
Doing 'start' on site core:
Starting rrdcached...OK
Starting npcd...OK
Starting nagios...OK
Starting dedicated Apache for site core...OK
Initializing Crontab...OK
Now your entire monitoring platform is setup all you need to do is setup your checks; see below links for further information on configuration:
-
http://omdistro.org/doc/configuration_basics
-
http://blog.unicsolution.com/2014/02/how-to-setup-omd-in-1-hour.html