How to Remote Monitor Linux with Nagios via Installing NPRE
How to remote monitor cPanel with Nagios via installing NRPE Using a Nagios plug-in called NRPE to monitor the health of a server in conjunction with external checking (aka checking for open ports) gives a little more in-depth check. It can also allow you to catch some problems before they result in a service being unavailable. Install nagios-plugin installation cd /usr/src/ /usr/sbin/useradd nagios passwd nFew readersI Cannot Connect to My MySQL Database Remotely
Sorry but we do not permit remote MySQL access as this is a security risk. If you require remote MySQL Database access, kindly upgrade your hosting package to our Cloud Hosting package.Few readersInstalling OpenVPN in Ubuntu
Please go to Client Area >My Services >Services >View Details >and here you should have a downloads tab. At the download tab, please download the configuration file and then extract it. sudo apt-get install openvpn Move the config file to /etc/openvpn/ sudo unzip vpnfreakmac.zip cd vpnXX move all file to upper root. sudo /etc/init.d/openvpn startFew readersHow to Fix A User's Files and Folders Permission When Using suPHP
Run the commands below if the user need to fix all his folders and files permission when running suphp. Replace the username. find /home/<>/publichtml/ -type d -exec chmod 755 ; find /home/<>/publichtml/ -type f -exec chmod 644 ;Few readersHow Do I Restore a Mysqldump File
Access to mysql cli cPanel: MySQL Directadmin: search for mysql root password in Directadmin server /usr/local/directadmin/scripts/setup.txt then run command below mysql -u root -p Once you access to mysql cli, you need see something below: mysql > Now select which database you want to use mysqluse dbname; Now restore the database from mysqlexample.sql. Please make sure before you went into mysql cli, you are that the path that contain that mysqlexample.sqlFew readersHow Do I Move or Rename a File on My Linux Server?
You can rename a file by moving it to the new name that you wish to have. See the example below. mv somefilename somenewfilenameFew readersHow Do I See Who Is Logged into the Server via ssh?
You can see how is logged into your server via ssh by typing the who command below. Command: w Sample output can be seen below:Few readersHow do I check what kernel version my server is running?
You can check what kernel version your server is running by typing the command below. root@localhost:~ uname -a Linux localhost.localdomain 2.6.9-42.0.2.ELsmp 1 SMP Wed Aug 23 00:17:26 CDT 2006 i686 athlon i386 GNU/Linux The number you will looking for normally starts with a 2.6. In this case localhost.localdomain is running a 2.6.9-42.0.2.ELsmp kernel at this time.Few readersHow Do I List What RPMs Are Installed On My Server?
You can list the what RPMs are currently installed on your server by using the below command. This will display every RPM that is installed. rpm -qa You can also search with grep for certain packages with the below command. We will use the search term of ssh in this example. root@localhost ~ rpm -qa|grep ssh openssh-3.9p1-8.RHEL4.15 openssh-server-3.9p1-8.RHEL4.15 openssh-clients-3.9p1-8.RHEL4.15Few readersHow to resize partition in Linux
SSH to your server as root user Run df -Th grep "^/dev" to get the device name & also the filesystem type (ext4,XFS,etc) Grow the partition by running growpart /dev/sda X (where X is the device name and with space) Once done, use the following command according to your filesystem type to enlarge the partition EXT4 resize2fs /dev/sdaX XFS xfsgrowfs /dev/sdaX Run df -h toFew readers