Nagios installation step by step in centos/redhat or fedora part 1

installation of nagios-monitoring

What is Nagios? Nagios is a powerful monitoring system that enables organizations to identify and resolve IT infrastructure problems before they affect critical business processes.  It has the capability of monitoring application, services, entire IT infrastructure. It has been designed with scalability and flexibility in mind, Nagios gives you the peace of mind that comes from … Read more

Centos FTP command not found : Linux FTP install

install ftp on linux centos

FTP command not found # ftp 192.168.1.56 -bash: ftp: command not found # yum -y install ftp The above command will install the ftp client package on your CentOS server. If you use a proxy server for internet access,

File transfer in Linux : FTP in linux : Shell script to file trnsfer

linux file transer script

This script use to transfer file from linux to ftp server. You can automate this file transfer by putting this file in cronjob also. #!/bin/sh HOST=’ftp.users.qwest.net’ USER=’yourid’ PASSWD=’yourpw’ FILE=’file.txt’ ftp -n $HOST <<END_SCRIPT quote USER $USER quote PASS $PASSWD put $FILE quit END_SCRIPT exit 0  Please note that : Using the -n option on the ftp client … Read more

Linux Shell Script To Ftp File To Server

linux ftp fil transfer script

You need to create a shell scrip, needed to call from a crontab, to contact a FTP server and put or get a file. You will need to modify the variable section to reflect your settings. —————————————- #!/bin/bash HOST=ftp.server.com  #This is the FTP servers host or IP address. USER=ftpuser             #This is the FTP user that has access to the server. PASS=password          #This is the password for the FTP user. # Uses the ftp command with the -inv switches.  -i turns off interactive prompting. – Restrains FTP from attempting the auto-login feature. -v enables verbose and progress. ftp -inv $HOST 

Linux Cron Job – Schedule Job in linux: crontab

cron job in linux- crontab

In all Operating system there option to schedule a job/activity that should be run on particular time interval. Here is an introduction to job scheduler in linux, called crontab. Cron allows tasks to run automatically in the background at fixed time or time intervals depending upon the necessity of the task that has to be … Read more

Email alert on disk space outage in linux

disk alert in linux

For Send mail Tutorial Click Here Need to be installed sendmail ( yum install sendmail) and mailx (yum install mailx) Create a shell script in linux. vi diskalert.sh #!/bin/sh support=”itsupport@xyz.com” # set alert level 90% is default ALERT=90 df -HP | grep -vE ‘^Filesystem|tmpfs|cdrom’ |   while read partition size used free perc mnt ; … Read more

Stop firewall services centos : linux firewall service stop at startup

firewall

Check the Status of The Iptables IPv4 Firewall Run the following command to check the status of the iptables IPv4 firewall : # service iptables status Disable The Iptables Firewall Use the following commands to stop the Iptables Firewall and remove it from autostart. Disable The Iptables IPv4 Firewall Run the following commands to stop the iptables firewall … Read more

Mount.cifs cannot allocate memory : Mounting windows share

Mounting a Windows (cifs) share on centos gives us a “Mount.cifs cannot allocate memory” error. Executing a command like this: mount -t cifs //toad/Backup /media/backup -o user=username,password=password,iocharset=utf8,file_mode=0777,dir_mode=0777 We get an error like this: mount error(12): Cannot allocate memory Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) Solution: First, check the permissions on your shared … Read more

Changing centos/redhat run level init 3

chane run level centos

What is a runlevel ? Runlevel is the preset state in which a Linux system operates. Below mentioned are the different runlevels of a Linux system in which a linux system can be operated 0-  halt or shutdown 1- single user mode 2- multi user mode without NFS 3- full multi-user mode 4- not used … Read more