Nagios Core 4 on CentOS 7: Part 4 – Installation of V-Shell 2

For V-Shell2 to work for Nagios Core 4 on CentOS 7, we’ll need to make some modifications to the configuration file before running the installer. (I used nagiosvshell-2.x.zip for my installation.)

First, we’ll install dependencies.

yum install -y unzip

Download or FTP, then extract the V-Shell2 zip.

cd ~
unzip nagiosvshell-2.x.zip

We’re going to need to edit the configuration file here before installation.

cd nagiosvshell-2.x
vi config.php

Press the I key to begin editing then make sure to update the “htpasswd_file” location as seen below under the “redhat” defaults array.

$defaults['redhat'] = array(
        'targetdir'       => '/usr/local/vshell2',
        'apacheconfdir'   => '/etc/httpd/conf.d',
        'apacheconffile'  => 'vshell2.conf',
        'apacheuser'      => 'apache',
        'apachegroup'     => 'apache',
        'etc_conf'        => 'vshell2.conf',
        'htpasswd_file'   => '/usr/local/nagios/etc/htpasswd.users',
        'vshell_baseurl'  => 'vshell2',
        'nagios_coreurl'  => 'nagios',
        'TTL'             => '90',
        'update_interval' => '90',
        'lang'            => 'en_GB',
);

Press the Escape key and then type “:wq!” without the quotes to save and exit.

:wq!

Install V-Shell2 and restart the web service.

./install.php
service httpd restart

You should be able to navigate to and view the V-Shell2 web page now.

https://serverip/vshell2/

If everything worked properly, you should remove the VShell-2 installation files.

cd ~ 
rm-rf nagiosvshell*

This post is only one part of a series of Nagios documentation I am be preparing.

Nagios Core 4 on CentOS 7: Part 1 – Installation

Nagios Core 4 on CentOS 7: Part 2 – Installation and Configuration of PNP4Nagios

Nagios Core 4 on CentOS 7: Part 3 – Installation and Configuration of Grafana over HTTPS

Nagios Core 4 on CentOS 7: Part 4 – Installation of V-Shell 2

Continue Reading