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:
- alter table npc_eventhandlers add long_output TEXT NOT NULL default '' after output;
-
- alter table npc_hostchecks add long_output TEXT NOT NULL default '' after output;
-
- alter table npc_hoststatus add long_output TEXT NOT NULL default '' after output;
-
- alter table npc_notifications add long_output TEXT NOT NULL default '' after output;
-
- alter table npc_servicechecks add long_output TEXT NOT NULL default '' after output;
-
- alter table npc_servicestatus add long_output TEXT NOT NULL default '' after output;
-
- alter table npc_statehistory add long_output TEXT NOT NULL default '' after output;
-
- alter table npc_systemcommands add long_output TEXT NOT NULL default '' after output;
-
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!