23.3 Using the Web Interface

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: ...

Get Nagios, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.