Nagios – nrpe.conf
root@westernbbqassociation [~]# vi /etc/nrpe.conf command[check_users]=/usr/local/nagios/libexec/check_users -w 5 -c 10 command[check_load]=/usr/local/nagios/libexec/check_load -w 15,10,5 -c 30,25,20 command[check_disk1]=/usr/local/nagios/libexec/check_disk -w 20 -c [...]
Nagios password
password given in /usr/local/nagios/etc/htpasswd.users url is http://hostname/cgi-bin/monitor/status.cgi Given entries in contactgroups.cfg and contacts.cfg files (refer doreo [...]
Nagios error – Mysql
mysql create database nagios; grant all privileges on nagios.* to nagios@63.247.77.234 identified by '123dsa'; mysql setup in [...]
Nagios error – Exim mail queue
In nagios server cd /usr/local/nagios/libexec wget http://www.mycutelife.net/sanju/newtickethelp/nagiosfullsteps/check_eximmailqueue chmod +x check_eximmailqueue In remote server cd /usr/local/nagios/libexec wget [...]
Nagios error – DNS
error output parsing /usr/sbin/nslookup (1)For testing from nagios server [nagios@monitor libexec]$ ./check_nrpe -H hostname -c check_load (2) [...]
Nagios setup
In Remote server cd /root wget http://www.mycutelife.net/sanju/newtickethelp/nagios_downloads/nagios-plugins-1.3.1.tar.gz wget http://www.mycutelife.net/sanju/newtickethelp/nagios_downloads/nrpe-1.9.tar.gz tar -zxvf nagios-plugins-1.3.1.tar.gz cd nagios-plugins-1.3.1 ./configure make all make [...]
Install Nagios
How to install nagios In the nagios server 1)Download the tarball of nagios (Here I use nagios-1.0b5 version) [...]
mysql error = cant connect to mysql socket via /var/lib/mysql
cd /var/lib/mysql touch mysql.sock chown mysql:mysql mysql.sock chmod 777 mysql.sock ln -s /var/lib/mysql/mysql.sock /tmp chmod 777 /tmp /scripts/mysqlup [...]
Mysql database restore
mysql backup: var/lib/mysql#mysqldump xx > xx.sql mysql restore: var/lib/mysql#mysql xx < xx.sql
Exim mail queue clear
To clear SPAMS and unwanted mails from the mail queue exim -bp | awk '$6~"frozen" {print $3 }' [...]
Kernel Compilation
Kernel compilation Go to the /usr/src directory Unpack the source code with tar -xvzf linux-2.x.x.tag.gz. Move to the [...]
Horde Issue
Cant find file: horde_sessionhandler.MYI If you get this error, you ve most likely done a file-based MySQL backup [...]
Horde Loopback
Loops back to login page in horde solution mysql mysql> use horde; mysql> drop table horde_sessionhandler; mysql> CREATE [...]
Fast cgi
What is Fast-cgi? FastCGI is an enhancement to the existing CGI. FastCGI is an interface which helps to [...]
Fantastico Installation
SSH to your server(s) and enter following commands: cd /usr/local/cpanel/whostmgr/docroot/cgi wget -N http://files.betaservant.com/files/free/fantastico_whm_admin.tgz tar -xzpf fantastico_whm_admin.tgz rm -rf [...]
Cpanel Scripts
cPanel and WHM has a large number of predefined scripts available in the /scripts folder. The available scripts [...]
Directory Structure of CPanel
Apache /usr/local/apache + bin- apache binaries are stored here - httpd, apachectl, apxs + conf - configuration files [...]
How to Restore off a mounted slave disk on Redhat + Cpanel
Warning : This is not to be done by the unexperienced admins . Sometimes when the server get hacked or [...]