Home | 简体中文 | 繁体中文 | 杂文 | Github | 知乎专栏 | 51CTO学院 | CSDN程序员研修院 | OSChina 博客 | 腾讯云社区 | 阿里云栖社区 | Facebook | Linkedin | Youtube | 打赏(Donations) | About
知乎专栏多维度架构

第 73 章 上一代监控系统

目录

73.1. SMS
73.1.1. gnokii
73.1.2. AT Commands
73.2. IPMI (Intelligent Platform Management Interface)
73.2.1. OpenIPMI
73.2.2. freeipmi
73.2.3. ipmitool - utility for controlling IPMI-enabled devices
73.3. Cacti
73.3.1. Install Cacti for Ubuntu
73.3.2. Yum 安装
73.3.3. Source Install
73.3.4. Web 安装
73.3.5. Cacti plugins
73.3.6. Template
73.4. Nagios
73.4.1. Install
73.4.2. nagios
73.4.3. nrpe node
73.4.4. 配置 Nagios
73.4.5. 配置监控设备
73.4.6. Nagios Plugins
73.4.7. FAQ
73.5. Munin
73.5.1. Ubuntu
73.5.2. CentOS
73.5.3. 用户认证
73.5.4. munin-node and plugins
73.5.5. munin.conf
73.5.6. munin-node
73.6. Observium
73.6.1. Installation
73.7. Ganglia
73.7.1. Server
73.7.2. Client
73.7.3. Plugin
73.7.4. Installing Ganglia on Centos
73.8. Varnish Dashboard
73.9. icinga
73.10. Graphite
73.10.1. Graphite - Scalable Realtime Graphing
73.11. BIG BROTHER
73.12. Big Sister
73.13. OpenNMS
73.14. Performance Co-Pilot
73.15. Clumon Performance Monitor
73.16. Zenoss
73.17. 商业软件
73.18. Hyperic HQ
73.19. OSSIM,Spiceworks,FireGen,LANSweeper,OSSEC,HIDS
73.20. HawtIO
73.21. moloch

流行于2015年之前

73.1. SMS

73.1.1. gnokii

http://www.gnokii.org

73.1.1.1. 安装

Ubuntu
neo@monitor:~$ apt-cache search gnokii
opensync-plugin-gnokii - Opensync gnokii plugin
gnokii - Datasuite for mobile phone management
gnokii-cli - Datasuite for mobile phone management (console interface)
gnokii-common - Datasuite for mobile phone management (base files)
gnokii-smsd - SMS Daemon for mobile phones
gnokii-smsd-mysql - SMSD plugin for MySQL storage backend
gnokii-smsd-pgsql - SMSD plugin for PostgreSQL storage backend
libgnokii-dev - Gnokii mobile phone interface library (development files)
libgnokii5 - Gnokii mobile phone interface library
xgnokii - Datasuite for mobile phone management (X interface)


neo@monitor:~$ sudo apt-get install gnokii-cli
				
CentOS
# yum search gnokii

gnokii-devel.x86_64 : Gnokii development files
gnokii-smsd.x86_64 : Gnokii SMS daemon
gnokii-smsd-mysql.x86_64 : MySQL support for Gnokii SMS daemon
gnokii-smsd-pgsql.x86_64 : PostgreSQL support for Gnokii SMS daemon
gnokii-smsd-sqlite.x86_64 : SQLite support for Gnokii SMS daemon
gnokii.x86_64 : Linux/Unix tool suite for various mobile phones
xgnokii.x86_64 : Graphical Linux/Unix tool suite for various mobile phones
				

安装

# yum install -y gnokii
				

73.1.1.2. 配置

			
vim /etc/gnokiirc
or
vim ~/.gnokiirc

[global]
port = /dev/ttyS0
model = AT
initlength = default
connection = serial
serial_baudrate = 19200
smsc_timeout = 10
			
			

73.1.1.3. 发送测试短信

			
$ echo "This is a test message" | gnokii --sendsms +13113668890

$ gnokii --sendsms number <<EOF
hi neo,
This is a test message
EOF
			
			

73.1.1.4. 接收短信

# gnokii --smsreader
GNOKII Version 0.6.31
Entered sms reader mode...

SMS received from number: 8613113668890
Got message 11: hi			
			

73.1.1.5. 拨打电话

$ gnokii --dialvoice number
			

73.1.2. AT Commands

73.1.2.1. 发送短信

AT+CSCA=+8613010888500 是设置短信中心号码,只需第一次使用

AT
AT+CSCA=+8613010888500
AT+CMGF=1
AT+CMGS="13122993040"
Hello,This is the test of GSM module! Ctrl+z
			

73.1.2.2. 语音通话

at+fclass=8
at#vsps=0
at+vgs=130
at+vsp=1
at+vls=7
ATDT13113668890