[文章作者:张宴 本文版本: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技术 | 评论(1136) | 引用(0) | 阅读(181145)
call girls service in Datia Email Homepage
2021-7-2 16:35
It is trying for individuals to encourage the Datia accompanies number. Our Data accompanies have an office for the standard client to encourage the full-time whore number. On the web, the sum showed isn't the quantities of the choice young ladies. Every one of the numbers are taken care of by the specialists who post for call young ladies administration in Data. Call young lady in Datia has distinctive versatile numbers for the different call young ladies from our escort administration in Data. As a fresher you'll just influence us for a lady and that we can't give the versatile number since because of the wellbeing reason as it were. We have the quantity of call young ladies in Datia in our Datia accompanies, and every young lady has not taken her number, so every call gets gone to by us really at that time we moved the calls to her.our pages:-<a href="https://www.mpescort.com/datia-escorts-call-girls-service-in-datia.html">Datia call girl service</a><a href="https://www.mpescort.com/durg-escorts-call-girls-service-in-durg.html">call girls durg </a>
call girls service in Guna Email Homepage
2021-7-2 16:37
For the best Guna Escort, you are at the perfect spot at Escort Guna. We have the best Guna call young ladies women who work at our escort administration in Guna accessible. So you are at the ideal spot for a pleasant sex date. The costs for an hour with one of our Guna accompanies contrast per place. Continuously call one of the call young ladies benefits in Guna phones to reserve your spot as smooth as possible.Looking for hot escorts in Guna? At that point you will discover these Guna call young ladies administration here. On this site, you will track down the hottest Guna Call Girls Service and environmental factors. So you've gone to the ideal submit in the event that you need to request an escort young lady. Guna accompanies administration work with the most excellent, best, and most attractive escort women in Guna.our pages:-<a href="https://www.mpescort.com/guna-escorts-call-girls-service-in-guna.html">call girl guna</a><a href="https://www.mpescort.com/jamnagar-escorts-call-girls-service-in-jamnagar.html">call girls service in jamnagar</a>
call girls service in Jhansi Email Homepage
2021-7-2 16:39
In case you're searching for truly Jhansi accompanies who love what they do, Jhansi accompanies are the most ideal alternative, and they'll be pleased to help. Escort administration in Jhansi young ladies is promptly accessible, so you will should simply discover the ones you need in the exhibition. The entirety of the photos of the escorts you find in the exhibition are 100% genuine and real. These counselors are receptive and love what they do. Why not visit them now for an astounding experience.Jhansi accompanies aren't just destined for the locale or spot, yet additionally, they offer support in different urban communities and towns. Call us for more data visit available to come in to work young ladies administration at the Jhansi site. Leave yourself alone spoiled by experienced Jhansi accompanies - Would you like to be entranced with a prepared escort in the Jhansi locale? Therefore, obviously, you get Jhansi Escort. Our escorts are capable and know exactly what is because of Jhansi call young lady.our pages:-<a href="https://www.mpescort.com/jhansi-escorts-call-girls-service-in-jhansi.html">call girl service in jhansi</a><a href="https://www.mpescort.com/muzaffarpur-escorts-call-girls-service-in-muzaffarpur.html">call girls in muzaffarpur</a>
call girls service in Nashik Email Homepage
2021-7-2 16:40
Nashik Escorts Give a Reason to consider booking more noteworthy than one lady at one period since it impacts the result of the manner in which the others see you when you going occupied with provocative women Of escort administration in Nashik. All-ladies perform sort of trial of those men they see on Nashik call young ladies Site. When they visit an exquisite lady, their regular weakness makes them to this lady Of Nashik Call Girl Service. Presently you could think, "I'll essentially transform into Internet dating" Sure, you'll discover a lot of folks who do this. Possibly They're burnt out on the bar scene And the whole club thing, in addition to so they've concluded that it is Better to satisfy ladies web based utilizing pc accompanies in Nashik.our pages:-<a href="https://www.mpescort.com/nashik-escorts-call-girls-service-in-nashik.html">call  girl in nashik</a><a href="https://www.mpescort.com/shahjahanpur-escorts-call-girls-service-in-shahjahanpur.html">call girl shahjahanpur</a>
call girls service in Sikar Email Homepage
2021-7-2 16:42
Sikar Escort relations are in acceptable hands with our accomplished escorts in Sikar. In the event that you get business relations from abroad, it might happen that after the business interview, you are given the tactful inquiry of whether escorts are accessible in Sikar Provided by Sikar escorts to give your colleagues a couple of loosening up hours. All things considered, you can certainly suggest our accomplished escort administration in Sikar. In the event that you need to be certain that an expert escort is accessible for your colleague, you can, obviously, likewise book her in advance.They love to give their clients the best of the best in regards to client support and care in Sikar! There are so numerous Sikar Escort Service to look over, so you can be certain that you won't ever be frustrated when you book an arrangement. They have gotten superb criticism from their past customers, particularly on how these escorts treated them with the most ideal sort of client care.our pages:-<a href="https://www.mpescort.com/sikar-escorts-call-girls-service-in-sikar.html">sikar  call girl</a><a href="https://www.mpescort.com/sonipat-escorts-call-girls-service-in-sonipat.html">sonipat  call girls</a><a href="https://www.mpescort.com/surat-escorts-call-girls-service-in-surat.html">call girl surat</a>
call girls service in Vadodara Email Homepage
2021-7-2 16:44
Vadodara Escorts Take A plunge in this ocean of magnificence, delight, sensuality, elegancy, and extreme appeal. Investigate the Photo display of the Vadodara Escorts. We select our escort administration in Vadodara women by their looks, disposition, execution, capacities, keenness, and allure. After our screening techniques, Vadodara Call Girls pick the Greatest tip top escorts who truly can meet the most insightful and requesting upscale customers by giving a real.The Upper picture exhibition incorporates enormous record photos of our posh call young ladies administration in Vadodara. Subsequently, on the off chance that you move with the cursor across the realistic, the Vadodara call young lady administration boundaries will most likely be. Push on the bolts rendition to move to another Vadodara Escort Service.our pages:-<a href="https://www.mpescort.com/vadodara-escorts-call-girls-service-in-vadodara.html">call girl in vadodara</a><a href="https://www.mpescort.com/purnia-escorts-call-girls-service-in-purnia.html">purnia call girl service</a>
call girls service in Rajkot Email Homepage
2021-7-2 16:45
Rajkot Escorts Rajkot can be the best hotspot for your best women of Rajkot. We've currently been doing business and position for over twenty decades, and we invite the opportunity to satisfy your longings. You can expect basically the most exceptional escorts for the fantasy date in an extremely phenomenal expense escort administration in Rajkot may really have a Rajkot Escort Service close to home inside 30 minutes, and Rajkot call young ladies could ensure that she is probably going to before long be among the most sweltering angels which you've at any point strolled across the road.our pages:-<a href="https://www.mpescort.com/rajkot-escorts-call-girls-service-in-rajkot.html">call girls service rajkot </a><a href="https://www.mpescort.com/agra-escorts-call-girls-service-in-agra.html">call girls service agra </a>
startcannonij Email Homepage
2021-7-2 18:26
This article is great as well as inspiring. I'm pretty pleased with your fantastic work.We have a solution to install a driver again or you can update your driver from our website ij.start.cannon. So you have a better solution to your problem. If some issues cannot solve by this method so you can visit our website for technical support. They can provide you remote solutions to your problems. https://ijstartcannonx.com/
depika2020 Email Homepage
2021-7-3 21:38
Our call girls in Delhi are very anxious about your satisfaction and thus are ready to go up to any extent which you want. Their friendly behavior and soft spoken skills make them special.https://depika.in/https://priyakhanna.in/russian-escorts-in-delhi.htmlhttp://www.monikaaggarwal.co.in/call-girls-in-delh...
192.168.188.1 Email Homepage
2021-7-8 19:11
great
Alex00 Email Homepage
2021-7-15 16:00
MyInterityCab is your perfect travel partner if you need to hire a car. Our cab rental services range from outstation cabs to airport taxis. Call us to avail affordable one way and round trip offers. Our team is available 24 hours a day before, during and after the car rental takes place, just make your rental experience as smooth as possible. one way cab https://myintercity.cab/
jamesalter Email Homepage
2021-7-19 14:28
you would like to contact Delta Airlines for straightforward and hassle-free Delta Airlines booking without more ado. Delta is out there day and night to supply you with its best services and best solutions to your queries.
amirtha Email Homepage
2021-7-19 19:04
Attendance Management system provides real time integration with all attendance devices like Biometric, Smart card, and facial recognition devices. https://www.infobrez.com/attendance-management-software
Tawk Girls Email Homepage
2021-7-19 19:16
Thanks For Sharing This Amazing Post Keep Sharing This Useful Information Please also visit My Website :- Call Girls in Goa
Research Paper Help Email Homepage
2021-7-20 20:29
GotoAssignmentHelp is Assignment Help Company providing writing services in world. We always look customer satisfaction rather than demanding only money
karthik Email Homepage
2021-7-21 18:42
这是一条隐藏评论或留言。您需要以合适的身份登入后才能看到。
arunak Email Homepage
2021-7-21 21:26
https://www.infobrez.com/payroll-softwarePayroll software automates the process of paying salaried, hourly and contingent employees. ... Compared to paper-based systems, payroll software significantly speeds the payroll process while reducing errors and enabling managers to more easily customize paychecks for individual employees.
Car rental in Ahmedabad Email Homepage
2021-7-23 14:51
Krishna Holidays has begun “Rent – A – Cab” services in the year 2012 . Since then our mission is to provide world class car rental services and also Tour packages of Gujarat  in Ahmedabad at such a competitive price which is offered by “around the corner” other local rental car providers. We keep our operating costs at the lowest with the smart use of technology to provide excellent services and pass on the same savings to our customers in term of comparative low rates.<a href="https://krishnaholidays.co.in">Car rental in Ahmedabad </a>
Ricky Stevens Email Homepage
2021-7-24 18:07
Thanks for Sharing with us.If your Restart your computer, printer, and the router all at once. Often this helps in resolving connection issues. The web service should be switched on by accessing HP printer unable to connect to Web Services that might fix the communication errors with the printer. Check if your Internet proxy server settings are compatible with the HP printer unable to connect to Web Services or not.https://hp-printer-assistant.us/fix-hp-printer-waiting-for-web-services-issue/
分页: 28/57 第一页 上页 23 24 25 26 27 28 29 30 31 32 下页 最后页
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]