{"id":2465,"date":"2013-07-30T18:59:23","date_gmt":"2013-07-30T10:59:23","guid":{"rendered":"http:\/\/rmohan.com\/?p=2465"},"modified":"2013-07-31T19:30:01","modified_gmt":"2013-07-31T11:30:01","slug":"nagiosql","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=2465","title":{"rendered":"NagiosQL"},"content":{"rendered":"<p>NagiosQL 3.2<\/p>\n<p>NagiosQL 3.2 ? Installation Page 2<br \/>\nTable of contents<br \/>\n1 Installation &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;. 3<br \/>\n1.1 Prerequisites &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.. 3<br \/>\n1.2 Prepare directory structure &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;. 3<br \/>\n1.3 Nagios configuration files &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;. 4<br \/>\n1.4 Prepare Apache configuration&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230; 5<br \/>\n1.5 Install PHP modules (SSH) &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230; 6<br \/>\n1.6 Install NagiosQL &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230; 6<br \/>\n1.7 NagiosQL installer (new installation) &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.. 7<br \/>\n1.8 Update NagiosQL &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230; 12<br \/>\n2 Configure NagiosQL &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230; 15<br \/>\n2.1 Base configuration &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;. 15<br \/>\n2.2 Domain config (paths) &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;. 16<br \/>\n2.2.1 Data domains &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;. 16<br \/>\n2.2.2 Configuration domain &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230; 18<br \/>\n2.3 2.3 Setup remote access (FTP or SSH\/SFTP) &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;. 20<br \/>\n2.3.1 Remote access via FTP &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.. 20<br \/>\n2.3.2 Remote access via SSH\/SFTP &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;. 20<br \/>\n3 Nagios Configuration &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;. 22<br \/>\n3.1 Nagios Configuration file &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230; 22<br \/>\n3.2 Additional permissions &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230; 22<br \/>\n3.2.1 Check command &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.. 22<br \/>\n3.2.2 Configuration editor &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.. 23<br \/>\n3.2.3 Restart command &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230; 23<br \/>\n3.3 Support page &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.. 23<br \/>\n3.3.1 Common checks &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.. 23<br \/>\n3.3.2 Config checks &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;. 24<br \/>\nNagiosQL 3.2 ? Installation Page 3<br \/>\n1 Installation<br \/>\n1.1 Prerequisites<br \/>\nNagiosQL is a web application and requires a running web server including PHP support and a database<br \/>\nserver.<br \/>\n? Apache web server<br \/>\n? MySQL Server version 4.1 or above<br \/>\n? PHP version 5.2 or above<br \/>\n? Nagios 2.x or 3.x<br \/>\n? additional PHP modules:<br \/>\n? session<br \/>\n? MySQL (php5?mysql)<br \/>\n? gettext<br \/>\n? filter<br \/>\n? ftp (optional \u2013 for FTP connections to remote servers)<br \/>\n? SSH (PECL module \u2013 optional \u2013 for SSH\/SCP connections to remote servers)<br \/>\n1.2 Prepare directory structure<br \/>\nNagiosQL stores the Nagios configuration files in a separate directory structure. This should preferably be<br \/>\ncreated by a super user (root). Where the files are stored is left to the administrator, in this guide we will<br \/>\nuse the folder \/etc\/nagiosql. Please note that this directory structure has to be added to the Nagios<br \/>\nconfiguration file nagios.cfg later on so Nagios can find its own configuration files.<br \/>\nThis directory structure has to be created on the server running Nagios.<br \/>\n# mkdir \/etc\/nagiosql<br \/>\n# mkdir \/etc\/nagiosql\/hosts<br \/>\n# mkdir \/etc\/nagiosql\/services<br \/>\n# mkdir \/etc\/nagiosql\/backup<br \/>\n# mkdir \/etc\/nagiosql\/backup\/hosts<br \/>\n# mkdir \/etc\/nagiosql\/backup\/services<br \/>\nThis way NagiosQL will store all configuration files below \/etc\/nagiosql. Host configurations will be stored<br \/>\nin \/etc\/nagiosql\/hosts, service configurations in \/etc\/nagiosql\/services. The backup structure will hold the<br \/>\nprevious version of a configuration file.<br \/>\nNagiosQL will run as a web application so you have to make sure that the web server daemon has write<br \/>\npermissions on these folders if this is a local installation. Furthermore the Nagios daemon must have read<br \/>\npermissions. If the users of both daemons are unknown you can use the following commands:<br \/>\n# ps -ef | grep http<br \/>\nroot 2999 1 0 Jul04 ? 00:00:10 \/usr\/sbin\/httpd2-prefork -f \/etc\/apache2\/httpd.conf<br \/>\nwwwrun 3123 2999 0 Jul04 ? 00:00:00 \/usr\/sbin\/httpd2-prefork -f \/etc\/apache2\/httpd.conf<br \/>\nThe user running the web server daemon is wwwrun.<br \/>\n# ps -ef | grep nagios<br \/>\nnagios 2902 1 0 Jun22 ? 00:05:39 \/usr\/sbin\/nagios -d \/etc\/nagios\/nagios.cfg<br \/>\nThe user running the Nagios daemon is nagios but in this case we need the group.<br \/>\n# id nagios<br \/>\nuid=111(nagios) gid=111(nagios) groups=111(nagios)<br \/>\nThe group of the user running the Nagios daemon is called nagios as well.<br \/>\nNagiosQL 3.2 ? Installation Page 4<br \/>\nNow we can set the permissions of the structure as follows:<br \/>\n# chown \u2013R wwwrun.nagios \/etc\/nagiosql<br \/>\nAlternatively the permissions can be set to 750 (directories), and 640 (cfg files), respectively.<br \/>\nUsing remote Nagios installations being administered by NagiosQL via FTP or SSH\/SCP this directory<br \/>\nstructure has to be created on the remote system. Then instead of the web server daemon user you have<br \/>\nto set write permissions on the directories for the user accessing via FTP or SSH\/SCP.<br \/>\n1.3 Nagios configuration files<br \/>\nNagiosQL needs read\/write permissions on some Nagios configuration files as well. The following files are<br \/>\naffected:<br \/>\nNagios main configuration file: nagios.cfg (write permissions)<br \/>\nNagios CGI configuration file: cgi.cfg (write permissions)<br \/>\nNagios process file: nagios.pid or nagios.lock (read permissions)<br \/>\nNagios command pipe: nagios.cmd (write permissions)<br \/>\nThe location of these files can be determined using the \u201efind\u201c command:<br \/>\n# find \/ -name nagios.cfg<br \/>\n\/etc\/nagios\/nagios.cfg<br \/>\n# find \/ -name cgi.cfg<br \/>\n\/etc\/nagios\/cgi.cfg<br \/>\n# find \/ -name nagios.pid<br \/>\n\/var\/run\/nagios.pid<br \/>\n# find \/ -name cgi.cfg<br \/>\n\/var\/spool\/nagios\/nagios.cmd<br \/>\nPlease note that the web server daemon and the Nagios daemon have to get the necessary permissions.<br \/>\nThis can be accomplished in several ways via user\/group permissions. Following an example for a local<br \/>\ninstallation:<br \/>\n# chown \u2013R wwwrun.nagios \/etc\/nagios\/nagios.cfg<br \/>\n# chown \u2013R wwwrun.nagios \/etc\/nagios\/cgi.cfg<br \/>\n# chown \u2013R wwwrun.nagios \/var\/spool\/nagios\/nagios.cmd<br \/>\n# chmod 640 \/etc\/nagios\/nagios.cfg<br \/>\n# chmod 640 \/etc\/nagios\/cgi.cfg<br \/>\n# chmod 660 \/var\/spool\/nagios\/nagios.cmd<br \/>\nRead permissions on the process file are normally achieved via standard permissions 644 but in this case<br \/>\nthe path should be remembered. All other paths should be jotted down as well so you can fill them in into<br \/>\nthe NagiosQL configuration domain.<br \/>\nNagiosQL 3.2 ? Installation Page 5<br \/>\n1.4 Prepare Apache configuration<br \/>\nNow a web server directory has to be created where the NagiosQL web application can be installed later<br \/>\non. This guide will use \/opt\/nagiosql.<br \/>\n# mkdir \/opt\/nagiosql<br \/>\n# chown wwwrun \/opt\/nagiosql<br \/>\nThe setting of two options in php.ini of the Apache web server should be verified (using openSuSE\/SLES the<br \/>\nlocation is \/etc\/php5\/apache\/php.ini, Fedora, CentOS \/etc\/php.ini, Debian \/etc\/php5\/apache2\/php.ini):<br \/>\nfile_uploads = On<br \/>\nsession.auto_start = 0<br \/>\ndate.timezone = &#8220;Europe\/Zurich&#8221; (bzw. &#8220;Europe\/Berlin&#8221; oder &#8220;Europe\/London&#8221; etc.)<br \/>\nPlease create a configuration file for the web server. The location differs between distributions. Using<br \/>\nopenSuSE\/SLES\/Debian the location is \/etc\/apache2\/conf.d, Fedora, CentOS \/etc\/httpd\/conf.d.<br \/>\n# touch \/etc\/apache2\/conf.d\/nagiosql.conf<br \/>\nThe file can be modified using your favourite editor (e.g. vi) and should have the following contents:<br \/>\n# NAGIOSQL SAMPLE CONFIG SNIPPETS FOR APACHE WEB SERVER<br \/>\n# Last Modified: 03-24-2011<br \/>\n#<br \/>\n# This file contains examples of entries that need<br \/>\n# to be incorporated into your Apache web server<br \/>\n# configuration file. Customize the paths, etc. as<br \/>\n# needed to fit your system.<br \/>\nAlias \/nagiosql &#8220;\/opt\/nagiosql&#8221;<br \/>\n&lt;Directory &#8220;\/opt\/nagiosql&#8221;&gt;<br \/>\nOptions None<br \/>\nAllowOverride None<br \/>\nOrder allow,deny<br \/>\nAllow from all<br \/>\n# Order deny,allow<br \/>\n# Deny from all<br \/>\n# Allow from 127.0.0.1<br \/>\n# AuthName &#8220;NagiosQL Access&#8221;<br \/>\n# AuthType Basic<br \/>\n# AuthUserFile \/etc\/nagiosql\/auth\/nagiosql.users<br \/>\n# Require valid-user<br \/>\n&lt;\/Directory&gt;<br \/>\nIf you want to use basic Apache authentication the lines in red have to be activated, the blue ones<br \/>\ndeactivated. The path to AuthUserFile has to be adapted to your environment. Besides basic authentication<br \/>\nyou can use every other authentication method supported by Apache (LDAP\/Kerberos\/MySQL\/etc.) \u2013<br \/>\nplease consult the Apache documentation for details.<br \/>\nPlease verify that Apache processes these *.conf files at all. This might be done via http.conf or using a<br \/>\nsuitable VirtualHost configuration:<br \/>\nInclude \/etc\/apache2\/conf.d\/nagiosql.conf<br \/>\nDon\u2019t forget to create the web folder, test the new configuration and activate the changes<br \/>\n(SLES\/openSuSE):<br \/>\n# rcapache2 configtest<br \/>\n# rcapache2 restart<br \/>\nFedora\/RHEL\/CentOS:<br \/>\n# service http restart<br \/>\nDebian\/Ubuntu:<br \/>\n# \/etc\/init.d\/apache2 restart<br \/>\nNagiosQL 3.2 ? Installation Page 6<br \/>\n1.5 Install PHP modules (SSH)<br \/>\nIf PHP modules are missing (prerequisites or installer), they have to be installed before continuing. In most<br \/>\ncases this is possible using the tools included in your distribution (YaST\/apt?get\/rpm). A special case is the<br \/>\nSSH module. Following some instructions on how to install SSH for NagiosQL.<br \/>\nTo install the SSH module the tool PECL is needed. Normally this can be installed using the package tool<br \/>\n(YaST\/apt?get\/rpm).<br \/>\nIf PECL is installed it can be called issuing:<br \/>\n# pecl<br \/>\nWithout any parameters some help text is shown. If the system is behind a proxy server, it might be<br \/>\nnecessary to configure PECL to use it:<br \/>\n# pecl config-set http_proxy http:\/\/proxy.myserver.tld:8080<br \/>\n# pecl config-show<br \/>\nNow the SSH module can be installed:<br \/>\n# pecl install ssh2<br \/>\nThen is has to be included in php.ini. Don\u2019t forget to restart Apache:<br \/>\nextension = ssh2.so<br \/>\n# rcapache2 restart<br \/>\nThe setup of a user for SSH is shown later on in this guide.<br \/>\n1.6 Install NagiosQL<br \/>\nNow you can install NagiosQL into the new web folder. Please copy it to \/opt (not \/opt\/nagiosql) and<br \/>\nunpack it:<br \/>\n# cd \/opt<br \/>\n# gunzip \u2013c nagiosql_320.tar.gz | tar xf \u2013<br \/>\n# mv nagiosql32 nagiosql<br \/>\n# chown \u2013R wwwrun \/opt\/nagiosql<br \/>\n# chmod 750 \/opt\/nagiosql\/config<br \/>\nNow NagiosQL should be reachable via your web browser:<br \/>\nhttp:\/\/localhost\/nagiosql<br \/>\nhttp:\/\/mein.virtualhost.tld\/nagiosql<br \/>\nNagiosQL 3.2 ? Installation Page 7<br \/>\n1.7 NagiosQL installer (new installation)<br \/>\nNormally the installer is started automatically during the first call of NagiosQL. You might start it manually<br \/>\nas well:<br \/>\nhttp:\/\/localhost\/nagiosql\/install\/index.php<br \/>\nIf all is correct your browser should something like the following:<br \/>\nThis page just shows a short list of the current prerequisites for the installation of NagiosQL. Additionally it<br \/>\nis possible to select your favourite language.<br \/>\nSTART UPDATE is only available if a valid version of settings.php of a previous version was copied to<br \/>\n\/opt\/nagiosql\/config. The update is described later on in 1.8.<br \/>\nNagiosQL 3.2 ? Installation Page 8<br \/>\nClick START INSTALLATION to continue.<br \/>\nNext are the environment tests divided into seven sections.<br \/>\nThe following image shows an executable environment:<br \/>\nChecking Client:<br \/>\nIt is checked if the browser processes JavaScript and if this is activated. Some browser add?ons can disable<br \/>\nJavaScript \u2013 if this is the case JavaScript has to be enabled for NagiosQL explicitly.<br \/>\nCheckin PHP version:<br \/>\nIt is checked if the PHP version is adequate. If this is not the case you have to update your PHP version.<br \/>\nConsult the documentation of your distribution for details.<br \/>\nNagiosQL 3.2 ? Installation Page 9<br \/>\nChecking PHP extensions:<br \/>\nThe first PHP extensions are mandatory. Missing ones must be installed to be able to use NagiosQL. The<br \/>\noptional extensions only have to be installed if you want to use the appropriate options of NagiosQL.<br \/>\nChecking available database connections:<br \/>\nNagiosQL requires at least one PHP module to interface with a database (e.g. module MySQL).<br \/>\nChecking php.ini\/.htaccess settings:<br \/>\nIt is checked if the required settings in php.ini are correct (see 1.4)<br \/>\nChecking System Permissions:<br \/>\nIt is checked if all NagiosQL files are readable\/writeable. At the most some permissions have to be<br \/>\nmodified. If you followed this guide all settings should be correct already.<br \/>\nYou can recheck the environment by calling install\/index.php and clicking START INSTALLATION once again.<br \/>\nIf all tests are successful you can click on \u201eNext\u201c to get to the next page:<br \/>\nNagiosQL 3.2 ? Installation Page 10<br \/>\nOn this page the information for the database server is specified.<br \/>\nDatabase Type: Select the database type (not yet active in 3.2.0)<br \/>\nDatabase Server: Host name of the database server<br \/>\nLocal hostname or IP address: Host name or IP address of the web server<br \/>\nImportant: if the database server is not running on the same system as the web server the entry \u201elocal<br \/>\nhostname\u201c is used to specify the access (source) for the database server!<br \/>\n(allow access for: nagiosql_user@webserver)<br \/>\nDatabase Server Port: TCP port of the database server daemon<br \/>\nDatabase name: Name of the database to be created for NagiosQL<br \/>\nNagiosQL Database User: User name for the NagiosQL database<br \/>\nNagiosQL Database Password: Password of the NagiosQL database user<br \/>\nThe NagiosQL database user will not exist during a new installation and will be created according the<br \/>\ninformation given here.<br \/>\nAdministrative Database User: Admin user<br \/>\nAdministrative Database Passwort: Admin password<br \/>\nThe administrative user (e.g. root) has to exist already and must have sufficient rights to create a new<br \/>\ndatabase and a user which will be given access to the new database. The data of the administrative user will<br \/>\nNOT be stored in NagiosQL \u2013 it will only be used to create the database.<br \/>\nDrop database if already exists: Delete a database with the same name (Attention)<br \/>\nInitial NagiosQL User: NagiosQL admin user (admin)<br \/>\nInitial NagiosQL Password: NagiosQL admin password<br \/>\nAdministrative user for login to the NagiosQL web application. This user cannot be deleted later on.<br \/>\n\u201eImport Nagios sample config\u201c would import some sample data into the database.<br \/>\n\u201eCreate NagiosQL config paths\u201c creates a directory structure as decribed in 1.2 (which isn\u2019t necessary<br \/>\nanymore if you are following this guide). One requirement would be that the NagiosQL config directory is<br \/>\nwriteable for the webserver daemon. A modification of UID\/GID is not possible so it has to be done later on<br \/>\nmanually.<br \/>\nNagiosQL config path: Base directory for the config files<br \/>\nNagios config path: Base directory for the Nagios config files (contains nagios.cfg)<br \/>\nThis information is used to preconfigure the \u201elocalhost\u201c domain.<br \/>\nNagiosQL 3.2 ? Installation Page 11<br \/>\nIf all information was entered correctly and the database could be created, you get the following output:<br \/>\nAfterwards the directory \/opt\/nagiosql\/install should be deleted.<br \/>\n# rm \u2013rf \/opt\/nagiosql\/install<br \/>\nAfter successful installation some base configurations within NagiosQL have to be checked or set. The next<br \/>\nchapter deals with this task.<br \/>\nNagiosQL 3.2 ? Installation Page 12<br \/>\n1.8 Update NagiosQL<br \/>\nUpdate is similar to the installation as described in 1.7. Please note that the file config\/settings.php of the<br \/>\nold NagiosQL installation will not be modified and is copied to the config directory of the new installation.<br \/>\nYou must never copy the files of a new version into the existing directory of an old\/previous NagiosQL<br \/>\nversion!<br \/>\nIt is very important to backup the existing database before you start! Otherwise if anything goes wrong<br \/>\nduring the update it cannot be repeated and the database may be corrupt and in an undefined state. In<br \/>\nmost cases you then have to run a new installation and import all configuration data.<br \/>\nA backup can be made very easily using common tools like phpMyAdmin. Alternatively there are command<br \/>\nline tools like mysqldump.<br \/>\nClick START UPDATE to continue.<br \/>\nAfterwards the same environment tests are executed as during a new installation. Please consult the page<br \/>\nfor details.<br \/>\nNagiosQL 3.2 ? Installation Page 13<br \/>\nIf all tests are successful you can click on \u201eNext\u201c to get to the next page:<br \/>\nTo run the update as expected you only have to enter the information regarding the administrative<br \/>\ndatabase user. The other data is modifiable as well but you should only alter it if you are sure that you<br \/>\nknow what you are doing.<br \/>\nAdministrative Database User: Admin user<br \/>\nAdministrative Database Passwort: Admin password<br \/>\nThe administrative user (e.g. root user) has to exist already and must have sufficient rights to create a new<br \/>\ndatabase and a user which will be given access to the new database. The data of the administrative user will<br \/>\nNOT be stored in NagiosQL \u2013 it will only be used to create the database.<br \/>\nNagiosQL 3.2 ? Installation Page 14<br \/>\nIf all information was entered correctly and the database could be created, you get the following output:<br \/>\nAfterwards the directory \/opt\/nagiosql\/install should be deleted.<br \/>\n# rm \u2013rf \/opt\/nagiosql\/install<br \/>\nNagiosQL 3.2 ? Installation Page 15<br \/>\n2 Configure NagiosQL<br \/>\n2.1 Base configuration<br \/>\nThe NagiosQL base configuration can be accessed in the web application clicking Administration \u2013 Settings.<br \/>\nHere you will find some other data which you entered using the installer. The blue question mark symbol<br \/>\nnext to each item will show a short help text.<br \/>\nWorth mentioning are the following values:<br \/>\nTemporary Directory: The directory NagiosQL uses to store temporary files. Normally this will<br \/>\nbe \/tmp.<br \/>\nServer protocol: If NagiosQL is installed in an SSL environment you can choose https.<br \/>\nSetting an incorrect value might affect\/end the operation!<br \/>\nLanguage: The NagiosQL interface might be changed to use another language.<br \/>\nSometimes the browser cache has to be cleared, the browser and\/or<br \/>\nApache to be restarted so that the new setting takes effect.<br \/>\nAuthentication type: If the Apache authentication is to be used this value has to be set<br \/>\naccordingly.<br \/>\nData lines per page: The number of lines in list views can be set here.<br \/>\nOnline version check: The NagiosQL support page will show if a new NagiosQL version is<br \/>\navailable.<br \/>\nEnvironments using a proxy server will have to set the appropriate values.<br \/>\nNagiosQL 3.2 ? Installation Page 16<br \/>\n2.2 Domain config (paths)<br \/>\nThe different domains and paths of the Nagios installations to be controlled are determined using the<br \/>\ndomain administration. This is to be found below Administration.<br \/>\nThere are two sorts of domains:<br \/>\n2.2.1 Data domains<br \/>\nData domains are used for data storage, i.e. they contain the configuration objects. The selection field in<br \/>\nthe upper left of the view always shows the currently active data domain.<br \/>\nThere are two given data domains which cannot be deleted or renamed:<br \/>\nCommon Data Domain<br \/>\nA general data domain which can be included into every other data domain. This might be useful for<br \/>\ncontacts, time periods, or commands, which are identical in every data domain. There are only very few<br \/>\nsettings available.<br \/>\nLocalhost Data Domain<br \/>\nThe data domain of the local server. Apart from the fact that this data domain cannot be renamed there is<br \/>\nno difference to other data domains.<br \/>\nNagiosQL 3.2 ? Installation Page 17<br \/>\nConfiguration options<br \/>\nDomain: Internal name of the data domain (will be shown in the config views).<br \/>\nDescription: Detailed description of the data domain<br \/>\nConfiguration target: Selection of the target configuration domain (see 2.2.2).<br \/>\nNagios Version: Version of the Nagios installation (version 2.x or 3.x are supported) \u2013 depending<br \/>\non the version additional options are displayed in the views.<br \/>\nUse common domain: The common data domain can be switched on or off. As soon as the common<br \/>\ndata domain is switched on and objects are defined, these objects will be written<br \/>\ninto the config files of the current data domain.<br \/>\nAccess group: Select which user group gets access to this data domain.<br \/>\nActive: Define whether the data domain is active or not.<br \/>\nNagiosQL 3.2 ? Installation Page 18<br \/>\n2.2.2 Configuration domain<br \/>\nConfiguration domains are used to define a Nagios installation (site), they contain the paths and connection<br \/>\nsettings.<br \/>\nConfiguration options<br \/>\nDomain: Internal name of the configuration domain<br \/>\n(will be shown in data domain \u2013 config target)<br \/>\nDescription: Detailed description of domain<br \/>\nServer name: Host name of the system running the Nagios installation of this domain \u2013 must be<br \/>\nresolvable to an IP address<br \/>\nMethod: The connection type specifies how NagiosQL will access the config files. Valid<br \/>\noptions are:<br \/>\n? Fileaccess The files are stored on the local file system of the server<br \/>\nor are accessible from there (NFS\/SMB\/CIFS etc.)<br \/>\n? FTP The config files are accessed via FTP<br \/>\n? SSH\/SFTP The config files are accessed via SSH\/SFTP<br \/>\nIn the next chapter (2.3) we will give some short instructions on how to setup FTP<br \/>\nand SSH\/SFTP<br \/>\nUser name: User name to login onto the target system (only FTP or SSH\/SFTP)<br \/>\nPassword: Password to login onto the target system (only FTP or SSH\/SFTP)<br \/>\nDir. with SSH key<br \/>\npair:<br \/>\nLocal directory where the SSH key is stored (only SSH\/SFTP)<br \/>\nNagiosQL 3.2 ? Installation Page 19<br \/>\nBase directory: Base directory for Nagios config files. All config files apart from those for hosts<br \/>\nand services are stored in this folder.<br \/>\n\/etc\/nagiosql<br \/>\nHost directory : Directory for the Nagios host config files<br \/>\n\/etc\/nagiosql\/hosts<br \/>\nService directory: Directory for the Nagios service config files<br \/>\n\/etc\/nagiosql\/services<br \/>\nBackup directory: Directory where NagiosQL will store backup versions of config files (except for<br \/>\nhosts\/services)<br \/>\n\/etc\/nagiosql\/backup<br \/>\nHost backup dir.: Directory where NagiosQL will store backup versions of host config files<br \/>\n\/etc\/nagiosql\/backup\/hosts<br \/>\nService backup dir.: Directory where NagiosQL will store backup versions of service config files<br \/>\n\/etc\/nagiosql\/backup\/services<br \/>\nNagios base dir.: Base directory of the Nagios installation. The files nagios.cfg and cgi.cfg are<br \/>\nstored in this directory and NagiosQL expects them to be there!<br \/>\n\/etc\/nagios<br \/>\nImport directory: Alternative import directory. Config files in this directory are offered to be<br \/>\nimported as well<br \/>\n\/etc\/nagios\/objects<br \/>\nPicture base dir.: Alternative image directory. Normally the path to images is static in Nagios (e.g.<br \/>\n\/usr\/local\/nagios\/share\/images\/logos). This directory can be used as a second<br \/>\nbase directory for additional files\/directories. Other definitions using the folder<br \/>\nare relative to this entry.<br \/>\nNagios command file: Path to the Nagios command file (nagios.cmd). This file is required to send<br \/>\nexternal commands to the Nagios daemon. Please note that this file is only<br \/>\ncreated \/ read when check_external_commands=1 is set in nagios.cfg!<br \/>\n\/var\/nagios\/rw\/nagios.cmd<br \/>\nNagios binary file: Path to the Nagios binary<br \/>\n\/opt\/nagios\/bin\/nagios<br \/>\nNagios Process file: Path to the Nagios process file (PID or LOCK file)<br \/>\n\/var\/nagios\/nagios.lock<br \/>\nNagios config file: Path to nagios.cfg<br \/>\n\/etc\/nagios\/nagios.cfg<br \/>\nNagios version: Version of the Nagios installation (Version 2.x or 3.x are supported).<br \/>\nAccess group: Select which user group gets access to this data domain<br \/>\nActive: Define whether the data domain is active or not<br \/>\nNagiosQL 3.2 ? Installation Page 20<br \/>\n2.3 2.3 Setup remote access (FTP or SSH\/SFTP)<br \/>\n2.3.1 Remote access via FTP<br \/>\nOn the local system the PHP module ftp has to be installed.<br \/>\nOn the target system an FTP server has to be installed. Additionally a separate user for NagiosQL is set up.<br \/>\nThe NagiosQL directory structure as described in 1.2 will be created on the target system. Furthermore the<br \/>\npermissions on the remote system have to be set up as described in 1.2 and 1.3. Instead of the web server<br \/>\ndaemon the NagiosQL FTP user has to get write permissions.<br \/>\nThe credentials of the NagiosQL FTP user have to filled into the fields user and password in the domain<br \/>\nconfiguration (2.2).<br \/>\nIt is recommended to check the FTP connection using an FTP client before you enter the values.<br \/>\nUsing FTP the functionality in \u201eTools \u2013 Nagios control\u201c is limited. \u201eCheck configuration files\u201c and \u201eRestart<br \/>\nNagios\u201c via FTP will only work on a server supporting REMOTE EXEC \u2013 but due to security limitations<br \/>\nnowadays this is rarely seen.<br \/>\n2.3.2 Remote access via SSH\/SFTP<br \/>\nOn the local system the PHP module ssh2 has to be installed (1.5).<br \/>\nOn the target system an SSH server has to be installed. Allow access (firewall etc.) from the local system to<br \/>\nthe target system.<br \/>\nCreate a new user for NagiosQL on the target system, e.g. nagiosql_usr. Please note that some distributions<br \/>\nmay limit the length of user names. Then you have to create a key pair as follows.<br \/>\nLocal system:<br \/>\n1. Create a path for the SSH keys:<br \/>\n# mkdir \/etc\/nagiosql\/ssh<br \/>\n2. Create a key pair \u2013 only rsa is supported:<br \/>\n# ssh-keygen -t rsa<br \/>\nGenerating public\/private rsa key pair.<br \/>\nEnter file in which to save the key (\/root\/.ssh\/id_rsa): \/etc\/nagiosql\/ssh\/id_rsa<br \/>\n?&gt; leave the password empty!<br \/>\nThe name of the key file must be id_rsa!<br \/>\n3. The key is to be copied to the target system:<br \/>\n# ssh-copy-id -i \/etc\/nagiosql\/ssh\/id_rsa\/id_rsa.pub nagiosql_usr@remote-system<br \/>\n4. The key in \/etc\/nagiosql\/ssh has to be readable for the web server daemon!<br \/>\n# chown \u2013R wwwrun.nagios \/etc\/nagiosql\/ssh<br \/>\n# chown \u2013R wwwrun.nagios \/etc\/nagiosql\/ssh\/id_rsa<br \/>\n5. Please check login manually:<br \/>\n# ssh -i \/etc\/nagiosql\/ssh\/id_rsa nagiosql_usr@remote-system<br \/>\n?&gt; Login has to be possible without entering a password!<br \/>\nThe name of the NagiosQL SSH user (nagiosql_usr) will be set in the domain config (2.2) filling in \u201cUser<br \/>\nname\u201d. The field for the SSH key pair directory will hold the value of the directory (\/etc\/nagiosql\/ssh\/).<br \/>\nNagiosQL 3.2 ? Installation Page 21<br \/>\nThe field \u201cpassword\u201d can be left empty because it is not used.<br \/>\nAn authentication using user and password (without key) is possible but strongly discouraged because it is<br \/>\ngenerally more error prone. If you still want to use it then you have to set the following value in<br \/>\nsshd_config on the target system:<br \/>\nPasswordAuthentication yes<br \/>\nNagiosQL 3.2 ? Installation Page 22<br \/>\n3 Nagios Configuration<br \/>\n3.1 Nagios Configuration file<br \/>\nThe Nagios configuration file nagios.cfg has to be adapted so that Nagios can find and use the configuration<br \/>\nfiles written by NagiosQL. This can be done using the integrated editor of NagiosQL, if the access<br \/>\npermissions were set correctly (1.3).<br \/>\nImportant are the paths of the standard config files:<br \/>\ncfg_file=\/etc\/nagiosql\/contacttemplates.cfg<br \/>\ncfg_file=\/etc\/nagiosql\/contactgroups.cfg<br \/>\ncfg_file=\/etc\/nagiosql\/contacts.cfg<br \/>\ncfg_file=\/etc\/nagiosql\/timeperiods.cfg<br \/>\ncfg_file=\/etc\/nagiosql\/commands.cfg<br \/>\ncfg_file=\/etc\/nagiosql\/hostgroups.cfg<br \/>\ncfg_file=\/etc\/nagiosql\/servicegroups.cfg<br \/>\ncfg_dir=\/etc\/nagiosql\/hosts<br \/>\ncfg_dir=\/etc\/nagiosql\/services<br \/>\nSome additional config files if they are used:<br \/>\ncfg_file=\/etc\/nagiosql\/hosttemplates.cfg<br \/>\ncfg_file=\/etc\/nagiosql\/servicetemplates.cfg<br \/>\ncfg_file=\/etc\/nagiosql\/servicedependencies.cfg<br \/>\ncfg_file=\/etc\/nagiosql\/serviceescalations.cfg<br \/>\ncfg_file=\/etc\/nagiosql\/hostdependencies.cfg<br \/>\ncfg_file=\/etc\/nagiosql\/hostescalations.cfg<br \/>\ncfg_file=\/etc\/nagiosql\/hostextinfo.cfg<br \/>\ncfg_file=\/etc\/nagiosql\/serviceextinfo.cfg<br \/>\nAll existing lines starting with cfg_file= or cfg_dir= have to be removed or deactivated using a leading hash<br \/>\nsign (#)! There must be no other cfg lines except the ones mentioned above.<br \/>\nRestarting Nagios from NagiosQL requires that Nagios has to accept external commands which is controlled<br \/>\nby the following line in nagios.cfg:<br \/>\ncheck_external_commands=1<br \/>\n3.2 Additional permissions<br \/>\nFor complete functionality of NagiosQL some Nagios files have to be accessible for NagiosQL (see 1.3). For<br \/>\nlocal installations the user running the web server daemon has to be permitted, remote installations<br \/>\nrequire the NagiosQL FTP or SSH\/SCP user to be permitted. Subsequently the guide uses the term \u201euser\u201c.<br \/>\nThe paths to these files have to be set in the domain configuration (see 2.2). Regarding the<br \/>\npermissions there are several ways (file permissions, sudo, acl). Furthermore the installations<br \/>\ndiffer individually.<br \/>\n3.2.1 Check command<br \/>\nTo check the curring configuration NagiosQL will use the internal verify method of Nagios:<br \/>\n# nagios \u2013v nagios.cfg<br \/>\n&lt;nagios?binary&gt; ?v &lt;nagios configuration file&gt;<br \/>\nThe user must have permissions to execute the Nagios binary and read permissions on nagios.cfg.<br \/>\nNagiosQL 3.2 ? Installation Page 23<br \/>\n3.2.2 Configuration editor<br \/>\nThe files nagios.cfg and cgi.cfg can be edited directly from within NagiosQL using a simple editor.<br \/>\nThe user must have write permissions on the config files nagios.cfg and cgi.cfg.<br \/>\n3.2.3 Restart command<br \/>\nTo activate a new configuration directly from within NagiosQL permissions on the command file<br \/>\nnagios.cmd and the process file nagios.lock are required.<br \/>\nThe user must have write permissions on the command file nagios.cmd and read permissions on the<br \/>\nprocess file nagios.lock , or nagios.pid, respectively.<br \/>\n3.3 Support page<br \/>\nSince NagiosQL 3.2.0 we have a support page running the most important internal checks and showing the<br \/>\nresults. Common misconfigurations are detected quickly and you are able to solve your problems.<br \/>\n3.3.1 Common checks<br \/>\nYou will find some helpful links. Basic environment checks are executed. If something doesn\u2019t work after a<br \/>\nsystem upgrade you might find a hint.<br \/>\nIf enabled it will be checked if the most current version of NagiosQL is installed.<br \/>\nNagiosQL 3.2 ? Installation Page 24<br \/>\n3.3.2 Config checks<br \/>\nIt will be checked if all relevant Nagios files are available and if the user permissions are correct (see 1.3).<br \/>\nThe last part processes the Nagios config file (nagios.cfg) and checks if the necessary path settings (see 3.1)<br \/>\nwere made and if they are equal to the ones in the selected config domain.<br \/>\nGenerally all red entries on the support page indicate a problem which must be solved. Yellow entries<br \/>\nindicate problems which might pop up later.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>NagiosQL 3.2<\/p>\n<p>NagiosQL 3.2 ? Installation Page 2 Table of contents 1 Installation &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;. 3 1.1 Prerequisites &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.. 3 1.2 Prepare directory structure &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;. 3 1.3 Nagios configuration files &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;. 4 1.4 Prepare Apache configuration&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230; 5 1.5 Install PHP modules (SSH) &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230; 6 1.6 Install NagiosQL &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230; 6 1.7 NagiosQL installer (new installation) &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.. 7 [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[41],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/2465"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2465"}],"version-history":[{"count":3,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/2465\/revisions"}],"predecessor-version":[{"id":2466,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/2465\/revisions\/2466"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2465"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2465"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2465"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}