Install Nagios

How to install nagios

In the nagios server

1)Download the tarball of nagios (Here I use nagios-1.0b5 version)

#wget http://heanet.dl.sourceforge.net/sourceforge/nagios/nagios-1.0b5.tar.gz

2)Extract the tarball

# tar zxvf nagios-1.0b5.tar.gz

3) Create a folder named nagios under /usr/local
# mkdir /usr/local/nagios

4)Create a user and group named nagios. In many of the linux flavours, a corresponding group will be created for evry user.

#useradd nagios
#groupadd nagios

5) Enter the extracted folder. # cd nagios-1.0b5

6) Type the following script on a single line without line breaks: # ./configure –prefix=/usr/local/nagios –with-cgiurl=/nagios/cgi-bin –with-htmurl=/nagios/ –with-nagios-user=nagios –with-nagios-grp=nagios

7)# make all

8)# make install

9)#make install-init

10)#make install-commandmode

11) If you take a look into the /usr/local/nagios directory right now, you will see that there are four directories.
bin      sbin      share     var

12) # make install-config

Congrats, the nagios installation is completed!!! But to function properly, we need to install nagios plugin also. Come on, lets run to the next stage…

Install the nagios Plugin

1)Download the plugin. I used nagios-plugins-1.3.0 without any much problems. You can download it usng wget http://www.sreeforyou.com/tools/nagios/nagios-plugins-1.3.1.tar.gz

2)#tar zxvf nagios-plugins-1.3.0.tar.gz

3)Type the following script on a single line without line breaks: # ./configure –prefix=/usr/local/nagios –with-nagios-user=nagios –with-nagios-grp=nagios

4)#make all

5)#make install

6)#cd /usr/local/nagios/libexec/

7) To test the working, run the command ./check_ssh http://www.example.com
SSH ok – protocol version 1.99- – server version

8)#cd /usr/local/nagios/etc

9)# mkdir sample

10)# cp *.cfg-sample sample/

11)Rename each file manually, or use the following command to take care of them all at once.

for i in *cfg-sample; do mv $i `echo $i | sed -e s/cfg-sample/cfg/`; done;

12)../bin/nagios -v nagios.cfg

Run this command will show a lot of errors with the nagios configuration. Lets have to clear all the errors one-by-one.

13)#rm -f hosts.cfg services.cfg contacts.cfg contactgroups.cfg hostgroups.cfg dependencies.cfg escalations.cfg

14)#touch dependencies.cfg escalations.cfg contacts.cfg services.cfg

The nagios installation in completed. Now we have to configure the files related to nagios. This is a very easy step once you go through the steps.

Exim mail queue clear

To clear SPAMS and unwanted mails from the mail queue

exim -bp | awk ‘$6~”frozen” {print $3 }’ | xargs exim -Mrm
grep -lr ‘nobody@’ /var/spool/exim/input/ | \sed -e ‘s/^.*\/\([a-zA-Z0-9-]*\)-[DH]$/\1/g’ | xargs exim -Mrm
grep -rl ‘From: Mail Delivery System’ /var/spool/exim/input/ | \sed -e ‘s/^.*\/\([a-zA-Z0-9-]*\)-[DH]$/\1/g’ | xargs exim -Mrm
grep -rl ‘X-Spam-Status: Yes’ /var/spool/exim/input/ | \sed -e ‘s/^.*\/\([a-zA-Z0-9-]*\)-[DH]$/\1/g’ | xargs exim -Mrm
grep -rl ‘Subject: Mail delivery failed’ /var/spool/exim/input/ | \sed -e ‘s/^.*\/\([a-zA-Z0-9-]*\)-[DH]$/\1/g’ | xargs exim -Mrm
grep -rl ‘Message rejected’ /var/spool/exim/input/ | \sed -e ‘s/^.*\/\([a-zA-Z0-9-]*\)-[DH]$/\1/g’ | xargs exim -Mrm
grep -rl ‘retry time not reached for any host’ /var/spool/exim/input/ | \sed -e ‘s/^.*\/\([a-zA-Z0-9-]*\)-[DH]$/\1/g’ | xargs exim -Mrm
grep -lr ‘Cialis’ /var/spool/exim/input/ | \sed -e ‘s/^.*\/\([a-zA-Z0-9-]*\)-[DH]$/\1/g’ | xargs exim -Mrm
grep -lr ‘viagra’ /var/spool/exim/input/ | \sed -e ‘s/^.*\/\([a-zA-Z0-9-]*\)-[DH]$/\1/g’ | xargs exim -Mrm
grep -lr ‘Pharmaceutical’ /var/spool/exim/input/ | \sed -e ‘s/^.*\/\([a-zA-Z0-9-]*\)-[DH]$/\1/g’ | xargs exim -Mrm
grep -lr ‘***SPAM***’ /var/spool/exim/input/ | \sed -e ‘s/^.*\/\([a-zA-Z0-9-]*\)-[DH]$/\1/g’ | xargs exim -Mrm

To remove all mails from the email account xxx@xxx.com

grep -lr ‘xxx@xxx.com’ /var/spool/exim/input/ | \sed -e ‘s/^.*\/\([a-zA-Z0-9-]*\)-[DH]$/\1/g’ | xargs exim -Mrm

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 /usr/src/linux sub-directory.

make mrproper

make menuconfig

make all

—    make vmlinux
—    make modules
—    make bzimage

make modules_install

make install

cp /usr/src/linux/arch/i386/boot/zImage /zImage

Making an initrd Image

An initrd image is needed for loading your SCSI module at boot time or if you are compiling the kernel with ext3 support as a module. If you do not need an initrd image, do not make one and do not edit lilo.conf or grub.conf to include this image.

Use the /sbin/mkinitrd shell script to build an initrd image for your machine. To use this command, the loopback block device must be available.

To build the new initrd image, run /sbin/mkinitrd with parameters such as this:

/sbin/mkinitrd /boot/initrd-2.4.18-0.12-jul2001.img 2.4.18-0.12-jul2001

In the above example, /boot/initrd-2.4.18-0.12-jul2001.img is the file name of the new initrd image. 2.4.18-0.12-jul2001 is the kernel whose modules (from /lib/modules) should be used in the initrd image. This is not necessarily the same as the version number of the currently running kernel.

Cleaning targets:

clean – Remove most generated files but keep the config and enough build support to build external modules

mrproper – Remove all generated files + config + various backup files

distclean – mrproper + remove editor backup and patch files

Configuration targets:

config          – Update current config utilising a line-oriented program

menuconfig      – Update current config utilising a menu based program

xconfig         – Update current config utilising a QT based front-end

gconfig         – Update current config utilising a GTK based front-end

oldconfig       – Update current config utilising a provided .config as base

silentoldconfig – Same as oldconfig, but quietly

randconfig      – New config with random answer to all options

defconfig       – New config with default answer to all options

allmodconfig    – New config selecting modules when possible

allyesconfig    – New config where all options are accepted with yes

allnoconfig     – New config where all options are answered with no

Other generic targets:

all             – Build all targets marked with [*]

vmlinux         – Build the bare kernel

modules         – Build all modules

modules_install – Install all modules to INSTALL_MOD_PATH (default: /)

dir/            – Build all files in dir and below

dir/file.[ois]  – Build specified target only

dir/file.ko     – Build module including final link

rpm             – Build a kernel as an RPM package

tags/TAGS       – Generate tags file for editors

cscope          – Generate cscope index

kernelrelease   – Output the release version string

kernelversion   – Output the version stored in Makefile

headers_install – Install sanitised kernel headers to INSTALL_HDR_PATH(default: /usr/src/linux-.6.24.3/usr)

Static analysers

checkstack      – Generate a list of stack hogs

namespacecheck  – Name space analysis on compiled kernel

export_report   – List the usages of all exported symbols

headers_check   – Sanity check on exported headers

Kernel packaging:

rpm-pkg         – Build the kernel as an RPM package

binrpm-pkg      – Build an rpm package containing the compiled kernel and modules

deb-pkg         – Build the kernel as an deb package

tar-pkg         – Build the kernel as an uncompressed tarball

targz-pkg       – Build the kernel as a gzip compressed tarball

tarbz2-pkg      – Build the kernel as a bzip2 compressed tarball

Documentation targets:

Linux kernel internal documentation in different formats:

htmldocs        – HTML

installmandocs  – install man pages generated by mandocs

mandocs         – man pages

pdfdocs         – PDF

psdocs          – Postscript

xmldocs         – XML DocBook

Architecture specific targets (i386):

bzImage       – Compressed kernel image (arch/x86/boot/bzImage)

install       – Install kernel using

(your) ~/bin/installkernel or

(distribution) /sbin/installkernel or

install to $(INSTALL_PATH) and run lilo

bzdisk       – Create a boot floppy in /dev/fd0

fdimage      – Create a boot floppy image

isoimage     – Create a boot CD-ROM image

make V=0|1 [targets] 0 => quiet build (default), 1 => verbose build

make V=2   [targets] 2 => give reason for rebuild of target

make O=dir [targets] Locate all output files in “dir”, including .config

make C=1   [targets] Check all c source with $CHECK (sparse by default)

make C=2   [targets] Force check of all c source with $CHECK

Execute “make” or “make all” to build all targets marked with [*]

For further info see the ./README file

Horde Issue

Cant find file: horde_sessionhandler.MYI

If you get this error, you ve most likely done a file-based MySQL backup restore, and the InnoDB files are hosed. The horde_sessionhandler table isnt a MyISAM table at all – its actually an InnoDB table. The easiest way to fix the issue is to stop MySQL and trash the .frm:

# /etc/init.d/mysqld stop

# rm /var/lib/mysql/horde/horde_sessionhandler.frm

Now start MySQL and re-create the table:

# /etc/init.d/mysqld start

# mysql -u admin -p`cat /etc/psa/.psa.shadow`
Here is the SQL statements to run:

CREATE TABLE horde_sessionhandler (session_id VARCHAR(32) NOT NULL, session_lastmodified INT NOT NULL, session_data LONGBLOB, PRIMARY KEY (session_id)) ENGINE = InnoDB;
GRANT SELECT, INSERT, UPDATE, DELETE ON horde_sessionhandler TO horde@localhost;

Horde Loopback

Loops back to login page in horde

solution

mysql
mysql> use horde;
mysql> drop table horde_sessionhandler;
mysql> CREATE TABLE horde_sessionhandler (
session_id VARCHAR(32) NOT NULL,
session_lastmodified INT NOT NULL,
session_data LONGBLOB,

PRIMARY KEY (session_id)
) ENGINE = InnoDB;

Fast cgi

What is Fast-cgi?

FastCGI is an enhancement to the existing CGI.

FastCGI is an interface which helps to connect webservers with new application.

Features:

Based on Performance
F-cgi can be reused to handle multiple request without creating new processes for each request.

Based on Simplicity
Can be easily migrated from existing CGI.

Based on Language independence
FCGI applications can be written in nearly any language.

Process isolation
A buggy FastCGI application cannot crash or corrupt the core server or other applications
neither can they steal any secrets from the webserver.

Architecture independence
Any webserver can include fcgi irrespective of any particular server architecture.

Distributed computing
Fcgi has the ability to run remotely which helps in managing external websites and load distribution.

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 fantastico_whm_admin.tgz

NOTE: if you have problems contacting this server, please try this alternate location:

wget -N http://netenberg.com/files/free/fantastico_whm_admin.tgz

Now go to WHM, login as root and follow the link

WHM -> Add-Ons (Plugins on v11.x or higher) -> Fantastico De Luxe WHM Admin (scroll down the left menu).

Upon loading, Fantastico De Luxe WHM Admin will auto-update your existing installation (if existing). All admin files (masterfiles, tarballs, settings etc) will be moved to or created at /var/netenberg.

After the installation is complete, click on “Settings” and go through the settings. While some settings are not important, some other (marked below with an *) are essential for a proper functioning of Fantastico installations.

Language: Select the language for the admin backend AND default language for users without a language selected.

Email notifications: Enter an email address in order to receive notifications when users perform installations using Fantastico.

Master files settings (*): If you are not an advanced user who modifies the master files, leave this to “Remove”. Change this only if you know what you are doing

PHPsuexec (*): VERY ESSENTIAL!!! Changing this value will not install or de-install phpsuexec for you. It will only tell Fantastico that you have phpsuexec installed or not installed on your server. Change to “installed” if you perform installations which produce an “Internal Server Error”. Notice: Changes will not apply to existing installations! You have to re-install in order to have working installations.

Path to netPBM: Enter the full path to the netPBM binaries in order to enable Gallery installations. As long as this field has no value, your users will not be able to install Gallery.

Select Fantastico licensing and files server: If the Fantastico pages take long to load switch to the server that works best for you. Fantastico will auto-switch if connections time out.

Update preference: Select latest version (sometimes experimental) or stable version (best working).

Remote MySQL server

Open the file

/usr/local/cpanel/3rdparty/fantastico/includes/mysqlconfig.php

and follow the instructions.

Also read these:

http://netenberg.com/forum/viewtopic.php?t=866

http://netenberg.com/forum/viewtopic.php?p=11482#11482

If your users don’t see a Fantastico link in their CPanel: Go to WHM and edit the “default” Features List.

Activate Fantastico.

Cpanel Scripts

cPanel and WHM has a large number of predefined scripts available in the /scripts folder. The available scripts are as follows:

adddns – Adds a DNS zone.

addfpmail – Add frontpage mail extensions to all domains without them.

addfpmail2 -Add frontpage mail extensions to all domains without them.

addnetmaskips – Add the netmask 255.255.255.0 to all IPs that have no netmask.

addnobodygrp – Adds the group nobody and activates security.

addpop – Add a Pop Account.

addservlets – Add JSP support to an account (requires tomcat).

addstatus – (Internal use never called by user).

adduser – Add a user to the system.

admin – Run WHM Lite.

apachelimits – Add rlimits to Apache.

bandwidth – (OLD)

betaexim – Installs the latest version of exim.

biglogcheck – looks for logs nearing 2 gigabytes in size

bitstest –

bsdcryptoinstall – Installs crypto on FreeBSD.

bsdldconfig – Configures the proper lib directories in FreeBSD.

bsdpkgpingtest – Tests the connection speed for downloading FreeBSD packages.

buildbsdexpect – Install expect on FreeBSD.

builddomainaddr – (OLD)

buildeximconf – Rebuilds exim.conf.

buildpostgrebsd-dev – Installs postgresql on FreeBSD.

buildpureftproot –

bupcp – (OLD)

chcpass – (Internal use)

checkallowoverride –

checkbadconf – Checks /usr/local/apache/conf/httpd.conf for bad users.

checkbashshell –

checkbsdgroups – Checks and repairs proftpd ownership on FreeBSD.

checkccompiler – Checks to make sure the C compiler works on your system.

checkdeadperlso –

checkerrorlogsafe –

checkfpkey – Checks for the FrontPage suid key

checkgd – Checks to see if GD is built.

checkgentoousers –

checkhttpd –

checkinterchange – (Internal use).

checklibssl – Checks to make sure the proper libssl symlinks exist.

checklink –

checklog – (OLD)

checkmakeconf –

checkmaxclients – Checks to see if apache has reached the maximum clients allowed.

checkoldperl –  Checks to see if the version of Perl on your system is old.

checkoldrpm –

checkrsync – Checks to make sure rsync is up to date.

checksuexecpatch – Checks to see if mailman has been patched for suexec.

checksuspendpages – Checks to see if suspend pages are properly named.

checkswup – (OLD)

checkup2date – Makes sure up2date is set up properly (RedHat)

checkyum – Makes sure yum is set up properly.

chkpaths – Makes sure /usr/sbin/chown has a symlink to /bin/chown

chownpublichtmls – Change ownership of all users web space to them, which is useful for converting to suexec. Files owned by nobody are deleted.

chpass – Change password.

ckillall – Allows you to kill a process (used like killall).

ckillall2 – Allows you to kill a process.

cleanandmailformmaillog –

cleanbw – Cleans up old bandwidth logs.

cleandns – (OLD)

cleandns8 – Clean up named.conf.

cleangd – Cleans up old GD installs and reinstalls GD

cleanmd5 – Fix CPAN md5 problems.

cleanmsglog – cleans exim’s msglog

cleanopenwebmail – (OLD)

cleanupcheck –

cleanupmysqlprivs – Cleans up improper mySQL privileges.

compilers – Disables the usage of compilers for unprivileged users.

configips – (OLD)

.cgi – (INTERNAL)

.c – (INTERNAL)

convert2maildir – Converts mail from mbox to maildir format and installs courier impap and pop (cpimap is removed).

convertemails –

convertemails2 – (INTERNAL)

convertemails5 – (INTERNAL)

courierup – Updates/Installs Courier

cpanelsync –

cpbackup – Runs backups.

cpbackup2 – (INTERNAL)

cptheme – (NOT USED)

dialog – (NOT USED)

distupgrade – Upgrades RedHat to the newest version (for testing only)

dnscluster – Enables DNS clustering.

dnsqueuecron – Adds a cron job to dump the DNS queue.

dns_setup – (OLD)

dnstransfer – Only if the server has a DNS master (sync with DNS master).

doomhttpd –

dotbuffer – (INTERNAL)

downgradefp – Downgrades FrontPage Extensions (to 5.0-0)

dropmysqldb – Drops a mySQL database.

easyapache – Upgrade Apache

editquota – Change a users quota.

enablechkservdwebmail – Enable service checking of webmaild.

enablefileprotect – Protects home directories if file protection is built in apache.

ensurepkg – Installs a FreeBSD package.

ensurerpm – Installs a rpm.

ensurerpm2 – (INTERNAL)

exchangeacctdb – (OLD)

exim3 – Installs exim 3.

exim4 – Installs exim 4.

exim4-rh73test – Installs exim release #260. (RedHat only)

eximcron – Creates a cron job for exim_tidy_db.

eximlocalsend – Enables/Disables exim local sending.

exim_tidydb – Cleans the exim message log.

eximup – Installs/Updates exim.

eximup~ – (INTERNAL)

expectperlinstaller – (INTERNAL)

fetchfile – (INTERNAL)

fetchfpexec –

fetchgd – Includes libg.so.

finddev – (INTERNAL)

findhacks – Search for common Trojan Horses.

findoddrootprocesses – Lists root processes that may need to be checked out.

findphpversion – Check to see if your php version file is up to date.

findtrojans – Exhaustive Trojan Horse search.

fixadmin – (OLD)

fixallcartswithsuexec – Fixes permissions on carts when using suexec.

fixallinterchangeperm – Fixes permissions on all users’ Interchange Shopping Carts.

fixbinpath – Makes sure all bin file paths are correct.

fixbuggynamed – Updates bind to solve any problems with bugs.

fixcartwithsuexec – (INTERNAL) – Can be used to fix a cart with suexec.

fixcgiwrap – (OLD)

fixcommonproblems – Attempt to fix the most common problems.

fixetchosts – Fixes problems with /etc/hosts

fixeverything – Fix common problems and quotas.

fixfpwml – Fix for .wml errors with frontpage.

fixheaders – Run if nothing compiles errors with .h files on compile.

fixhome – (NOT USED) – Unsymlink items.

fixinterchange – Reinstall interchange Perl modules.

fixinterchangeperm – fix permissions on a user’s interchange cart.

fixipsnm – Same as addnetmask ips, but Perl though.

fixlibnet – Reinstall Bundle::libnet (Perl).

fixlocalhostwithphp – Change /etc/hosts to work better with PHP 4.2.0 + MySQL.

fixmailandakopia – (NOT USED)

fixmailman – Updates and restarts mailman.

fixmailmanwithsuexec –

fixmuse – Reinstalls muse.

fixmysql – Fixes problems with mySQL.

fixmysqlbsd – Fixes problesm with mySQL on FreeBSD.

fixnamed – Updates bind to handle many DNS zones (more than 512).

fixndc – Repair redhat’s broken named.conf on 7.2.

fixndc.new – (INTERNAL)

fixoldlistswithsuexec – Run after enabling suexec on the server to change the URLs that Mailman gives out to ones that don’t give a 500 internal server error.

fixperl – Symlink /usr/local/bin/perl /usr/bin/perl.

fixperlscript – Makes sure a perlscript includes all corresponding modules.

fixpop – Fix a POP account and reset password.

fixproftpdconf – Fixes problems with /usr/local/etc/proftpd.conf

fixproftpdconf~ – (INTERNAL)

fixproftpddupes – Updates proftpd.

fixquotas – Fix quotas.

fixrelayd – (OLD)

fixrh72ndckey – (INTERNAL)

fixrndc – Fixes named.conf to prevent rndc staus failed.

fixspamassassinfailedupdate – Reinstalls a failed spamassassin update.

fixsubconf –

fixsubdomainlogs – Run if subdomain logs don’t show up in cPanel.

fixsuexeccgiscripts – Fix CGI scripts that are broken after suexec installed.

fixtrojans – (NOT USED)

fixvaliases – Fix permisions on valiases.

fixwebalizer – Repair a Webalizer that has stopped updating.

fixwebmail – (OLD)

fixwwwdir – (OLD)

fp3 – Updates the fpexe3 patch.

fpanonuserpatch – Updates FrontPage extensions to include the anonymous user patch.

fp-auth –

fpbtr – (OLD)

fpsuexec – (INTERNAL)

fpsuexec2 – (INTERNAL)

fpsuexec3 – (INTERNAL)

fpupgrade – (INTERNAL)

ftpcheck – Checks for FTPSSL.

ftpfetch – (INTERNAL)

ftpput –  (INTERNAL)

ftpquaotacheck – Runs quota checking for all ftp users.

ftpsfetch – (INTERNAL)

ftpup – Updates your ftp server.

ftpupdate – (INTERNAL)

fullhordereset – Resets Horde and displays the current Horde password.

futexfix – Fixes problesm with futex.

futexstartup – Starts futex.

gcc3 – Installs gcc-3.3.3

gencrt – Generate a .crt and .csr file.

gencrt2 – (NOT USED)

gentomcatlist – (INTERNAL)

gentooportsup –

gethomedir – (INTERNAL)

getpasswd – (INTERNAL)

getremotecpmove – (INTERNAL)

getrpmfor –

grabemails – (INTERNAL)

grabhttp – (INTERNAL)

grabhttp2 – (INTERNAL)

grabmysqlprivs – (INTERNAL)

grpck – Checks to see if grpck is working properly.

hackcheck – (INTERNAL)

hdparmify – Enable dma/irq/32bit HD access, which speeds up IDE drives.

hdparmon – Turns on hdparm.

HTTPreq.pm – (INTERNAL)

httpspamdetect –

icpanel – (OLD)

initacls – Mounts your file systems with ACL support (make sure your kernel supports ACLs)

initbyteslog – (INTERNAL)

initfpsuexec – Enable FrontPage suexec support.

initquotas – Turn on quota support on new drives.

initsslhttpd – Make sure HTTP starts with SSL.

initsuexec – Turn on suexec support if suexec is installed.

installaimicq – (INTERNAL)

installcgipm – Installs CGI.pm

installcpbsdpkg –

installcpgentoopkg –

installdbi – Install Bundle::DBD::mysql.

installfpfreebsd – Installs FrontPage 5 Extensions on FreeBSD.

installfpgentoo – Installs FrontPage on Gentoo.

installgd – Builds GD.

installipc – (INTERNAL)

installpkg – Installs a FreeBSD package.

installpostgres – Installs PostrgeSQL.

installrmmods – (OLD)

installrpm – Installs a rpm.

installrpm2 – (INTERNAL)

installspam – Install SpamAssassin.

installssl – Add a SSL vhost.

installtree –

installzendopt – Install zend optimzer.

installzendopt-freebsd – Install zend optimizer on a freebsd machine.

ipcheck – (INTERNAL)

ipusage – (INTERNAL)

isdedicatedip – Checks an ip to see if it is dedicated.

kernelcheck – (INTERNAL)

killacct – Delete an account.

killbadrpms – Security script that kills insecure RPMs from the server.

killdns – Delete a DNS zone.

killdns-dnsadmin –

killdrrootvhost – Removes the document root for a virtual host.

killndbm – Remove the broken NDBM_File module from 7.2.

killpvhost – Removes a virtual host from proftpd.conf.

killspamkeys – Removes a spam key.

killsslvhost – Removes a SSL entry for a virtual host.

killvhost – Delete a vhost.

listcheck – Checks mailing lists for issues.

listproblems – Lists common problems.

listsubdomains – List subdomains.

mailadmin – (DEAD, OLD)

maildirmenu – (INTERNAL)

mailman212 – (INTERNAL)

mailperm – Fix almost any mail permission problem.

mailscannerupdate – Updates MailScanner

mailtroubleshoot – Guided mail fix.

makecpphp – Installs php.

makesecondary – Part of DNS transfer.

manualupcp – Updates cPanel manually.

md5crypt – Encrypts a password into MD5.

mkquotas – OLD

mkwwwacctconf – (INTERNAL)

mrusersscpcmd –

mseclocal – Sets up Mandrake’s msec to allow exim to run as mailnull.

mysqladduserdb – Create a MySQL databse and user.

mysqlconnectioncheck – Attempts to connect to MySQL, restarts SQL if necessary.

mysqldeluserdb – Delete a MySQL database and user.

mysqlinfo – (OLD)

mysqlpasswd – Change MySQL password.

mysqlrpmpingtest – Checks your connection speed for downloading mySQL rpms.

mysqlup – Updates mySQL.

mysqlup~ – (INTERNAL)

ndbmcheck – Checks to see if the nbdm module is loaded (kills in RedHat 7.2)

netftpsslpatch – Patches FTPSSL.pm.

newdomains – (OLD)

newdomains-sendmail – (OLD)

newexim – Installs the latest version of exim.

newftpuser – (NOT USED)

newpop – (NOT USED)

nofsck – Make fsck always use -y

nomodattach – Removes mod_attach from httpd.conf.

nomodauthmysql -Removes mod_auth_mysql from httpd.conf.

nomodbwprotect – Removes mod_bwportect from httpd.conf.

nomodgzipconfmods – Removes mod_gzip from httpd.conf.

nomodperl – Removes mod_perl from httpd.conf.

oldaddoncgi2xaddon – Updates old addons to X addons.

oldaddonconverter-(INTERNAL)

oopcheck – (INTERNAL)

park – Parks a domain.

patcheximconf – Fixes exim.conf.

patchposixtypes –

patchtypes –

patchtypesizes –

pedquota – (INTERNAL) – Part of editquota (for editting quota).

perlinstaller – Installs perl.

phpini – Create a php.ini file.

phpopenbasectl –

pingtest – Checks your download time from cPanel mirrors.

pkgacct – (INTERNAL)

pkgacct~ -(INTERNAL)

pkgacct2 – (INTERNAL)

pkgaccount-ala – backs up an Alabnza account for transfer.

pkgacct-ciXost – backs up a ciost account for transfer.

pkgacct-dXm – backs up a dm account for transfer.

pkgacct-enXim – backs up an enim account for transfer.

pkgacct-ng –

pkgacctn-ng.orig –

pkgacct-pXa – backs up a pa account for transfer.

popftpuse – (OLD)

portsup – (FREEBSD BETA)

postsuexecinstall – (INTERNAL)

proftpd128 – Installs proftpd-1.2.8.

pscan – (OLD)

ptycheck – Fixes permissoins on /dev/ptmx.

pwck -Verifies the integrity of system authentication information.

quickfixmysqlbsd – (NOT USED)

quickkernel – Updates your kernel.

quicksecure – Quickly kill useless services.

quotacheck – (INTERNAL)

rasetup – (OLD)

rawchpass – (INTERNAL)

realadduser – (INTERNAL)

realchpass – (INTERNAL)

realperlinstaller – (INTERNAL)

realrawchpass – (INTERNAL)

rebuildcpanelsslcrt – Rebuilds the cPanel SSL Certificate.

rebuildcpusers – Rebuilds /var/cpanel/users.

rebuildetcpasswd – Rebuilds /etc/passwd.

rebuildeximbsd – Rebuilds exim on FreeBSD.

rebuildhttpdconffromproftpd – Rebuild httpd.conf from the proftpd.conf file.

rebuildinterchangecfg – Used after moving a domain with Interchange to the server.

rebuildippool – (INTERNAL)

rebuildnamedconf – Restore named.conf from files in /var/named.

rebuildproftpd – Restore proftpd.conf from httpd.conf.

reinstallmailman – Reinstalls mailman.

relocatevartousr – Relocates files from /var to /usr in case of disk space issues.

remdefssl – Remove default SSL vhost.

reseteximtodefaults – Resets exim’s default settings.

resethorde –

resetimappasswds – Resets all imap passwords.

resetmailmanurls –

resetquotas – Change quotas to what they should be .

restartsrv – Restart a service.

restartsrv_apache – Restart apache.

restartsrv_bind – Restart bind.

restartsrv_clamd – Restart clamd.

restartsrv_courier – Restart courier imap.

restartsrv_cppop – Restart cppop.

restartsrv_entropychat – Restart entropy chat.

restartsrv_exim – Restart exim.

restartsrv_eximstats – Restart exim statistics.

restartsrv_ftpserver – Restart your ftp server.

restartsrv_ftpserver~ – (INTERNAL)

restartsrv_httpd – Restart httpd.

restartsrv_imap – Restart impad.

restartsrv_inetd – Restart inetd.

restartsrv_interchange – Restart Interchange Shopping Cart.

restartsrv_melange – Restart melange chat.

restartsrv_mysql – Restart mysqld.

restartsrv_named – Restart named.

restartsrv_postgres – Restart postgresql.

restartsrv_postgresql – Restart postgresql.

restartsrv_proftpd – Restart proftpd.

restartsrv_pureftpd – Restart pure-ftpd.

restartsrv_spamd – Restart spamd.

restartsrv_sshd – Restart sshd.

restartsrv_syslogd – Restart syslogd.

restartsrv_tomcat – Restart tomcat.

restartsrv_xinetd – Restart xinetd.

restoremail – Restores a user’s mail.

restorepkg –

reswhostmgr – Restart whostmgr.

rhlupdate – (OLD)

rpmpreinstall – (INTERNAL)

rpmup – Upgrade redhat/mandrake errata/security.

rpmup2 – (INTERNAL)

rpmup3 – (INTERNAL)

rrdtoolinstall – Installs RRD Tool.

rscpmd –

runlogsnow – (OLD)

runstatsonce – Runs statistics (should be used from the crontab).

runweblogs – Run analog/webalizer/etc. for a user.

ruserssscpcmd – (INTERNAL)

safeperlinstaller – Installs perl safely.

safeup2date – Runs up2date safely.

safeyum – Runs yum safely.

scpcmd – (INTERNAL)

searchbadgroups –

searchreplace – (NOT USED)

secureit – Remove unnecessary suid binaries.

securemysql – Attempts to secure the MySQL configuration.

securetmp – Adds securetmp to system startup.

selinux_custom_contexts –

selinuxsetup –

sendaim – (INTERNAL)

sendicq – (INTERNAL)

setupfp – Install FrontPage 3 on an account.

setupfp4 – Install FrontPage 4 (2000) installer on an account.

setupfp5 – Install FrontPage 5 (2002) installer on an account.

setupfp5.nosueuxec – Install FrontPage 5 (2002) installer on an account when not using suexec.

setupmakeconf –

showexelist – Shows exe processes.

simpleps – Display the process list.

simplesshcmd – (INTERNAL)

smartcheck – Checks hard drive integrity.

smtpmailgdionly – Enables SMTP Mail Protection.

snarf – (INTERNAL)

spamasssassin-cpanel – (NOT USED)

spamboxdisable – Disables SpamAssassin’s spambox delivery for all accounts.

sscpcmd – (INTERNAL)

ssh2.expect – (INTERNAL)

sshcmd –

sshcontrol – (INTERNAL)

ssh.expect – (INTERNAL)

stage2fpmail – (INTERNAL)

supportvoidcheck –

suspendacct – Suspends an account.

symlinktodir – (INTERNAL)

sysup – update cPanel RPMs.

telentcrt – (OLD)

testinf – (OLD)

trustme – (INTERNAL)

typocheck –

uf – (OLD)

unlimitnamed – Installs the latest version of bind patched to support greater than 512 ips on the server.

unblockip – Unblocks an IP blocked by portsentry.

unpkgacct – (INTERNAL)

unsetupfp4 – Removes FrontPage 4 or 5 from an account.

unslavenamedconf – If the user accidentally sets a DNS master as local server, this will repair named.conf after the loop.

unsuspendacct – Unsuspends an account.

upcp – Updates cPanel.

updated – Updates /scripts.

updatedomainips – (INTERNAL)

updatefrontpage – Updates FrontPage

updatemysqlquota –

updatenow – Updates /scripts NOW.

updatephpconf – Updates PHP configuration files.

updateuserdomains – (INTERNAL)

updateuserdomains2 – (INTERNAL)

userdirctl –

userps – (OLD)

usersscpcmd – (INTERNAL)

usersscpcmd1 – (INTERNAL)

usersshcmd – (INTERNAL)

verify – (OLD)

verifyzone – (INTERNAL)

whichrpm – (INTERNAL)

whoowns – Finds out who owns a domain.

whostmgrkey – (OLD)

wwwacct – Creates an account.

wwwacct2 – (INTERNAL)

x – (OLD)

xaddonreport – Reports the current addon scripts installed.

zoneexists – (INTERNAL)