GLPI – An IT Asset management system


As a System Administrator, you need to keep track of each and every asset of your hardware (Server/Switches/Routers/Laptops/Printers etc., ) . It is very difficult to keep these information manual. To overcome this problem, the tool called GLPI used in many companies.

Below steps explain the installation process of GLPI.

Step 1: Install Prerequisite package

[root@server ~]# yum install –y php php-mysql php-mbstring httpd httpd-server httpd-devel mysql-server mysql-devel

Step 2: Start Apache and MySQL Services

[root@server ~]# /etc/init.d/httpd start
[root@server ~]# chkconfig --level 35 httpd on
[root@server ~]# /etc/init.d/mysqld start
[root@server ~]# chkconfig –level 35 mysqld on

Step 3: Create a MySQL database

[root@server ~]# mysql -u -p

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> create database glpidb;

mysql> grant all on glpidb.* to 'glpiuser'@'localhost' identified by 'welcome';

mysql> flush privileges;

mysql> exit;

Step 4: Download and install GLPI

[root@server ~]# wget https://forge.indepnet.net/attachments/download/1615/glpi-0.84.3.tar.gz
[root@server ~]# tar -zxvf glpi-0.84.3.tar.gz
[root@server ~]# cp -rv glpi /var/www/html
[root@server ~]# cd /var/www/html/glpi/
[root@server glpi]# chown apache:apache -R files/
[root@server glpi]# chown apache:apache -R config/
[root@server glpi]# chmod -R 777 files/
[root@server glpi]# chmod -R 777 config/
[root@server glpi]# /etc/init.d/httpd restart

Step 5: Complete the setup in web browser

Open your web browser,type http://localhost/glpi or http://ip-address/glpi

Screen 1: Select your language -> English

Screen 2: EULA -> Click Ok

Screen 3: Click Install Button

Screen 4: Enter the below MySQL database details

Mysql server : localhost
Mysql user : glpiuser
Mysql password : welcome

Screen 5: Please select a database -> Select glpidb and click Continue

Screen 6: Successful installation screen -> Click Use GLPI

The default user accounts and their passwords will be shown in the above screen.

glpi/glpi for the administrator account
tech/tech for the technician account
normal/normal for the normal account
post-only/postonly for the postonly account

That’s it.. Use glpi account to login in to administrator console.

Nagios upgrade 3.x to 4.x


It is recommended to keep your nagios server up-to-date. Below steps explain how to upgrade your existing nagios core.

Let’s assume your current nagios core release is 3.5.1 and you want to upgrade to 4.0.8 release.

Step 1: Download the latest nagios core stable release

[root@server.local ~]# wget http://prdownloads.sourceforge.net/sourceforge/nagios/nagios-4.0.8.tar.gz

Step 2: Remove old files

Removed the following old HTML files that were used by the web frontend. They have been replaced by PHP equivalents.

[root@server.local ~]# rm /usr/local/nagios/share/{main,side,index}.html

Step 3: Stop nagios services

[root@server.local ~]# /etc/init.d/naigos stop

Step 4: Install the latest nagios release

[root@server.local ~]# tar –zxvf nagios-4.0.8.tar.gz
[root@server.local ~]# cd nagios-4.0.8
[root@server.local ~]#./configure --with-command-group=nagcmd
[root@server.local ~]# make all
[root@server.local ~]# make install

Step 5: Start nagios services

Before starting nagios services, verify your configuration files. Correct any errors shown here before proceeding with the next step.

[root@server.local ~]# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
[root@server.local ~]# /etc/init.d/nagios start

Install MongoDB server on CentOS


Please follow the below steps to install MongoDB database server.

Before going for installation check your selinux is disabled on your server. To check selinux status, execute the below command

[root@server ~]# getenforce

If this enabled then please disable by following command

[root@server ~]# echo 0 > /selinux/enforce

Step 1: Create the mongodb respositories.

[root@server ~]# vi /etc/yum.repos.d/mongodb.repo

== For 64-bit architecture ==

[mongodb]
name=MongoDB Repository
baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64/
gpgcheck=0
enabled=1

== For 32-bit architecture [Not recommended for production environment] ==

[mongodb]
name=MongoDB Repository
baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/i686/
gpgcheck=0
enabled=1

Step 2: Install MongoDB server

To install the current stable release, enter the below command

[root@server ~]# yum install -y mongodb-org

If you want to install the specific release of MongoDB, enter the below command

[root@server ~]# yum install -y mongodb-org-2.6.1 mongodb-org-server-2.6.1 mongodb-org-shell-2.6.1 mongodb-org-mongos-2.6.1 mongodb-org-tools-2.6.1

Step 3: Start/Stop/Restart the services

[root@server ~]# /etc/init.d/mongod start
[root@server ~]# /etc/init.d/mongod stop
[root@server ~]# /etc/init.d/mongod restart

To start MongoDB after server reboots,

[root@server ~]# chkconfig --level 35 mongod on

Step 4: MongoDB Files

Data files: /var/lib/mongo
Log files: /var/log/mongodb
Configuration files: /etc/mongod.conf

The package includes the mongo console. This tool is a console interface similar to mysql.

[root@server ~]# mongo

[root@server ~]# tail -10 /var/log/mogodb/mongod.log

[initandlisten] waiting for connections on port 27017

Port configuration is defined in /etc/mongod.conf, 27017 by default.

phpBB – User and Group Administration


In our previous post, i have explained how to setup phpBB forum on your environment. Here we are going to see how to add user and group to the forum.

Please log in with the administrator username and password that you have set during installation process.

Once you logged in, click on Administratin Control Panel (ACL) link at the bottom of the forum page.

You will be asked to re-login with the forum administrator details, then click “Proceed to the ACP” button.

Click “Board Settings” on left side of the ACP page, here you can set general settings of your forum ie., Site Name, Description, Timezone. Once you done with the changes please click “Submit” button on ACP page to reflect the changes.

It’s very important to set the forum users register. Click “User registration settings” (below to Board Settings), in that page set the below settings for effective way.

Account activation: By Admin
Set Newly Registered users group to default: No
Password Complexity: Must contains letters and number
Force password change: 90days
Allow username changes: No
Allow e-mail address re-use: No
Login attempts per username: 4
Enable COPPA: No

Click “Submit” button to save the changed settings.

By clicking “USERS AND GROUPS” tab on forum, we can have an options to create, edit and delete users and group to the forum.

Click “Manage groups” on left side of ACP page, there you can see some pre-defined groups.

Enter your new group name and click “Submit” button, in that new screen enter what kind of permission you needed for group or this can be done by simply giving existing group permissions.

Click “Group forum permissions”, select your newly created group and click “Submint” button. Now select a forum (Press Crtl button for 2 or more forums) and click on the submit button next to it. In Setting Permission page, click on Advanced Permission link, you can set permission to the forum. Once everything done, click “Apply all permissions” button.

Click “Manage users” on left side of ACP page, enter the username and click submit button. Here you can see user level details on General settings. If you want more settings, select the form from dropdown button (upper right side of ACP page) and click Go.

There you can make the essentials changes according to your needs and click Submit button to complete the settings.

That’s it. Now all your changes have been reflected on your forum.