• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Tutorial: Install NDOUtils
 

Tutorial: Install NDOUtils

on

  • 19,618 views

Tutorial: Install NDOUtils

Tutorial: Install NDOUtils

Statistics

Views

Total Views
19,618
Views on SlideShare
19,357
Embed Views
261

Actions

Likes
0
Downloads
132
Comments
0

6 Embeds 261

http://www.slideshare.net 110
http://filipebatista.bitdoo.com 107
http://filipebatista.wordpress.com 32
http://www.e-presentations.us 10
http://static.slidesharecdn.com 1
http://translate.googleusercontent.com 1

Accessibility

Upload Details

Uploaded via as OpenOffice

Usage Rights

CC Attribution-NonCommercial-NoDerivs LicenseCC Attribution-NonCommercial-NoDerivs LicenseCC Attribution-NonCommercial-NoDerivs License

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Tutorial: Install NDOUtils Tutorial: Install NDOUtils Presentation Transcript

    • Tutorial Install NDOUtils
    • Tutorial: Install NDOUtils If you have many hosts in Nagios, you may want to manipulate the generated data in other applications. The best way to do this is to store the Nagios data into a database. NDOUtils allows you to export current and historical data from one or more Nagios instances to a MySQL database.
    • Tutorial: Install NDOUtils After installing Nagios go to http://www.nagios.org/download/addons and download the latest version of NDOUtils. Make sure you have MySQL installed. If you haven't installed yet, type: [ [email_address] ~]$yum install mysql mysql-server mysql-server And define your MySQL root password [ [email_address] ~]$/usr/bin/mysqladmin -u root password 'new-password'
    • Tutorial: Install NDOUtils Extract the NDOUtils tarball. [ [email_address] ~]$ tar xvzf ndoutils-1.4x.tar.gz After this compile and install. [ [email_address] ~]$ cd ndoutils-1.4x [ [email_address] ndoutils-1.4x ]$ ./configure --prefix=/usr/local/nagios/ --enable-mysql --disable-pgsql --with-ndo2db-user=nagios –with-ndo2db-group=nagcmd [ [email_address] ndoutils-1.4x ]$make
    • Tutorial: Install NDOUtils [ [email_address] ndoutils-1.4x ]$ cd src [ [email_address] src ]$ cp ndomod-3x.o ndo2db-3x file2sock log2ndo /usr/local/nagios/bin [ [email_address] ~]$ cd ndoutils-1.4x [ [email_address] ndoutils-1.4x ]$ ./configure --prefix=/usr/local/nagios/ --enable-mysql --disable-pgsql --with-ndo2db-user=nagios –with-ndo2db-group=nagcmd [ [email_address] ndoutils-1.4x ]$make Since there is no make install you'll have to copy manually some files. Inside the decompress folder of NDOUtils type: Also copy the sample NDOUtils config files. [ [email_address] ndoutils-1.4x ]$ cd config [ [email_address] src ]$ cp ndo2db.cfg ndomod.cfg /usr/local/nagios/etc Change the file permissions of the binaries chmod 774 /usr/local/nagios/bin/ndo* chown nagios:nagcmd /usr/local/nagios/bin/ndo*
    • Tutorial: Install NDOUtils [ [email_address] ndoutils-1.4x ]$ cd src [ [email_address] src ]$ cp ndomod-3x.o ndo2db-3x file2sock log2ndo /usr/local/nagios/bin Now we need to create the MySQL database and initialize. [ [email_address] ndoutils-1.4x ]$ cd config [ [email_address] src ]$ cp ndo2db.cfg ndomod.cfg /usr/local/nagios/etc [ [email_address] ndoutils-1.4x ]mysql -u root -p mysql>create database nagios; mysql>GRANT ALL ON nagios.* TO nagios@localhost IDENTIFIED BY &quot;nagios&quot;; mysql>exit [ [email_address] ndoutils-1.4x ]mysql -u nagios -p nagios < db/mysql.sql Edit the nagios.cfg (/usr/local/nagios/etc/nagios.cfg) and add the following line: Now we need to create the MySQL database and initialize. broker_module=/usr/local/nagios/bin/ndomod-3x.o config_file=/usr/local/nagios/etc/ndomod.cfg Also make sure you have the following line: event_broker_options=-1
    • Tutorial: Install NDOUtils Edit the ndomod.cfg and ndo2db.cfg config files (/usr/local/nagios/etc) with the proper settings (database name, prefix, username, password). After this start the NDO2DB daemon. [ [email_address] ndoutils-1.4x ]mysql -u root -p mysql>create database nagios; mysql>GRANT ALL ON nagios.* TO nagios@localhost IDENTIFIED BY &quot;nagios&quot;; mysql>exit [ [email_address] ndoutils-1.4x ]mysql -u nagios -p nagios < db/mysql.sql /usr/local/nagios/bin/ndo2db-3x -c /usr/local/nagios/etc/ndo2db.cfg
    • Tutorial: Install NDOUtils
    • Tutorial: Install NDOUtils ..:: Filipe Batista - 2009 ::.. filipebatista.bitdoo.com