File cleanup script for Linux

May 2nd, 2012 No comments

Sometimes disks fill up with logs for example, and we the administrators have to
login sometimes even wake up just to delete log files! Well this script solves the problem.
In this case I used to cleanup Glassfish log files. Just setup it on cron with X amount
of days to keep files. Carefull because its recursive.

Read more…

mytop mysql

April 27th, 2012 No comments

I would like to share the ultimate MySQL performance debugger tool.
Written by my friend Nereu.

Read more…

check_file_age

April 17th, 2012 1 comment

I wrote to scripts with the same idea, to monitor a file age, I have written it also in vbs in the past.
Now I did it in bash and php.

Read more…

CHECK FTP DIR

March 21st, 2012 No comments

I needed to check if operation was happening.
The doubt was, Is the FTP files being copied over every day to the server?
To be sure I wrote this PHP script to check.
It goes into the FTP server and check for a folder with the date of today.

Read more…

TIBCO

February 8th, 2012 No comments

TIBCO is a leader offering products and services in the EAI (Enterprise Architecture Integration), particularly Message-Oriented-Middleware (MOM).
Using its own implementation of JMS calles EMS and the more robust one called Rendezvous (RV)

Read more…

mountd: refused mount request: unmatched host

January 27th, 2012 No comments

mountd: refused mount request: unmatched host

Most likely the problem is on /etc/exports, add your IP or range after the directory you want to share.
vim /etc/exports
/opt/smr 172.17.0.0/16(rw,sync,no_root_squash)

Read more…

yum cdrom repo

January 27th, 2012 No comments

How to use the cdrom RedHat .iso

I tested using Vmware ESX and RedHat 5.7

1 . Mount or insert the RedHat CD

Read more…

change linux hostname

January 23rd, 2012 No comments

change linux RedHat / CentOS hostname

vim /etc/sysconfig/network
HOSTNAME=servername

Read more…

vote for best monitoring tool

January 12th, 2012 1 comment

Show your love for Nagios by voting in the poll! NOTE: If you haven’t participated on the LQ forum, before you’ll have to create an account and post a new message before you can vote.

Read more…

add new disk in linux

January 3rd, 2012 No comments

This is without using LVM.

try fdisk -l to find the new disk path (as in /dev/sdxx)
# fdisk -l
use fdisk /dev/sdxx to create partition.
# fdisk /dev/sdd1
n
p
1
,
t,83
w

Read more…

Tags: , , ,