Email Alert for Host down using fping Rumi, October 26, 2020 A simplified bash script for host status alert: #!/bin/bash email=h.t.emdad@gmail.com NBR_DOWN=0 LOGFILE=/tmp/pinglog.txt echo "Server Down Status" > $LOGFILE for i in $(cat ping.txt); do fping $i >/dev/null if [ $? -ne 0 ]; then echo "$i is down" >> $LOGFILE NBR_DOWN=$((NBR_DOWN+1)) fi done if [ $NBR_DOWN -gt 0 ]; then mailx -s "Server Down Alert" $email < $LOGFILE fi The contents on ping.txt is like (entries are with new line entry: core-router host1 bc host2 host3 host4 cpanel If you do not have ‘mailx’ installed, install it using yum install mailx. Related Administrations Scripts AlertEmail Alertfping
INSTALL IPTABLES IN DEBIAN 11 (BULLSEYE) February 26, 2024February 26, 2024 In this article you will learn how to uninstall default nftables framework, install iptables Debian 11 (Bullseye) and basic rules initial configuration. Uninstall nftables and its Dependencies IPtables is being replaced by nftables starting with Debian 10 Buster. Debian 11 comes with nftables framework. To install iptables first we need uninstall nftables and its dependencies. SSH… Read More
OpenVZ on Debain Squeeze June 6, 2014 As soon as your Debian OS server is ready, login using the received credentials. We first will do an update/upgrade: apt-get update && apt-get -y upgrade && apt-get -y dist-upgrade which will upgrade our server to latest version. We install some additional packages to: apt-get -y install nano wget… Read More
ZOHO Mail Client Configuration May 26, 2017 Zoho Mail can be accessed via POP/ IMAP from the standard email clients. The administrator can enable or disable the access via POP/ IMAP for the user accounts based on the organizations requirements. The POP/ IMAP configuaration details are given below: IMAP Incoming Server Name : imappro.zoho.com Port : 993… Read More