Home | 简体中文 | 繁体中文 | 杂文 | Search | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | 作品与服务 | Email

Netkiller Linux Monitoring 手札

Monitoring, Scanner, Sniffer and Audit...

Mr. Neo Chan, 陈景峰(BG7NYT)


中国广东省深圳市龙华新区民治街道溪山美地
518131
+86 13113668890
+86 755 29812080

版权声明

转载请与作者联系,转载时请务必标明文章原始出处和作者信息及本声明。

文档出处:
http://netkiller.github.io
http://netkiller.sourceforge.net

微信扫描二维码进入 Netkiller 微信订阅号

QQ群:128659835 请注明“读者”

2010-11-18

内容摘要

本文档讲述Linux系统涵盖了系统管理与配置包括:

[注意]对初学Linux的爱好者忠告

玩Linux最忌reboot(重新启动)这是windows玩家坏习惯

Linux只要接上电源你就不要再想用reboot,shutdown,halt,poweroff命令,Linux系统和应用软件一般备有reload,reconfigure,restart/start/stop...不需要安装软件或配置服务器后使用reboot重新引导计算机

在Linux系统里SIGHUP信号被定义为刷新配置文件,有些程序没有提供reload参数,你可以给进程发送HUP信号,让它刷新配置文件,而不用restart.通过pkill,killall,kill 都可以发送HUP信号例如: pkill -HUP httpd

我的系列文档:

操作系统

Netkiller Linux 手札 Netkiller FreeBSD 手札 Netkiller Shell 手札 Netkiller Security 手札 Netkiller Web 手札 Netkiller Monitoring 手札 Netkiller Storage 手札 Netkiller Mail 手札

数据库

Netkiller Database 手札 Netkiller PostgreSQL 手札 Netkiller MySQL 手札 Netkiller NoSQL 手札 Netkiller LDAP 手札  

以下文档停止更新合并到 《Netkiller Linux 手札》

Netkiller Debian 手札 Netkiller CentOS 手札 Netkiller Multimedia 手札    

您可以使用iBook阅读当前文档

QQ群:128659835 请注明“读者”

目录

1. 自述
1.1. 系列文档
1.2. 作者简介
1.3. 写给读者
I. System Monitoring & Utility
1. User
1.1. last, lastb - show listing of last logged in users
2. Memory
2.1. Memory
2.2. vmstat - Report virtual memory statistics
2.3. mpstat
2.4. pmap - report memory map of a process
3. CPU
3.1. uptime - Tell how long the system has been running.
3.2. top - display Linux tasks
3.3. atop - AT Computing's System & Process Monitor
3.4. htop - interactive process viewer
4. Processes
4.1. strace - trace system calls and signals
5. Harddisk IO
5.1. input/output statistics
5.1.1. 5 秒监控一次
5.2. iotop - simple top-like I/O monitor
5.3. ionice - set or get process I/O scheduling class and priority
5.4. smartd - SMART Disk Monitoring Daemon
6. Network IO
6.1. netstat
6.2. ss
6.3. iftop - display bandwidth usage on an interface by host
6.4. iptraf - Interactive Colorful IP LAN Monitor
6.5. nload: Console application which monitors network traffic and bandwidth
6.6. bwm - Bandwidth Monitor
6.7. iptstate - A top-like display of IP Tables state table entries
7. Service
7.1. NFS
7.1.1. nfsstat
7.1.2. nfswatch
7.2. apachetop
8. 文件监控
9. watchdog
10. nmon
11. Hardware
11.1. temperature/voltage/fan
11.2. mcelog - Decode kernel machine check log on x86 machines
12. SMS
12.1. gnokii
12.1.1. 安装
12.1.2. 配置
12.1.3. 发送测试短信
12.1.4. 接收短信
12.1.5. 拨打电话
12.2. AT Commands
12.2.1. 发送短信
12.2.2. 语音通话
13. IPMI (Intelligent Platform Management Interface)
13.1. OpenIPMI
13.2. freeipmi
13.2.1. ipmiping
13.2.2. ipmimonitoring
13.2.3. ipmi-sensors
13.2.4. ipmi-locate
13.3. ipmitool - utility for controlling IPMI-enabled devices
13.3.1. ipmitool
13.3.2. sensor
13.3.3. ipmitool shell
13.3.4. ipmitool 访问远程主机
13.3.5. Get chassis status and set power state
13.3.6. Configure Management Controller
13.3.7. Example for iDRAC
14. JVM
14.1. jconsole
14.2. jps - Java Virtual Machine Process Status Tool
14.3. jinfo - Configuration Info
14.4. jstat - Java Virtual Machine Statistics Monitoring Tool
14.5. jHiccup
15. NET SNMP (Simple Network Management Protocol)
15.1. 安装SNMP
15.1.1. Ubuntu
15.1.1.1. snmpd.conf
15.1.1.2. SNMP v3
15.1.2. CentOS
15.1.2.1. Configure SNMPv3 on CentOS or RHEL
15.2. 配置SNMP
15.2.1. community 配置
15.2.2. 定义可操作的范围
15.3. SNMP 命令
15.3.1. snmpwalk
15.3.2. snmpget
15.3.3. snmptest
15.4. Cisco MBI
15.4.1. Cisco 3750
15.4.2. Cisco ASA 5550
16. Zabbix
16.1. Installing and Configuring Zabbix
16.1.1. Ubuntu
16.1.2. CentOS Zabbix 2.4
16.1.3. Zabbix 3.x CentOS 7
16.2. web ui
16.2.1. 警告脚本
16.3. zabbix-java-gateway - Zabbix java gateway
16.4. zabbix-agent
16.4.1. Ubuntu
16.4.2. CentOS 7
16.4.3. zabbix_agentd 命令
16.4.4. Nginx status 监控
16.4.5. redis
16.4.6. MongoDB
16.4.6.1. 创建 Mongo 监控用户
16.4.6.2. Zabbix agentd 配置
16.4.6.3. Zabbix server 测试
16.4.7. PHP-FPM
16.4.7.1. 启用 php-fpm status 功能
16.4.7.2. 配置 nginx
16.4.7.3. 配置 Zabbix 代理
16.4.7.4. php-fpm 监控参数
16.4.8. Elasticsearch
16.4.8.1. 安装采集脚本
16.4.8.2. 配置Zabbix代理
16.4.9. Postfix
16.4.9.1. 安装采集脚本
16.4.9.2. userparameter_postfix.conf
16.4.10. TCP stats
16.4.10.1. 采集脚本
16.4.11. 应用依赖检查
16.4.11.1.
16.4.12. Oracle
16.4.12.1. 采集脚本
17. Cacti
17.1. Install Cacti for Ubuntu
17.2. Yum 安装
17.3. Source Install
17.4. Web 安装
17.5. Cacti plugins
17.5.1. Percona monitoring plugins
17.6. Template
17.6.1. Nginx
17.6.2. php-fpm
17.6.3. MySQL
17.6.4. Redis
17.6.5. Percona JMX Monitoring Template for Cacti
18. Nagios
18.1. Install
18.1.1. Nagios core
18.1.2. Monitor Client nrpe
18.1.3. Monitoring Windows Machines
18.1.4. PNP4Nagios 图表插件
18.2. nagios
18.3. nrpe node
18.4. 配置 Nagios
18.4.1. authorized
18.4.2. contacts
18.4.3. hostgroups
18.4.4. generic-service
18.4.5. SOUND OPTIONS
18.4.6. SMS 短信
18.4.7. nrpe plugins
18.5. 配置监控设备
18.5.1. routers
18.5.2. host
18.5.3. service
18.5.3.1. http
18.5.3.2. mysql hosts
18.5.3.3. check_tcp
18.6. Nagios Plugins
18.6.1. check_ping
18.6.2. check_procs
18.6.3. check_users
18.6.4. check_http
18.6.5. check_mysql
18.6.5.1. check_mysql
18.6.5.2. mysql.cfg check_mysql_replication
18.6.5.3. nrpe.cfg check_mysql_replication
18.6.6. Disk
18.6.6.1. disk.cfg
18.6.6.2. check_disk
18.6.6.3. disk-smb.cfg
18.6.7. check_tcp
18.6.7.1. 端口检查
18.6.7.2. Memcache
18.6.7.3. Redis
18.6.8. check_log
18.6.9. check_traffic
18.6.10. Nagios nrpe plugins
18.6.11. check_nt
18.6.12. nsca - Nagios Service Check Acceptor
18.6.13. jmx
18.7. FAQ
18.7.1. Macro Name
18.7.2. 插件开发手册
19. Logs 分析
19.1. log
19.1.1. logwatch
19.1.2. logcheck : Analyzes log files and sends noticeable events as email
19.1.3. nulog
19.2. Web
19.2.1. Apache Log
19.2.1.1. 刪除日志
19.2.1.2. 统计爬虫
19.2.1.3. 统计浏览器
19.2.1.4. IP 统计
19.2.1.5. 统计域名
19.2.1.6. HTTP Status
19.2.1.7. URL 统计
19.2.1.8. 文件流量统计
19.2.1.9. URL访问量统计
19.2.1.10. 脚本运行速度
19.2.1.11. IP, URL 抽取
19.2.2. awstats
19.2.2.1. 语言
19.2.2.2. 输出HTML文档
19.2.2.3. 多站点配置
19.2.2.4. 合并日志
19.2.2.5. Flush history file on disk (unique url reach flush limit of 5000) 优化
19.2.2.6. JAWStats
19.2.3. webalizer
19.2.3.1. 手工生成
19.2.3.2. 批量处理历史数据
19.2.3.3. crontab
19.2.4. Sarg - Squid Analysis Report Generator
19.2.5. goaccess - Fast web log analyzer and interactive viewer.
19.3. Tomcat
19.3.1. 截取 0-3 点区间的日志
19.3.2. 监控Redis
19.4. Mail
19.4.1. pflogsumm.pl - Produce Postfix MTA logfile summary
19.5. /var/log/secure
19.6. rinetd.log
19.7. php-syslog-ng
19.8. Log Analyzer
19.9. Splunk
19.10. logstash - open source log management
19.11. Octopussy
19.12. eventlog-to-syslog
19.13. Apache Flume
20. MRTG
20.1. Ubuntu 安装
20.2. CentOS 安装
20.3. 监控多个设备
20.4. 批量生成监控配置文件
20.5. 图片尺寸
21. Munin
21.1. Ubuntu
21.1.1. Installation Monitor Server
21.1.2. Installation Node
21.1.3. Additional Plugins
21.1.4. plugins
21.1.4.1. mysql
21.1.4.2. apache
21.2. CentOS
21.3. 用户认证
21.4. munin-node and plugins
21.4.1. munin-node.conf
21.4.2. mysql plugin
21.4.3. apache plugin
21.4.4. memcached plugin
21.5. munin.conf
21.6. munin-node
21.6.1. munin-node.conf
22. Ntop
22.1. Installation
22.1.1. Ubuntu
22.1.2. CentOS
22.2. Web UI
22.3. Plugins
22.3.1. NetFlow
23. Bandwidth
23.1. apt-get install
23.2. CentOS rpm/yum
23.3. source code
23.4. /etc/bandwidthd.conf
24. NetFlow
24.1. flow-tools - collects and processes NetFlow data
24.1.1. flow-capture
24.1.2. NetFlow into MySQL with flow-tools
24.2. netams - Network Traffic Accounting and Monitoring Software
24.2.1. netams-web
25. Ganglia
25.1. Server
25.2. Client
25.3. Plugin
25.4. Installing Ganglia on Centos
26. lvs-rrd
27. Observium
27.1. Installation
28. OpenTSDB
29. Graphite
30. Graphite - Scalable Realtime Graphing
31. BIG BROTHER
32. Big Sister
33. OpenNMS
34. Performance Co-Pilot
35. Clumon Performance Monitor
36. Zenoss
37. 商业软件
38. Hyperic HQ
39. OSSIM,Spiceworks,FireGen,LANSweeper,OSSEC,HIDS
40. HawtIO
41. moloch
42. Varnish Dashboard

范例清单

10.1. nmon
16.1. zabbix-agent 配置实例
17.1. cacti config.php
18.1.
19.1. config.php
20.1. mrtg

1. icinga

https://www.icinga.org/

comments powered by Disqus