The Web interface for the EventDB consists of a single PHP file,
index.php, which is included in the tarfile in the subdirectory
webinterface. It accesses the database directly and therefore requires details of the database, such as user and password. You should check (and change) the following four lines of the file accordingly:
// Database cset('db.user', 'eventdb'); cset('db.pass', 'mypasswd'); cset('db.host', 'localhost'); cset('db.name', 'eventdb');
Then you copy
index.php to the (previously created) directory
/usr/local/nagios/share/eventdb. The Web interface, as shown in Figure 23-2, can then be reached via the URL http://nagios-server/nagios/eventdb/index.php.
The Web interface is roughly divided into three areas: ...