ifstat is a program for collecting statistics on network interface load.Continue reading “Installing and using ifstat on Linux”
Vnstat is a simple traffic accounting tool.
Vnstati is a utility for visualizing statistics.
Collectl is a console tool for monitoring system performance and recording results.Continue reading “Installing and using collectl on Linux”
I will give an example of checking the integrity of a file through checksum calculation using Zabbix agent.Continue reading “Tracking file changes via Zabbix”
One day after restarting the Ubuntu server, due to the long start of a large number of network interfaces, my script which increased the values of the buffers and also performed other settings was performed ahead of time, respectively, the changes did not apply and I found out about this problem only after 24 hours, so I decided monitor current RX and TX buffers.Continue reading “Monitoring current RX and TX network interface buffers in Zabbix”
I will give examples of viewing the number of active compounds:Continue reading “How to detect DDOS attacks”
nload – network interface bandwidth monitoring tool with graphical display in the terminal.
Installing nload on Linux Ubuntu/Debian:
sudo apt-get install nload
NetData – monitoring system that displays real-time statistics on web panels.
On the test, I will install NetData on Ubuntu 18.04 and Ubuntu 16.04.
Before installing, you can upgrade the system:
sudo apt-get update sudo apt-get upgrade
If Ubuntu version is 18.04 and newer, then NetData is installed with the command:
sudo apt-get install netdata
After installation, the configuration will be in /etc/netdata/, the logs in /var/log/netdata/.
On Ubuntu 16.04 and older, you can install as follows (the installation will be done in /opt/netdata/):
sudo bash <(curl -Ss https://my-netdata.io/kickstart-static64.sh)
Restart NetData can command:
sudo systemctl restart netdata
sudo systemctl status netdata sudo ps ax | grep netdata
After installing NetData, you can immediately open it in the browser http://HOST:19999
I recommend to immediately restrict access to the tcp port 19999, for example through iptables.
One night at the station, the air conditioners turned off and the temperature started to rise, naturally, I received email notifications on the phone, but since it was night, I only saw them in the morning, so it was necessary for such an emergency to quickly make the possibility of phone call notifications.
I will give an example of the variant of Zabbix alerts using a phone call through Asterisk.
Asterisk should have a module loaded, to do this, open the module configuration file, for example, in the nano editor (Ctrl+X to exit, y/n to save or cancel changes):
sudo nano /etc/asterisk/modules.conf
The utility is installed in Ubuntu/Debian by the command:
sudo apt-get install dnstop
dnstop -n google.com eth0
I’ll describe the list of possible startup keys:
-4 (number of IPv4 packets)
-6 (number of IPv6 packets)
-Q (number of requests)
-R (number of answers)
-a (anonymous IP addresses)
-i ADDRESS (ignoring the specified IP address)
-n NAME (number of requests for the specified address only)
-l NUMBER (monitoring up to the specified number of requests)
-f (filter name)