Notes for configuring nagios in cacti

Source: Internet
Author: User

In the configurationCactiShould Pay Attention to a lot of issues,NagiosIs one of them!

I will not repeat how to configure nagios and how to configure cacti. I will find a lot on the Internet, but they will not continue to talk about the appearance of the cacti and nagios interfaces, in fact, there are a lot of problems. I am here to "apply for an ICP filing" for your convenience.

1. the worst problem: cacti 0.8.7g conflicts with npc.2.0.4... this problem has made me N for a long time. No matter how the configuration works, the npc in the plugins won't appear, and it cannot be broken. We will downgrade cacti and cacti-plugin to version 0.8.7e. Everything is done.

2. graphs does not display the image, but click it to display it: Go to setting and select the rddtool version. My version is 1.4, but the default value is only 1.3. It can also be used if you select 1.3.

3.The most difficult link, the conflict between ndoutils-1.4b9.tar.gz and cacti0.8.7e (whether there is still a conflict between 0.8.7g or not I did not test) will directly cause the data in nagios to be invisible even if the npc appears. I stared at log for a long time and found that N tables have missing fields. I need to add fields. The SQL statement is as follows:

 
 
  1. alter table npc_eventhandlers add long_output TEXT NOT NULL default '' after output;  
  2.  
  3. alter table npc_hostchecks add long_output TEXT NOT NULL default '' after output;  
  4.  
  5. alter table npc_hoststatus add long_output TEXT NOT NULL default '' after output;  
  6.  
  7. alter table npc_notifications add long_output TEXT NOT NULL default '' after output;  
  8.  
  9. alter table npc_servicechecks add long_output TEXT NOT NULL default '' after output;  
  10.  
  11. alter table npc_servicestatus add long_output TEXT NOT NULL default '' after output;  
  12.  
  13. alter table npc_statehistory add long_output TEXT NOT NULL default '' after output;  
  14.  
  15. alter table npc_systemcommands add long_output TEXT NOT NULL default '' after output;  
  16.  

4. finally, I would like to remind you that the cfg file permission in the nagios/etc directory is the same as that in 3, make sure that users running nagios and ndb (generally nagios) have the read permission on the cfg file, especially the configuration files added to ndoutils later.

The above four suggestions should all attract the attention of cacti configuration: nagios considerations!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.