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


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

QQ群:128659835 请注明“读者”

目录

1. 自述
1.1. 系列文档
1.2. 作者简介
1.3. 写给读者
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
4.2. lsof - list open files
4.2.1. 监控文件系统
4.2.2.
4.2.3. 用户监控
4.2.4. 监控网络
4.2.5. 监控进程
4.2.6. lsof 高级用法
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
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
7. Service
7.1. NFS
7.1.1. nfsstat
7.1.2. nfswatch
7.2. apachetop
8. iptstate - A top-like display of IP Tables state table entries
9. 文件监控
10. watchdog
11. nmon
12. Hardware
12.1. temperature/voltage/fan
12.2. mcelog - Decode kernel machine check log on x86 machines
13. SMS
13.1. gnokii
13.1.1. 安装
13.1.1.1. Ubuntu
13.1.1.2. CentOS
13.1.2. 配置
13.1.3. 发送测试短信
13.1.4. 接收短信
13.1.5. 拨打电话
13.2. AT Commands
13.2.1. 发送短信
13.2.2. 语音通话
14. IPMI (Intelligent Platform Management Interface)
14.1. OpenIPMI
14.2. freeipmi
14.2.1. ipmiping
14.2.2. ipmimonitoring
14.2.3. ipmi-sensors
14.2.4. ipmi-locate
14.3. ipmitool - utility for controlling IPMI-enabled devices
14.3.1. ipmitool
14.3.1.1. ubuntu
14.3.1.2. CentOS
14.3.2. sensor
14.3.3. ipmitool shell
14.3.4. ipmitool 访问远程主机
14.3.5. Get chassis status and set power state
14.3.6. Configure Management Controller
14.3.6.1. Management Controller status and global enables
14.3.6.2. Configure LAN Channels
14.3.6.3. Configure Management Controller users
14.3.6.4. Configure Management Controller channels
14.3.7. Example for iDRAC
14.3.7.1. 更改IP地址,子网掩码与网关
14.3.7.2. 更改 iDRAC LCD 显示屏
14.3.7.3. 更改 iDRAC 密码
14.3.7.4. 关机/开机
14.3.7.5. 启动列表
15. Logs 分析
15.1. log
15.1.1. logwatch
15.1.2. nulog
15.2. Web
15.2.1. Apache Log
15.2.1.1. 刪除日志
15.2.1.2. 统计爬虫
15.2.1.3. 统计浏览器
15.2.1.4. IP 统计
15.2.1.5. 统计域名
15.2.1.6. HTTP Status
15.2.1.7. URL 统计
15.2.1.8. 文件流量统计
15.2.1.9. URL访问量统计
15.2.1.10. 脚本运行速度
15.2.1.11. IP, URL 抽取
15.2.2. Tomcat Log
15.2.2.1. 截取 0-3 点区间的日志
15.2.3. awstats
15.2.3.1. 语言
15.2.3.2. 输出HTML文档
15.2.3.3. 多站点配置
15.2.3.4. 合并日志
15.2.3.5. Flush history file on disk (unique url reach flush limit of 5000) 优化
15.2.3.6. JAWStats
15.2.4. webalizer
15.2.4.1. 手工生成
15.2.4.2. 批量处理历史数据
15.2.4.3. crontab
15.2.5. Sarg - Squid Analysis Report Generator
15.2.6. goaccess - Fast web log analyzer and interactive viewer.
15.3. rinetd.log
15.4. php-syslog-ng
15.5. Log Analyzer
15.6. Splunk
15.7. logstash - open source log management
15.8. Octopussy
15.9. eventlog-to-syslog
15.10. Apache Flume
16. JVM
16.1. jconsole
16.2. jps - Java Virtual Machine Process Status Tool
16.3. jinfo - Configuration Info
16.4. jstat - Java Virtual Machine Statistics Monitoring Tool
16.5. jHiccup
17. NET SNMP (Simple Network Management Protocol)
17.1. 安装SNMP
17.1.1. Ubuntu
17.1.1.1. snmpd.conf
17.1.1.2. SNMP v3
17.1.2. CentOS
17.1.2.1. Configure SNMPv3 on CentOS or RHEL
17.2. 配置SNMP
17.2.1. community 配置
17.2.2. 定义可操作的范围
17.3. SNMP 命令
17.3.1. snmpwalk
17.3.2. snmpget
17.3.3. snmptest
17.4. Cisco MBI
17.4.1. Cisco 3750
17.4.2. Cisco ASA 5550
18. Cacti
18.1. Install Cacti for Ubuntu
18.2. Yum 安装
18.3. Source Install
18.4. Web 安装
18.5. Cacti plugins
18.5.1. Percona monitoring plugins
18.6. Template
18.6.1. Nginx
18.6.2. php-fpm
18.6.3. MySQL
18.6.4. Redis
18.6.5. Percona JMX Monitoring Template for Cacti
19. Nagios
19.1. Install
19.1.1. Nagios core
19.1.2. Monitor Client nrpe
19.1.3. Monitoring Windows Machines
19.1.4. PNP4Nagios 图表插件
19.2. 配置 Nagios
19.2.1. authorized
19.2.2. contacts
19.2.3. hostgroups
19.2.4. generic-service
19.2.5. SOUND OPTIONS
19.2.6. SMS 短信
19.3. 配置监控设备
19.3.1. routers
19.3.2. host
19.3.3. service
19.3.3.1. http
19.3.3.2. mysql hosts
19.3.3.3. check_tcp
19.4. Nagios Plugins
19.4.1. check_ping
19.4.2. check_procs
19.4.3. check_users
19.4.4. check_http
19.4.5. check_mysql
19.4.5.1. check_mysql
19.4.5.2. mysql.cfg check_mysql_replication
19.4.5.3. nrpe.cfg check_mysql_replication
19.4.6. Disk
19.4.6.1. disk.cfg
19.4.6.2. check_disk
19.4.6.3. disk-smb.cfg
19.4.7. check_tcp
19.4.7.1. 端口检查
19.4.7.2. Memcache
19.4.7.3. Redis
19.4.8. check_log
19.4.9. check_traffic
19.4.10. Nagios nrpe plugins
19.4.11. check_nt
19.4.12. nsca - Nagios Service Check Acceptor
19.4.13.
19.5. FAQ
19.5.1. Macro Name
19.5.2. 插件开发手册
20. Munin
20.1. Installation Monitor Server
20.2. Installation Node
20.3. Additional Plugins
20.4. plugins
20.4.1. mysql
20.4.2. apache
21. Zabbix
21.1. Installing and Configuring Zabbix
21.1.1. Ubuntu
21.1.2. CentOS
21.2. web ui
21.3. zabbix-java-gateway - Zabbix java gateway
21.4. zabbix-agent
22. Ganglia
22.1. Server
22.2. Client
22.3. Plugin
22.4. Installing Ganglia on Centos
23. lvs-rrd
24. Ntop
24.1. Installation
24.1.1. Ubuntu
24.1.2. CentOS
24.2. Web UI
24.3. Plugins
24.3.1. NetFlow
25. Observium
25.1. Installation
26. OpenTSDB
27. Graphite
28. Graphite - Scalable Realtime Graphing
29. BIG BROTHER
30. Big Sister
31. OpenNMS
32. Performance Co-Pilot
33. Clumon Performance Monitor
34. Zenoss
35. 商业软件
36. Hyperic HQ
37. OSSIM,Spiceworks,FireGen,LANSweeper,OSSEC,HIDS
38. HawtIO
39. moloch
40. NetFlow
40.1. flow-tools - collects and processes NetFlow data
40.1.1. flow-capture
40.1.2. NetFlow into MySQL with flow-tools
40.2. netams - Network Traffic Accounting and Monitoring Software
40.2.1. netams-web
41. Varnish Dashboard

范例清单

11.1. nmon
15.1. config.php
3. mrtg
18.1. cacti config.php
19.1.

1. Mrtg

$ sudo apt-get install mrtg
$ sudo mkdir /etc/mrtg/
$ sudo sh -c 'cfgmaker --global "HtmlDir: /var/www/mrtg" \
--global "ImageDir: /var/www/mrtg" \
--global "LogDir: /var/lib/mrtg" \
--global "ThreshDir: /var/lib/mrtg" \
--global "Options[_]: growright,bits"  \
--ifref=name --ifdesc=descr --show-op-down \
public@172.16.0.254 > /etc/mrtg/firewall.cfg'

$ sudo mkdir -p /var/www/mrtg
$ sudo indexmaker --output=/var/www/mrtg/firewall.html /etc/mrtg/firewall.cfg
	

例 3. mrtg

		

		
		

comments powered by Disqus