Today we found a lightweight tool that is much lighter than cacti and nagios ....
Very simple installation
http://mmonit.com/monit/
Configure the file to run after decompression.
Vim/etc/monitrc
Set Daemon #check service at second
Set Logfile/var/log/monit.log #save Log
Set Pidfile/var/run/monit.pid #pid file
Set mailserver localhost #primary mail server
#--8<--
#set mail-format {
# from: [email protected] $HOST
# subject:monit alert-- $EVENT $SERVICE
# message: $EVENT SERVICE $SERVICE
# & nbsp; Date: $DATE
# action: $ACTION
# host: $HOST
# Description: $DESCRIPTION
#
# Your Faithful employee,
# Monit
#}
# #--8<--
The above is the alert format
Set alert [email protected] #接收mail
Set httpd port 2812 and
Use Address xxx.xxx.xxx #访问monit地址
Allow 0.0.0.0/0.0.0.0 #允许所有地址访问, you can specify an address, a network segment access
Allow Admin:monit #用户名与密码
After modifying the configuration file, move the configuration file to/etc/and execute bin/monit to start
http://192.168.xx.xx:2812/
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/6B/65/wKioL1UsxKDwYh1KAAFEEkAncIc406.jpg "title=" Sogou 20150414153016.png "alt=" wkiol1usxkdwyh1kaafeekancic406.jpg "/>650) this.width=650;" Src= "http://s3.51cto.com /wyfs02/m00/6b/65/wkiol1usxmhhow2gaafeekancic711.jpg "title=" Sogou 20150414153016.png "alt=" Wkiol1usxmhhow2gaafeekancic711.jpg "/>
PDF Description Document
Https://mmonit.com/documentation/mmonit_manual.pdf
The monitoring syntax and instructions are in the PDF.
Grammar follow-up study.
This article is from the "Joewen" blog, make sure to keep this source http://303528.blog.51cto.com/293528/1632303
Lightweight monitoring Tool--monit