|Version 7 (modified by divagater, 5 years ago)|
NPC Quick Start Guide
The purpose of this guide is to outline the minimum steps necessary to get NPC installed and running.
Below are the minimum requirements:
NPC has been tested with the above application versions. PHP 5.2 is required do to the use of PDO and JSON. PHP 5.1 with PDO and JSON modules installed "may" work but will not be supported.
NOD2DB is part of the NDOUtils package. Nagios hands events off to NDO2DB via the event broker. NDO2DB handles the actual inserts of Nagios data into the NPC tables.
Refer to the Nagios documentation for installation. Some parts of NPC like reporting and the status map use the Nagios interface by wrapping the Nagios CGI's in an Iframe. Be sure to have the Nagios web UI working if you want to use the reporting and status map features.
The following parameters are found in the Nagios configuration file nagios.cfg
The power of NPC is greatly enhanced by the ability to issue commands to the Nagios process. To enable external commands in Nagios set:
Check external commands as often as possible.
Broker all events.
Set this to the actual location of the even broker module and config that you used when setting up NDO2DB above.
If you want to use performance data from Nagios plugins to create graphs in cacti then set the following parameter. Setting host_perfdata_command and service_perfdata_command is not necessary. The performance data will be written to the NPC database where it can be polled by cacti using the perfdata.php script included with NPC.