Web Portal SNMP Application Layer Snmp Trap WMI
�控系�基��构介� 展示层 Web Portal 数据层 数据处理模块 数据库 收集层 SNMP Application Layer Snmp Trap WMI Service Layer Syslog Windows Event log Server Layer WBEM Network Layer …
Cacti 作流
Nagios技�框架
多种多�的采集�程 Zen. Process Zenping Zen. Command Zen. Disc Zen. Modeler Zen. Hub Zen. Actions Zen. Syslog Zen. Status 管理类进程 Zen. Perf. Snmp 发现与建模类进程 Zen. Win. Modeler Zen. Win Zen. Eventlog Zen. Trap 监控类进程 事件收集类进程 响应类进程
灵活�一的�用界面 Web Portal / Console Map Events Monitor Reports Main Views Classes Browse By Management Dashboard Event Console Device List Network Map Events Devices Services Processes Products Systems Groups Locations Networks Reports Add Device Mibs Collectors Settings Event Manager Zope Web Application & AJXA
Zenoss�构关系
在Zenoss上�� Cacti性能��功能 • SNMP扩展 作原理 SNMP Exec Shell/Perl脚本 Snmpwalk Data Point
在Zenoss上�� Cacti性能��功能 • 试例:Mysql的网络连接数 �建脚本: vi mysqlconn. sh #!/bin/sh netstat -an|grep 3306|grep ESTABLISHED|wc -l 写入一个Snmpexec�展到SNMP配置文件: echo "exec. 1. 3. 6. 1. 4. 1. 2021. 18 mysqlconn /usr/local/mysqlconn. sh" >> /etc/snmpd. conf 重启snmp服� /etc/init. d/snmpd restart 通�SNMPwalk��数据采�: snmpwalk -c public -v 1 192. . 168. 0. 3. 1. 3. 6. 1. 4. 1. 2021. 18
在Zenoss上�� Nagios状��控 • 作原理 Zen. Command exec avail: 34554 bin/df Remote Box exec SSH avail: 34654 bin/df exec Nrpe avail: 34674 bin/df 注意:SSH模式在远程需要安装Zenoss Plugins;Nrpe需要服务器与远程安装Nagios Nrpe
在Zenoss上�� Nagios�控 • 试例:HTTP页面监控 �看帮助命令: $ /opt/zenoss/libexec/check_http –help Usage: check_http -H <vhost> | -I <IP-address> [-u <uri>] [-p <port>] [-w <warn time>] [-c <critical time>] [-t <timeout>] [-L] [-a auth] [-f <ok | warn | critcal | follow>] [-e <expect>] [-s string] [-l] [-r <regex> | -R <case-insensitive regex>] [-P string] [-m <min_pg_size>: <max_pg_size>] [-4|-6] [-N] [-M <age>] [-A string] [-k string] ��的新浪首���命令: check_http –H www. sina. com. cn –r 828 HTTP OK HTTP/1. 0 200 OK - 0. 279 second response time |time=0. 278575 s; ; ; 0. 000000 size=457306 B; ; ; 0 Zenoss中,�建Web. Check模板,加入新浪Web_chek�控
Zenoss分布式框架 Web 1 Web 2 Web N My. SQL ZODB Server B Web Render RRD Zenhub Data Collectors Master Server Data Collectors Server C Web Render RRD Data Collectors RRD
- Slides: 31