SlideShare une entreprise Scribd logo
1  sur  9
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

Contenu connexe

Dernier

KLINIK BATA Jual obat penggugur kandungan 087776558899 ABORSI JANIN KEHAMILAN...
KLINIK BATA Jual obat penggugur kandungan 087776558899 ABORSI JANIN KEHAMILAN...KLINIK BATA Jual obat penggugur kandungan 087776558899 ABORSI JANIN KEHAMILAN...
KLINIK BATA Jual obat penggugur kandungan 087776558899 ABORSI JANIN KEHAMILAN...
Cara Menggugurkan Kandungan 087776558899
 
February 2024 Recommendations for newsletter
February 2024 Recommendations for newsletterFebruary 2024 Recommendations for newsletter
February 2024 Recommendations for newsletter
ssuserdfec6a
 
the Husband rolesBrown Aesthetic Cute Group Project Presentation
the Husband rolesBrown Aesthetic Cute Group Project Presentationthe Husband rolesBrown Aesthetic Cute Group Project Presentation
the Husband rolesBrown Aesthetic Cute Group Project Presentation
brynpueblos04
 
Girls in Mahipalpur (delhi) call me [🔝9953056974🔝] escort service 24X7
Girls in Mahipalpur  (delhi) call me [🔝9953056974🔝] escort service 24X7Girls in Mahipalpur  (delhi) call me [🔝9953056974🔝] escort service 24X7
Girls in Mahipalpur (delhi) call me [🔝9953056974🔝] escort service 24X7
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 

Dernier (15)

March 2023 Recommendations for newsletter
March 2023 Recommendations for newsletterMarch 2023 Recommendations for newsletter
March 2023 Recommendations for newsletter
 
Social Learning Theory presentation.pptx
Social Learning Theory presentation.pptxSocial Learning Theory presentation.pptx
Social Learning Theory presentation.pptx
 
KLINIK BATA Jual obat penggugur kandungan 087776558899 ABORSI JANIN KEHAMILAN...
KLINIK BATA Jual obat penggugur kandungan 087776558899 ABORSI JANIN KEHAMILAN...KLINIK BATA Jual obat penggugur kandungan 087776558899 ABORSI JANIN KEHAMILAN...
KLINIK BATA Jual obat penggugur kandungan 087776558899 ABORSI JANIN KEHAMILAN...
 
Call Girls In Mumbai Just Genuine Call ☎ 7738596112✅ Call Girl Andheri East G...
Call Girls In Mumbai Just Genuine Call ☎ 7738596112✅ Call Girl Andheri East G...Call Girls In Mumbai Just Genuine Call ☎ 7738596112✅ Call Girl Andheri East G...
Call Girls In Mumbai Just Genuine Call ☎ 7738596112✅ Call Girl Andheri East G...
 
Goregaon West Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
Goregaon West Escorts 🥰 8617370543 Call Girls Offer VIP Hot GirlsGoregaon West Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
Goregaon West Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
 
Exploring Stoic Philosophy From Ancient Wisdom to Modern Relevance.pdf
Exploring Stoic Philosophy From Ancient Wisdom to Modern Relevance.pdfExploring Stoic Philosophy From Ancient Wisdom to Modern Relevance.pdf
Exploring Stoic Philosophy From Ancient Wisdom to Modern Relevance.pdf
 
Dadar West Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
Dadar West Escorts 🥰 8617370543 Call Girls Offer VIP Hot GirlsDadar West Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
Dadar West Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
 
February 2024 Recommendations for newsletter
February 2024 Recommendations for newsletterFebruary 2024 Recommendations for newsletter
February 2024 Recommendations for newsletter
 
2023 - Between Philosophy and Practice: Introducing Yoga
2023 - Between Philosophy and Practice: Introducing Yoga2023 - Between Philosophy and Practice: Introducing Yoga
2023 - Between Philosophy and Practice: Introducing Yoga
 
Pokemon Go... Unraveling the Conspiracy Theory
Pokemon Go... Unraveling the Conspiracy TheoryPokemon Go... Unraveling the Conspiracy Theory
Pokemon Go... Unraveling the Conspiracy Theory
 
the Husband rolesBrown Aesthetic Cute Group Project Presentation
the Husband rolesBrown Aesthetic Cute Group Project Presentationthe Husband rolesBrown Aesthetic Cute Group Project Presentation
the Husband rolesBrown Aesthetic Cute Group Project Presentation
 
Girls in Mahipalpur (delhi) call me [🔝9953056974🔝] escort service 24X7
Girls in Mahipalpur  (delhi) call me [🔝9953056974🔝] escort service 24X7Girls in Mahipalpur  (delhi) call me [🔝9953056974🔝] escort service 24X7
Girls in Mahipalpur (delhi) call me [🔝9953056974🔝] escort service 24X7
 
SIKP311 Sikolohiyang Pilipino - Ginhawa.pptx
SIKP311 Sikolohiyang Pilipino - Ginhawa.pptxSIKP311 Sikolohiyang Pilipino - Ginhawa.pptx
SIKP311 Sikolohiyang Pilipino - Ginhawa.pptx
 
Emotional Freedom Technique Tapping Points Diagram.pdf
Emotional Freedom Technique Tapping Points Diagram.pdfEmotional Freedom Technique Tapping Points Diagram.pdf
Emotional Freedom Technique Tapping Points Diagram.pdf
 
Colaba Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
Colaba Escorts 🥰 8617370543 Call Girls Offer VIP Hot GirlsColaba Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
Colaba Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
 

En vedette

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

En vedette (20)

Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 

Tutorial: Install NDOUtils

  • 2. 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.
  • 3. 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'
  • 4. 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
  • 5. 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*
  • 6. 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
  • 7. 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
  • 9. Tutorial: Install NDOUtils ..:: Filipe Batista - 2009 ::.. filipebatista.bitdoo.com