linux

 

ZTC 11.02: zabbix templates for Linux servers monitoring

ZTC (Zabbix Templates Collection) is a collection of templates for monitoring servers availability and performance.

New in version 11.02:

  • NEW: very basic apache avtivemq template
  • NEW: very basic NFS filesystem template
  • IMPROVEMENT: mysql supports unix_socket config parameter

ZTC 10.11: zabbix templates for Linux, PostgreSQL, MySQL, Apache and nginx monitoring

ZTC (Zabbix Templates Collection) is a collection of templates for monitoring servers availability and performance.

New in version 10.11:

  • Template_app_nginx: nginx.ping param
  • Template_app_PostgreSQL: pgsql_autovac_freeze.py: listing databases with % how close they are to freeze (use /opt/ztc/bin/pgsql_autovac_freeze.py list)
  • new template: 3ware raid status monitoring
  • Template_Linux: ntp jitter monitoring

ZTC 9.9: zabbix templates for Linux, PostgreSQL, Slony, nginx and apache2

Hi!

This is next release of ZTC (Zabbix Templates Collection) - collection of templates and UserParameter scrips for zabbix for server aviability and performance monitoring.

This version introduces new template for apache2 monitoring and also includes lots of bugfixes and enchancements to existing templates.

Hopefully, this would be useful for anyone. I'm waiting for reviews, bugreports, featire requests and patches. Do it via trac, comments to this post or via any other method you'll find.

MySQL check & repair script

Recommended to run after every forced shutdown and periodically. Especially useful for large number of databases with MyISAM tables.

Requires: Python 2.x and MySQLdb (mysql python module)

#!/usr/bin/env python
 
#########################################
# Check all tables in all mysql databases
#
# Written by Vladimir Rusinov <vladimir@greenmice.info>, http://greenmice.info/
#
# Reqirements:
#   Python 2.x (tested with 2.4)
#   MySQLdb
 
#########################################
# Settings:
 
host="localhost"
username="root"
password=""

Iptables: router performance

Original: Iptables – производительность роутера (Russian)
Translation by Vladimir Rusinov

Incorrect iptables settings may cause poor router performance. I'll show you how can you improve iptables performance

Disable connection tracking

The first thing you need to do (if you are not using NAT) is to disable connection tracking in nat table, PREROUTING chain:

ZTC 10.10: zabbix templates for Linux, PostgreSQL, MySQL, Apache and nginx monitoring

ZTC (Zabbix Templates Collection) is a collection of templates for monitoring servers availability and performance.

ZTC 10.10 includes following templates

  • Linux_Generic - Linux OS monitoring: CPU, memory, disks
  • Apache - monitoring of apache httpd 2.0+ web server
  • nginx - monitoring of nginx web server
  • MySQL - monitoring of MySQL 5.0+
  • PostgreSQL - monitoring of PostgreSQL 8.3+
  • and some others

RHEL/CentOS usability

RHEL/CentOS is good server OS, but sometimes it's too Enterprise and needs some usability tuning. I wrote instruction for myself and apply it to all stand-alone servers I manage.

Here it is:

Whoami && whereami

# cpu:
cat /proc/cpuinfo
# disks:
df -h
sudo /sbin/fdisk -l
/usr/sbin/vgdisplay
/usr/sbin/lvdisplay
sudo /sbin/hdparm -tT /dev/sda
# devices:
sudo /sbin/lsusb
sudo /sbin/lspci
# memory
vmstat

Creating user

Do not use root account for many reasons.

Login as root:
 

User login

Syndicate

Syndicate content