If you’re interested in running Nagios within the Cacti interface you may be interested in the Nagios plugin for Cacti (NPC) project which does a good job overall in combining these two powerful tools within the monitoring/graphing world. Nevertheless, I had a database related problem during the initial setup due to the fact that NPC brings along its own schema of the ndo database which is outdated since the last release of ndoutils 1.4b8 (they added a new column called long_output).
Therefore, you want do the changes below via your mysql console to the following tables if you’d like to use the latest versions of ndoutils (1.4b8) with npc (2.0.4):
use databasename ; alter table npc_servicechecks add column long_output VARCHAR(8192) NOT NULL default '' AFTER output; alter table npc_servicestatus add column long_output VARCHAR(8192) NOT NULL default '' AFTER output; alter table npc_systemcommands add column long_output VARCHAR(8192) NOT NULL default '' AFTER output; alter table npc_statehistory add column long_output VARCHAR(8192) NOT NULL default '' AFTER output;
Afterwards NPC should work like a charm.
Add your comment below, or trackback from your own site.
Subscribe to these comments.
Be nice. Keep it clean. Stay on topic. No spam.
You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">