O'Reilly logo

Nagios, 2nd Edition by Wolfgang Barth

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required