In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article mainly shows you "Nagios how to integrate cacti deployment", the content is easy to understand, clear, hope to help you solve doubts, the following let the editor lead you to study and learn "Nagios how to integrate cacti deployment" this article.
The integration of cacti and nagios uses a plug-in of cacti, nagios for cacti (NPC). Its principle is to import the data of nagios into the mysql database (cacti's library) through ndo2db, and then cacti reads the database information to show the results of nagios.
Note: to install nagios, you can refer to the article to deploy the Nagios monitoring system, and to install cacti, you can refer to the article to build a cacti monitoring system. This article is installed on rhel6.0. Pay attention to the version of the system when you refer to it.
1. Install ndoutils:
First, you need to install ndoutils to import nagios data into the mysql database.
Make sure that the development package for mysql is installed to compile ndoutils
Release the ndoutils package for preconfiguration and compilation before compilation
Note: if the installed RHEL6 is a 64-bit system, copy / usr/lib64/mysql to the / usr/lib directory
Next install, not with makeinstall
2. Modify the nagios main configuration file so that NDoutils can be loaded in Nagios
[root@localhost /] # vi / usr/local/nagios/etc/nagios.cfg
Ensure that the following exist:
Check_external_commands=1
Command_check_interval=-1
Event_broker_options=-1
Process_performance_data=1
Add the following line of configuration items:
This completes the addition.
3. Modify the configuration file ndocmd.cfg. The contents of my configuration file are as follows:
4. Modify the configuration file ndo2db.cfg. My configuration file here is as follows:
Here is the user and password and database used by Cacti in mysql, because our npc plugin is used in cacti.
5. Then start NDoutils and Nagios respectively, and add NDoutils to the rc.lcoal file, as the system starts.
6. Install NPC plug-in and enable npc plug-in
Access the WEB management interface of cacti:
In the web console of the cacti system, click the "User Management" link under "Utilites" in the navigation bar, modify the properties of the admin user, select the "Plugin Management" item, and click "Save" to save.
Refresh the cacti console page, and there will be an extra "Plugin Management" link under "configuration" in the left navigation bar. Click this link to enter the plug-in management page, where the button in the "Actions" column loads the npc plug-in and enables the npc plug-in.
Then select "settings" in the right column and click on the label of npc
Check Remote Commands
Nagios Command File Path:/usr/local/nagios/var/rw/nagiosNaNd
IP/nagios/ of the Nagios URL: http://nagios server
Just save it. The configuration of this article is as follows:
At this point, the installation is complete
7. Restart mysql httpd ndo nagios and other services.
[root@localhost /] # service mysqld restart
[root@localhost /] # service httpd restart
[root@localhost /] # service nagios restart
[root@localhost /] # / usr/local/nagios/bin/ndo2db-3x-c / usr/local/nagios/etc/ndo2db.cfg
If ndo2db is already started, restart ndo2db as follows
Execute tail-20 / var/log/messages # # to see if there are any errors. If there is no error, please continue.
Visit http://yourserver/cacti/
Select the npc tab to see the host information detected by nagios. The only drawback is that I am a little slow to open this page.
These are all the contents of the article "how Nagios integrates cacti deployment". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.