Cover by Wolfgang Barth

Safari, the world’s most comprehensive technology and business learning platform.

Find the exact information you need to solve a problem on the fly, or go deeper to master the technologies and skills you need to succeed

Start Free Trial

No credit card required

O'Reilly logo

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

Find the exact information you need to solve a problem on the fly, or go deeper to master the technologies and skills you need to succeed

Start Free Trial

No credit card required