|Version 7 (modified by divagater, 5 years ago)|
Table of Contents
- Q: What is Nagios Plugin for Cacti (NPC)?
- Q: Who develops NPC?
- Q: Who can use Wifidog?
- Q: What can it do?
- Q: How does it work?
- Q: What does it run on?
- Do Nagios and Cacti/NPC need to be installed on the same server?
- Q: What does it look like?
- Q: Where can I find help?
General questions about NPC.
Q: What is Nagios Plugin for Cacti (NPC)?
Q: Who develops NPC?
NPC is written and maintained by Billy Gunn (Divagater on most forums).
Q: Who can use Wifidog?
NPC is free software released under the GPL license and can be used by any person or company.
Q: What can it do?
It can do anything the current Nagios UI can do but with a much improved interface. Additionally, it has some additional features to integrate with Cacti like creating data input methods from Nagios performance data. For a complete list of features see the features page?.
Q: How does it work?
Q: What does it run on?
The server side components require a LAMP environment.
The client side is known to work in Firefox 2.x and IE7.
Do Nagios and Cacti/NPC need to be installed on the same server?
No. The main consideration is that if you want to issue commands to the Nagios process from NPC, then NPC needs to be able to write commands to the Nagios command file.
Q: What does it look like?
There are various screenshots available here.
Q: Where can I find help?
For the current alpha release of NPC (npc-2.0.0a.127) please post requests for help on this Cacti forum thread.
Change this line:
$module = 'layout';
$module = 'layoutDev';
Q: Why does the Nagios process die immediatley after startup?
The Nagios process will die immediatley after startup if ndo2db is running with incorrect database configuration. For instance a bad database password in ndo2db.cfg will generate the following error in syslog:
Mar 31 21:25:49 acid ndo2db: Error: Could not connect to MySQL database: Access denied for user 'cactiuser'@'localhost' (using password: YES)
The ndo2db daemon will continue to run even after generating the above error however Nagios will not start.
Q: Why aren't my NPC tables populating with data?
There could be many reasons for this related to your Nagios and ndo2db setup. One common reason however is that you have enabled debugging in ndo2db.cfg and then launched ndo2db as root. The logfile will be created as root prior to ndo2db switching to a secure user like nagios as specified in the ndo2db.cfg. ndo2db is now running with less privileges and connot write to the debug log file which causes the whole thing to stop working.
To correct this look in ndo2db.cfg and see where you are writing the debug logfile. Verify that file is owned by the user that ndo2db is running as. If needed, change the owner of the file to the correct user. The default user is nagios.
Q: Error: mysql_query() failed for …
Some users may see an error similar to the following in their nagios log or syslog:
Error: mysql_query() failed for 'INSERT INTO npc_configfilevariables SET instance_id='1', configfile_id='7', varname='cfg_dir', varvalue='/usr/local/nagios/etc/servers/fw1\.cfg''
This is a bug with ndo2db. Fortunately NPC is not currently using the data stored in the npc_configfilevariables table and this error can be safely ignored.