As a Sysadmin we often require backing up several databases to meet the SLA or system requirements. Sometimes we need…
Let’s say you need to protect few directories (/def, /ghi, /mno) from following tree. Then please follow the further mention…
print lines matching a pattern within a directory with its subdirector grep(1) -rnw ‘/path/to/somewhere/’ -e “pattern” -R, -r, –recursive Read…
List Size of all Mysql Database SELECT table_schema AS “Database”, ROUND(SUM(data_length + index_length) / 1024 / 1024, 2) AS “Size…
To add a custom service check in nagios the following need to be done. Add an new command in commands.cfg…
Case I: if /boot is not 100% full and apt is working 1. Check the current kernel version $ uname…
CentOS or RHEL 6.x The following example I have taken as Apache HTTP server, but procedure remain same for any…
nano /etc/apt/sources.list Comment Everthing… Add These lines deb http://archive.debian.org/debian wheezy main contrib non-free deb-src http://archive.debian.org/debian/ wheezy main non-free contrib deb…
Follow Step by Step to Install Nrpe client in Remote servers you want to monitor from Nagios core Update Repository…
#!/bin/bash service=replace_me_with_a_valid_service if (( $(ps -ef | grep -v grep | grep $service | wc -l) > 0 )) then…