[文章作者:张宴 本文版本:v1.1 最后修改:2007.08.31 转载请注明出处:http://blog.zyan.cc]

  8月3日,我写了“Linux服务器监控系统 ServMon V1.0”,今天,ServMon V1.1 版本亮相。

  ServMon的原理是用shell脚本定时抓取被监控Linux服务器上的信息,再用curl POST到监控机的PHP接口程序上,由PHP接口程序对信息进行分析,如果存在异常,则发送报警邮件给管理员。报警邮件演示页面请见:http://blog.zyan.cc/read.php/276.htm

  点击在新窗口中浏览此图片

  ServMon V1.1 在 1.0 的基础上,增加了对Linux系统负载的监控,并编写了客户端自动安装包:

  1、被监控端服务器(Linux)
  (1)、下载并安装ServMon Client
引用
wget http://blog.zyan.cc/soft/linux/servmon/servmon-1.1.linux.tar.gz
tar zxvf servmon-1.1.linux.tar.gz
cd servmon-1.1
./install -i http://yourdomain/servmon/interface.php password

  注:此处的password为interface.php程序中设置的数据传输验证密码。

  客户端安装包源码:
  │
  ├─install
  ├─[src]
  │  ├─[bin]
  │  │  ├─diskstat_send
  │  │  ├─loadstat_send
  │  │  └─swapstat_send
  │  ├─[cron]
  │  │  └─servmon
  │  └─[data]

  屏幕演示:
  点击在新窗口中浏览此图片




  2、监控端服务器配置(Linux)
  (1)、启动sendmail
  /usr/sbin/sendmail -bd -q30m
  -b:指定Sendmail在后台运行,并且监听端口25的请求。
  -d:指定Sendmail以Daemon方式运行(守护进程)。
  -q:当Sendmail无法将邮件成功地发送到目的地时,它会将邮件保存在队列里。该参数指定邮件在队列里保存的时间。其中的30m表示保留30分钟。

  (2)、修改php.ini的[mail function]部分为以下内容,然后重启Apache,使PHP能够使用mail()函数发送电子邮件
引用
[mail function]
; For Win32 only.
;SMTP = localhost
;smtp_port = 25

; For Win32 only.
;sendmail_from = me@example.com

; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
sendmail_path = /usr/sbin/sendmail -t -i


  (4)、在MySQL上创建一个数据库servmon,然后在该数据库中执行以下SQL语句创建表:
引用
CREATE TABLE `tb_diskstat` (
 `ip` varchar(128) NOT NULL default '',
 `date` int(10) NOT NULL default '0',
 UNIQUE KEY `ip` (`ip`)
) TYPE=MyISAM;

  备注:这张表是PHP接口程序用来记录发送磁盘分区报警邮件的时间,避免在一段时间内重复发送大量报警邮件的。

  (3)、PHP接口程序
  http://yourdomain/servmon/interface.php


Tags:



技术大类 » 其他Unix技术 | 评论(784) | 引用(0) | 阅读(108698)
microsoft365.com/setup Email
2020-11-6 13:39
Microsoft 365 has updated the version of its app as Microsoft office 2020 that you can download from microsoft365.com/setup  and install it on your device. microsoft365.com/setup is an official site provided by Microsoft Office, which allows you to download and activate the Microsoft365 apps using the product key. Here, you only need to enter the keycode and the account details
ij.start.canon Email
2020-11-6 13:39
Canon ij.start.canon printer is a complete solution for multiple works that you can easily learn to set up from and get a better experience. This is the official online support site that provides you  online manuals, function information, and more. What’s more at the ij.start canon  site is download and installation steps for Canon ij setup that is required for the complete Canon set up process.
Scott Email Homepage
2020-11-9 15:27
Quickbooks is the advanced accounting software to track and manage business-related transactions. The tool allows users to create a backup file. You can restore quickbooks backup to retrieve your lost data. https://folders-ios.com/restore-quickbooks-company-file/
david230 Email
2020-11-11 14:24
Are you battling to compile assignments in an organized manner? Are you looking for a one-stop do my assignment regardless of subjects and topics? Our team of knowledgeable and qualified writers offer all desired support in very less time. Additionally, they provide all the necessary cheap essay help and acquaintances to bring your academics in track. The UK students can buy the gift of time for themselves by buying assignments from us. For all types of assignment issues, essay help is the best online platform to have within your reach
epsonhelp Email Homepage
2020-11-13 20:23
What to Do When I Find Epson Error Code 0X97?Epson printer is one of the leading printing device known for its most compelling features. As of the fact encountering with every printer, the Epson printer is too associated with several error code issues. One of the typical error is Epson printer error code 0x97 that usually occurs when there is a problem with the hardware internally. If you have no idea how to fix the issue, let us know by contacting our expert team.Epson Printer Error Code 0x97Epson Printer TroubleshootingEpson Printer Error Code 0x97
samardigital Email Homepage
2020-11-18 14:56
In the era of digitalization, we can’t imagine our life without the net. To put it differently, if we say the Web has become an indispensable part of our lives because of its convenience and usability, it’s provided us. Be it searching for any advice, talking to our friends overseas, learn something new from viewing movies and sending in addition to getting email, etc. are the primary usage of the Internet.Spectrum Router Not Working
samardigital Email Homepage
2020-11-18 14:57
In the era of digitalization, we can’t imagine our life without the net. To put it differently, if we say the Web has become an indispensable part of our lives because of its convenience and usability, it’s provided us. Be it searching for any advice, talking to our friends overseas, learn something new from viewing movies and sending in addition to getting email, etc. are the primary usage of the Internet.Spectrum Router Not Working
joe hansan Email Homepage
2020-11-19 19:29
If you want a Brother hl2170w wireless setup resolve. Fixing Brother hl2170w wireless setup can be preceded in many aspects. If you want an expert suggested ideal & accurate solution. Follow the steps of the Blog listed in the Blog.https://www.brotherprintersupport247.com/blog/how-to-connect-brother-hl2170w-printer-to-wifi/
chris Email Homepage
2020-11-20 14:57
While using a wireless Epson printer, it is quintessential for the printer to receive a sturdy Wi-Fi network for its proper functioning. This blog provides a comprehensive procedure to connect your Epson printer with Wi-Fi.
Udaipur Escorts Email Homepage
2020-11-29 14:26
If you want to enjoy service with lusty girls then our escort agency is perfect for you because our agency has one of the most beautiful full , call girls, in Udaipur. We only keep hot and good looking call girls in Udaipur Call Girl agency. Our escorts do many types of workouts to maintain their beauty. Our agencies have many qualities like we only have Independent Escorts in Udaipur agency. We give full freedom to our escorts to enjoy their life that's why our escorts are ready to give their service and don't let down their customers. Our escorts are very professional they are well educated and know how to represent her in a well-behaved society. So if looking for hot girls for a club party than our hire our professional girls through Udaipur Escorts agency. These are a few qualities of our agency so hire our female escorts and enjoy our all services.
Udaipur Escorts Email Homepage
2020-11-29 14:27
If you want to enjoy service with lusty girls then our escort agency is perfect for you because our agency has one of the most beautiful full call girls in Udaipur. We only keep hot and good looking call girls in Udaipur Call Girl agency. Our escorts do many types of workouts to maintain their beauty. Our agencies have many qualities like we only have Independent Escorts in Udaipur agency. We give full freedom to our escorts to enjoy their life that's why our escorts are ready to give their service and don't let down their customers. Our escorts are very professional they are well educated and know how to represent her in a well-behaved society. So if looking for hot girls for club party than our hire our professional girls through Udaipur Escorts agency. These are a few qualities of our agency so hire our female escorts and enjoy our all services.
Udaipur Escorts Email Homepage
2020-11-29 14:27
If you want to enjoy service with lusty girls then our escort agency is perfect for you because our agency has one of the most beautiful full , call girls, in Udaipur. We only keep hot and good looking call girls in Udaipur Call Girl agency. Our escorts do many types of workouts to maintain their beauty. Our agencies have many qualities like we only have Independent Escorts in Udaipur agency. We give full freedom to our escorts to enjoy their life that's why our escorts are ready to give their service and don't let down their customers. Our escorts are very professional they are well educated and know how to represent her in a well-behaved society. So if looking for hot girls for a club party then we hire our professional girls through Udaipur Escorts agency. These are a few qualities of our agency so hire our female escorts and enjoy our all services.
Anaisha Ved Email Homepage
2020-12-1 21:04
Hello, I am angel rai independent escort in Agra. I provide full physical sex, video call, full open body to body sex blowjob handjob sex direct call my number all Agra city direct full Escort service available.https://www.bustyescorts.net/jammu-escorts-call-girls-service.htmlhttps://www.bustyescorts.net/baddi-escorts-call-girls-...
Siriu Homepage
2020-12-2 08:07
Thank you so much. Check out my Facebook covers collection!
goaescorts Email Homepage
2020-12-5 20:34
Goa Escorts will give you all the possible ways to satisfy your lusty dreams and desires with a hot and sexy girl. Here we tried our best to serve you the ultimate romance and fun with hot chicks that you will never find at anywhere else. Escort in Goa is here to let you choose your desired escort from Housewives Escorts, Models, Call Girls, Russians, Teens, College Girls, Cheer Leaders and etc. All of them are independently available here for you and you can pick your favorite one from them. Hire your dream escort agency in Goa and let feel the amazing world of sexy girls to have ultimate romantic pleasure with them. We are trustworthy escort that is handling this business for many years. We offer genuine high-class call girls in Goa at reasonable rates. We don't have cheap & stroller call girls who use to visit 5-6 clients daily. We have elegant and royal girls who assist only one client in a day. This keeps them healthy, safe and hygienic. Here you will get the most amazing personalities of heterogeneous girls who are standing in front of you to take them away and let's do that what you always dream. This Website is not suitable for Minors; this site is only for the persons who are more than 18 years old, if not Leave the website now. If you are adult and already decided and want to experience the fun of with our amazing females then it’s very simple to execute the process of service of Goa Escorts Girls of your selection. Just Call us at our number, make a wish and we will make your party more pleasurable with our top class Escorts.           high-class call girls in Goa
evasmith Email Homepage
2020-12-15 14:58
Epson is a popular brand among printer users, owing to its versatility, sturdy structure, and affordability. But if you are an ardent Epson printer user, chances are you might have encountered the Epson printer Error Code 0x97. This error code usually emerges due to some internal hardware glitch. When this Epson printer error code sprouts, it hinders the current as well as the future printing operations. If you are facing a similar issue, don’t worry this article provides a simple fix to resolve Epson printer error code 0x97
shanayasharma9 Email
2020-12-15 19:31
Call me we have provided the best escort service in Pune like college girl housewife aunty etc all type of sex and sex position full safe place and genuine service just call me now and book only genuine person call.https://www.streetgirls.in/pune-escorts-service
thomasclark Email Homepage
2020-12-15 19:55
Pogo Game Subscription Cancellation


Pogo games is an internet gaming website which offers a myriad of games savored by people from all age groups and varied interest. The Pogo website is free, but while playing a game you may encounter an ad. To enjoy games without any interruptions, Pogo offers premium membership to its users. Also, there are some games on the Pogo website that can be accessed only by premium account holders. The premium facility is known as Club Pogo.

Pogo Game Customer Support
pogosupport Email Homepage
2020-12-17 19:57
If you are a MAC user, then you should know that you can play Pogo games through Safari & Mozilla Firefox browsers. You must check your MAC compatibility before playing Pogo online via your MAC device. For any assistance, search online at Pogo.com for contact details, call Pogo and speak to the Pogo representative directly over phone

Pogo Game Customer Service Phone Number
Pogo Game Support
lane Homepage
2020-12-18 14:43
The interface of the app can be the root cause of a snafu if there’s some tech operation glitches. Regardless, in the event that there's some issue in the interface, by then you can sort that out by deciding to talk to a Cash App representative. Notwithstanding that, you can visit the help objections or watch tech addresses help.
分页: 21/40 第一页 上页 16 17 18 19 20 21 22 23 24 25 下页 最后页
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]