Skip to main content

Posts

Showing posts from June, 2017

Zabbix alert Notification with Telegram

Zabbix Notifications with graphs in Telegram. Features  Graphs based on latest data are sent directly to your messenger  You can send messages both in private and group chats  Channels support  Saves chatid as a temporary file  Simple markdown and HTML are supported  Emoji in messages First of all : Nedd to install python (>3) on Cent os  # yum -y install python-pip # yum install -y https://centos7.iuscommunity.org/ius-release.rpm #  yum install -y python34u python34u-libs python34u-devel python34u-pi # yum -y install python-pip You need to install the  requests  module for python, this is required for operation! # pip install requests Put  zbxtg.py  in your  AlertScriptsPath  directory, the path is set inside your zabbix_server.conf (once confirm by zabbix server conf file ) Link to download ZBXTG.PY file  https://drive.google.com/open?id=0BxB8j19aCMZ8dFl1aHVuLVJyRjQ # cp zbxtg.py /usr/local/share/zabbix/alertscripts/ Create

How to Block Ping (ICMP) Responses in Linux System

Blocking ping responses from system can prevent system from hackers to ICMP flood dos attacks. So it can be a best practice for system security but most of online monitoring systems uses ping requests for monitoring system. Disable Ping using iptables You can simply block icmp responses directly from firewall in any Linux systems. # iptables -A INPUT -p icmp --icmp-type echo-request -j DROP Block Ping with Kernel Parameter We can also block ping responses from system by directly updating kernel parameters. In this we can block ping responses temporarily or permanently as below. Block Ping Temporarily You can block temporarily block ping responses temporarily using following command # echo "1" > /proc/sys/net/ipv4/icmp_echo_ignore_all Block Ping Permanently In place of blocking ping temporarily, You can block it permanently by adding following parameter in /etc/sysctl.conf configuration file. net.ipv4.icmp_echo_ignore_all = 1 Now execute following

How To Install Webmin on CentOS 7

Webmin is a web-based interface for system administration for Linux-based servers. It’s one of the most popular open source hosting control panels . In this tutorial, we are going to show you how to install Webmin on a Linux VPS running CentOS 7 as an operating system. Update your system Connect to your Linux server via SSH and update all the currently installed software to the latest version available using the command below: # yum -y update You can also enable automatic updates . You should always keep your server up to date. Download and install the RPM version of Webmin To download Webmin, please visit the Webmin download page and check for the Webmin RPM package. The RPM package is suitable for any RedHat, Fedora or CentOS system. To download the package you can use wget . # wget http://prdownloads.sourceforge.net/webadmin/webmin-1.831-1.noarch.rpm In order to proceed with the installation, you need to make sure that all dependencies are installed on your CentO

How to remove zabbix-agent from Ubuntu 16.04 (Xenial Xerus)

Uninstall zabbix-agent To remove just zabbix-agent package itself from Ubuntu 16.04 (Xenial Xerus) execute on terminal: sudo apt-get remove zabbix-agent Uninstall zabbix-agent and it's dependent packages To remove the zabbix-agent package and any other dependant package which are no longer needed from Ubuntu Xenial. sudo apt-get remove --auto-remove zabbix-agent Purging zabbix-agent If you also want to delete configuration and/or data files of zabbix-agent from Ubuntu Xenial then this will work: sudo apt-get purge zabbix-agent To delete configuration and/or data files of zabbix-agent and it's dependencies from Ubuntu Xenial then execute: sudo apt-get purge --auto-remove zabbix-agent

Install Zabbix Agent on Suse Linux and Configure

Install taken from Suse –  http://software.opensuse.org/download/package?project=server:monitoring&package=zabbix-agent For SLE 12 SP1 run the following as root : zypper addrepo http://download.opensuse.org/repositories/server:monitoring/SLE_12_SP1/server:monitoring.repo zypper refresh zypper install zabbix-agent For SLE 12 run the following as root : zypper addrepo http://download.opensuse.org/repositories/server:monitoring/SLE_12/server:monitoring.repo zypper refresh zypper install zabbix-agent For SLE 11 SP4 run the following as root : zypper addrepo http://download.opensuse.org/repositories/server:monitoring/SLE_11_SP4/server:monitoring.repo zypper refresh zypper install zabbix-agent For SLE 11 SP3 run the following as root : zypper addrepo http://download.opensuse.org/repositories/server:monitoring/SLE_11_SP3/server:monitoring.repo zypper refresh zypper install zabbix-agent To configure the agent – Instructions taken from – https://www.zabbix.org/wiki