Wednesday, 30 July 2014
Monday, 28 July 2014
Update Nagios Plugins- ERROR "NRPE: Unable to read output"
Update the nagios plugins if you're getting the ERROR "NRPE: Unable to read output"
Do the below steps by login to the server by root.
# /usr/local/nagios/libexec/check_nrpe -H <server_IP> -c check_serviceName
Thats all.
Do the below steps by login to the server by root.
# cd /usr/local/src/Use the below command to check the result from your nagios server.
# wget http://nagios-plugins.org/download/nagios-plugins-2.0.3.tar.gz
# tar -zxvf nagios-plugins-2.0.3.tar.gz
# cd nagios-plugins-2.0.3
# ./configure --with-nagios-user=nagios --with-nagios-group=nagios
# make
# make install
# chown nagios:nagios /usr/local/nagios
# chown -R nagios:nagios /usr/local/nagios/libexec
# service xinetd restart
# /usr/local/nagios/libexec/check_nrpe -H <server_IP> -c check_serviceName
Thats all.
Tuesday, 8 July 2014
Install cPanel on a Virtual Server Running Centos 6
cPanel
Note:
Once cPanel is installed, it cannot be removed from the server without a complete server restore. cPanel does not offer an uninstaller and cPanel is subject to a licensing fee
Setup
Before installing cPanel on our droplet, we need to take two additional steps.
The cPanel installation only has several steps and the installation will take a long time. Although using program "screen" is not necessary in order to install cPanel, it can be a very helpful addition to the installation process. It can be especially useful if you know that you may have issues with intermittent internet or that you will need to pause the lengthy install process.
To start off, go ahead and install screen:
To reattach to your screen you can use the command:
From there, you can create your cpanel user and finally login in at ipaddress/cpanel or domain/cpanel.
Thats it. :-)
cPanel is a convenient application that allows users to administer servers through a GUI interface instead of the traditional command line. Although the installation for cPanel is relatively simple, the script does take several hours to run.
Note:
Once cPanel is installed, it cannot be removed from the server without a complete server restore. cPanel does not offer an uninstaller and cPanel is subject to a licensing fee
Setup
Before installing cPanel on our droplet, we need to take two additional steps.
- First we need to make sure that Perl is installed on the server
# yum install perl
After installing perl we need to take one more preliminary step. cPanel is very picky about making sure that server that it is installed on has a Fully Qualified Domain Name. To that effect, we need to provide it with a valid hostname.
Install cPanel#hostname host.example.com
The cPanel installation only has several steps and the installation will take a long time. Although using program "screen" is not necessary in order to install cPanel, it can be a very helpful addition to the installation process. It can be especially useful if you know that you may have issues with intermittent internet or that you will need to pause the lengthy install process.
To start off, go ahead and install screen:
# yum install screenOnce screen is installed, start a new session running:
#screen -S cPanelAfter opening screen, you can proceed to install cPanel with WHM or a DNS only version of cPanel.
# cd /usr/local/src
- Use this this command to install cPanel with WHM:
#wget -N http://httpupdate.cPanel.net/latest
- Use this command to install the DNS only version of cPanel:
#wget -N http://httpupdate.cPanel.net/latest-dnsonly
With the requested package downloaded, we can go ahead and start the script running:
#sh latestDetach screen type by "Ctrl+a+d" combination key. The script, which may take one to two hours to complete will continue running while in the background,even if you close out the of server.
To reattach to your screen you can use the command:
#screen -r <Screen_IDOnce cPanel has finally installed, you can access the login by going to your https://ip_address:2087 or domain (https://example.com:2087)
From there, you can create your cpanel user and finally login in at ipaddress/cpanel or domain/cpanel.
Thats it. :-)
Tuesday, 1 July 2014
[FIX] A DNS entry for “Domain.com” already exists. You must remove this DNS entry from all servers in the DNS cluster to proceed.
If you getting the following ERROR while try to create a parked domain in your cPanel account.
Login to server through ssh and execute the following command.
# /scripts/killdns domain.com
After that try again to add. Hope you can add the domain as parked successfully :-)
You can check it through.
# grep -R domain.com /var/cpanel/userdata/*
You can see the list of subdomains and addon/parked domains from this file of the user.
# cat /var/cpanel/userdata/user_name/main
Thats it.
"A DNS entry for “Domain.com” already exists. You must remove this DNS entry from all servers in the DNS cluster to proceed"Solution:
Login to server through ssh and execute the following command.
# /scripts/killdns domain.com
After that try again to add. Hope you can add the domain as parked successfully :-)
You can check it through.
# grep -R domain.com /var/cpanel/userdata/*
You can see the list of subdomains and addon/parked domains from this file of the user.
# cat /var/cpanel/userdata/user_name/main
Thats it.
Subscribe to:
Posts (Atom)