First, automatic monitoring
There are a lot of nagios and Zabbix out there, and there are many online documents. These software, according to bash filtering business log to monitor an indicator is very easy, but the picture is often not very good, many times, write technical analysis reports need to refer to historical data over a period of time, there is a picture is the best. If the company has a dedicated operations developers, you can also use plugins in Java to develop some of their own monitoring interface, such as (colleague WT development):
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/7B/54/wKiom1bLv2nid-jqAABOeXe8ZYc906.png "title=" wangt. PNG "alt=" Wkiom1blv2nid-jqaaboexe8zyc906.png "/>
In addition, Baidu is recommended open Source Chart Library Echarts (http://www.oschina.net/p/echarts?fromerr=GMUsF6Vg), using this thing, should be able to develop a very beautiful business data monitoring interface.
Second, automatic configuration
The key recommendation Ansible, do not have to toss the machine, relatively simple, but the practicality is very strong. Puppet for many companies is too "heavy", after all, most of the company's configuration management is not to that extent.
The most common demo, batch deployment of an NTP timed task:
[Email protected] ansible]# ansible webservers-m cron-a ' name= "NTP" minute= "*/5" job= "/usr/sbin/ntpdate 192.168.153.13 6 "'
SSH Password:
192.168.153.137 | Success >> {
"Changed": true,
"Jobs": [
"NTP"
]
}
192.168.153.135 | Success >> {
"Changed": true,
"Jobs": [
"NTP"
]
}
Of course, configuration management is not just a batch deployment of Scheduled Tasks, batch distribution of files so simple, ansible playbook and Saltstack SLS files, to fully understand and flexible use in the complex business environment, or need to ponder over a period of time.
III. Automated Reporting
1, operation and maintenance personnel generally know rrdtool this old drawing tool, combined with HTML and sendmail services, you can regularly form a mail report. Such as:
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/7B/65/wKiom1bNCevhXwA6AADxoMwlhCY211.png "title=" Monitor. PNG "alt=" Wkiom1bncevhxwa6aadxomwlhcy211.png "/>
2, with Java and Python drawing, control more flexible and beautiful.
Iv. Knowledge Base of automation
In addition to automated monitoring, configuration management, and report output, you can also associate with a case library. When an alarm appears, it is automatically linked to the knowledge base, and the processing tips are given
This article is from "Memory Fragment" blog, declined reprint!
On automation operation and maintenance