Activities

September 2020
M T W T F S S
« Apr    
 123456
78910111213
14151617181920
21222324252627
282930  

Disable Nagios notification for a Time period

Yeaah it’s another jobs comes from my curiosity as I need nagios notification disable while I’m running a backup.

In my case I would need to take a database backup from a MySql slave. This slave is already added in Nagios monitoring system as well as this system watching the binary log position of both […]

Mutt : Sending attachments from commandline

We all are familiar with “mail” command in most of the linux/unix platform. We can easily send email from command-line using “mail” command. Also we can use this command to

1. Check the emails to a user box.

[root@conn-web05 ~]# mail Mail version 8.1 6/6/93.  Type ? for help. "/var/spool/mail/root": 7 messages 7 unread […]

How do I exclude certain files/folders from rsync

It’s a long time after starting blogging. I found one interesting option in “rsysnc” where we can skip specified files from being synchronized. This mechansim would be helpful if you have many web server cluster configured for a site.

while I’m setting up Elastic load balancer in Amazon, I need to keep all the production […]

NTP : ntpd dead but subsys locked

I’m going to setup a Intenet Time server using NTP. I uses yum method to install.

#yum install ntp* # chkconfig ntpd on #service ntpd start After a while I can see that ntp has not been working and it’s dead. It’s throwing me an error “ntpd dead but subsys locked” [root@rc-090 ~]# netstat -nlp […]

How do I restore mysql Innodb database from hot copy backup

Recently I had a severe server failure. Nagios showing “server down” alert notification. Sooner I tried to ssh and able to login. Found that none of the process can’t write the files on root drive as it is mounted as read only mode.

First of all, I had done a quick back up with the […]

How do I remove older backup automatically both for Linux and Windows

This is really helpful to Sys-Admin who is managing various backup on different geographical locations.

For Linux,

The following commands will help you to remove your old backup which cost disk usage. I used this script to remove the older backup using a cronjob.

[root@ip-8-11-50-231 database]# crontab -l 00 04 1,16 * * /usr/bin/find […]