[文章作者:张宴 本文版本: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) | 阅读(181149)
Thomas21 Email Homepage
2021-6-18 17:51
We are the third party Pogo Customer Service provider.Who doesn't like uninterrupted experience? Especially while enjoying something, like playing Pogo Games, we yearn for no hindrances, isn't it? If while enjoying Pogo games you are met with any disruptions, <a href="https://www.pogo-support-number.com/pogo-customer-service">Pogo Customer service number</a> (806) 304-1513 is for your rescue.The Pogo customer support team comprises trained experts having the required prowess to overhaul any issue stemming while playing Pogo games. So irrespective of the nature of your issue, feel free to reach out to us.https://www.pogo-support-number.com/
arun Email Homepage
2021-6-19 17:53
https://www.infobrez.com/construction-crm-softwareIn construction, CRM stands for client relationship management. The construction industry revolves around relationships. Clients often award expensive, high-profile projects based on how well they know and trust a firm. Each point of communication with a client will strengthen or weaken that trust.
Midas Email Homepage
2021-6-19 21:20
A printing & packaging company that provides businesses—big and small—high-quality custom products at competitive prices. We work to help our customers bring their creative ideas to life, grow their business, and make a meaningful impact in their communities through excellent printing services and premium products.
karthikcandy Email Homepage
2021-6-24 21:25
EasemyGST is a cloud-based gst billing software for enterprises. It has a complete tax management feature that helps in generating gst invoices and file GST returns. This gst filing software enables efficient accounting and tax management along with the below features.https://www.infobrez.com/GST-software
Macfee.com/activate Email
2021-6-26 12:54
You’ll receive an automatic prompt to renew your McAfee subscription, so you can check the complete notification to renew your subscription. Or you can visit www mcafee com or its store and renew the McAfee product. Macfee.com/activate | mcafe.com/activate | Mcafee.com/activate
Activate Setup Email
2021-6-26 12:58
Next time whenever you'll go to microsoft365.com/setup you won't require to enter the product key. As the product key is activated, simply enter the Microsoft login account to install Microsoft 365 apps.microsoft365.com/setup , All your transactions are secured with a PayPal login.Paypal Login | Paypal Login
delhiescorts Email Homepage
2021-6-26 16:46
Hello, I am Shehnaaz Khan I like to offer a high level of girlfriend experience, Delhi Escorts full of passion and sweet love. It's more than just sex, it's a real encounter with a loving and fun girl who loves hot and engaging sex. Dubai Escorts Discreet and reliable, my photos are 100% genuine. I can guarantee this easily at our meeting, so I invite you to see for yourself that sometimes reality can be even better than photos ...Escorts in DelhiDelhi EscortsEscorts in DwarkaEscorts in AerocityEscorts in MahipalpurEscorts in GurgaonEscorts in C PEscorts in Karol BaghEscorts in MG RoadEscorts in South ExEscorts in Mayur ViharEscorts in MumbaiGoa Escorts
kanikamalhotra Email Homepage
2021-6-26 16:52
They are fashionable, sexy and hotness personified and they love to be in your bed in any cost. Check out the profiles of sexy beauties, hot girls and lovely ladies where you will the entire package with different taste. They are the sweet poison, killer queen known for one and only for seduction Delhi ESCORT SERVICEDelhi has always been home to some exotic beauties. What if you get a chance to share a bed with one of them, have intercourse and fulfill all your wild dreams? Isn’t that awesome? We, at Delhi Beauties, the most sought after Escorts Service in delhi have you covered. Our independent girls are overwhelmingly hot and inexplicably beautiful. When you set your eyes on these Delhi Escorts of ours, you just can’t control your urges. The cup size of some girls and their shape will drive you crazy. They are no less than sex goddesses who came down to fulfill all your wishes.Our Delhi Kanika Malhotra is Escorts in CP stylish, extravagant and at the same time can act like a girl next door. They are educated and trained enough to understand your needs and cater to them. They can listen to your vows, appreciate you, at the same time can be irresistibly sexy in the bed.Our beautiful Escorts in Aerocity are here by their own choice. Real estate in Delhi is costly, living expenses are over the roof, they are here to make some extra money so that they can live a lavish life. Not only that, but they also are very horny and their sex drive is over the top and they’ll do everything they can to satisfy you thus satisfying their urges too.SIMPLICITY REDEFINED Delhi ESCORTSPaying high bucks but not getting desirable Escorts in Dwarka??? Our agency understands your need and offers you the best and dedicated service to all our clients. These ladies are well versed, gorgeous, and talented, and ensuring your pleasure is their topmost concern.We thrive to redefine the fine art of pleasure through our exclusive courtesans offering services in Delhi. Delhi Escorts are well versed with Indian Kamsutra, and they provide service you have imagined or longing for a long time.You can book any Independent Escort Girl and enjoy the highest pleasure. Our Escorts in Vasant kunj are intensely sexual with breathtaking beauty, all those qualities you have been lingering for.We are the safest escorts service providers in Delhi. Our aim is to give the best services to our customer and full satisfaction. All our escort girls are medically fit. We do regular medical check up of our escorts to give you fresh and physically fir escort girls.Delhi Call GirlsDelhi EscortsEscorts in MahipalpurEscorts in AerocityEscorts in Karol BaghEscorts in GurgaonEscorts in DelhiDwarka EscortsEscorts in MahipalpurEscorts in AerocityEscorts in Karol BaghEscorts in Saket
HP printer support Email Homepage
2021-6-27 14:10
Tell your issue to our representative who will give an authentic resolution without any delay. This HP printer support comes free of cost to you so you can talk freely and use this helpline any time you so desire. HP printer support/
alex012 Email Homepage
2021-7-1 15:13
Everyone knows that Digital Marketing is leading industy now a days and current market have more and more demand of Digital Marketers. If you also one of them who wanna grow the career with Digital Marketing, DigitalAkki will provide complete Digital Marketing training in Hyderabad and Digital Marketing course provide in Hyderabad, India.click herehttps://digitalakki.com/course/digital-marketing-course-in-hyderabad/
call girls service in mp Email Homepage
2021-7-2 15:18
Welcome to Awesome assistance of Beautiful and Gorgeous Indian escort administration. We are work in giving elegant escort models. Each Models working with us are top class models, Air entertainer, house spouse, working young ladies, school young ladies and so forth All return from great ground so your and models protection will be kept gotten with us.our page:-<a href="https://www.mpescort.com">Mp Escort service</a>
call girls service in mp Email Homepage
2021-7-2 15:20
Welcome to Awesome assistance of Beautiful and Gorgeous Indian escort administration. We are work in giving elegant escort models. Each Models working with us are top class models, Air entertainer, house spouse, working young ladies, school young ladies and so forth All return from great ground so your and models protection will be kept gotten with us.our page:-http://www.mpescort.com
call girls service in mathura Email Homepage
2021-7-2 15:23
Mathura Escort Service Are you coming to Mathura and need to encounter along with a beautiful friend how Swabia cosines and cosmopolitan pizazz meet or would you actually like to get away from the pressure of regular daily existence. Our Mathura Call Girls will give you delightful and jazzy escorts for various events: The Escort administration office is likewise accessible at short notification and will be glad to assume the full association of your date, regardless of whether it is an enchanting organization for the evening with a visit to the theater and supper in a tasteful style Restaurant or a cautious expert escort at a conference.our pages:-<a href="https://www.mpescort.com/mathura-escorts-call-girls-service-in-mathura.html">Mathura Escort service</a><a href="https://www.mpescort.com/bhopal-escorts-call-girls-service-in-bhopal.html">Bhopal Call Girls service</a>
call girls service in Bhopal Email Homepage
2021-7-2 15:25
On the off chance that you need to encounter Gwalior as a city of culture and occasions or on the off chance that you are here on business, Gwalior will be considerably more energizing with the correct joining close By Escort Service in Gwalior.Discover an entirely different side of the city of Gwalior on your business and occasion trip. With a captivating escort woman who goes with you on different events, you have a la mode and amazingly gorgeous escort who not just presents you alluringly. It is parquet-protected, circumspect and developed. Your escort Call Girls Service can go with you to supper and different business arrangements. On the off chance that you like it, go to shows and incredible occasions together, which isn't absent in Gwalior. Desirous looks are constantly ensured.our pages:-<a href="https://www.mpescort.com/gwalior-escorts-call-girls-service-in-gwalior.html">Gwalior Call Girl service</a><a href="https://www.mpescort.com/indore-escorts-call-girls-service-in-indore.html">Indore Escort service</a>
call girls service in Ujjain Email Homepage
2021-7-2 15:27
Ujjain Escorts Service, the escort administration with the best and most delightful escort Call Girls Service in Ujjain. Are you searching for pleasant, beguiling and sweet Call Girls In Ujjain, at that point you are at the ideal spot at Ujjain Escorts Service. Our posh Ujjain Call Girls offer a fluctuated scope of Independent escort benefits in ujjain. Fluctuating from escort, rubs, escort administration and striptease.our pages:-https://www.mpescort.com/ujjain-escorts-call-girls-service-in-ujjain.htmlhttps://www.mpescort.com/jabalpur-escorts-call-girls-service-in-jabalpur.html
call girls service in Agra Email Homepage
2021-7-2 15:28
Celebrity Agra Escort your select Escort administration In Agra with style and mystique. Agra Escorts is a fashionable escort administration for the insightful man of his word of the high society. Do you regularly do not have the time and recreation to become more acquainted with an energizing, remarkable dream lady? At that point appreciate a heartfelt date with our enchanting Call Girls Service In Agra. Treat yourself to the advantage of a puzzling, sensual close friend as an equilibrium to your every day business, simple and totally careful. The insightful finance manager has a select determination of enchanting escorts who have style and common class.our pages:-https://www.mpescort.com/agra-escorts-call-girls-service-in-agra.htmlhttps://www.mpescort.com/ahmedabad-escorts-call-girls-service-in-ahmedabad.html
call girls service in Alwar Email Homepage
2021-7-2 15:30
Our Alwar Escorts can spoil you with unique administrations assuming you might want something very 'brisk sex' which will be masterminded. For example, you'll assume a part playing game that could have a SM flavor. In the event that you have extraordinary wishes, if it's not too much trouble, permit us to realize when reserving your spot in escort administration in Alwar.our pages:-https://www.mpescort.com/alwar-escorts-call-girls-service-in-alwar.html https://www.mpescort.com/amravati-escorts-call-girls-service-in-amravati.html
call girls service in Bhagalpur Email Homepage
2021-7-2 15:31
In case you're searching for beautiful and quality Call young ladies administration in Bhagalpur and on the off chance that you picture horny operatic star in your arms and in case you're fundamentally expect that some Bhagalpur call young ladies administration will make these fantasies work out, at that point status Bhagalpur Call Girls administrations inside your bedchamber. Bhagalpur accompanies administration ladies square measure knowledgeable and exceptionally cunning; notwithstanding, they will tempt a person by their shrewd exercises at each horny degree; Bhagalpur escort has an adapted to square quantify the solitary escort benefits in Bhagalpur that gives precise and tasteful Article by call young lady Bhagalpur.Bhagalpur escort administration was not answerable for any conditions made by under long term past watchers in sync with our nation laws or states of the net in the Asian country.our pages:-https://www.mpescort.com/bhagalpur-escorts-call-girls-service-in-bhagalpur.html https://www.mpescort.com/bharatpur-escorts-call-girls-service-in-bharatpur.html
call girls service in Bhilwara Email Homepage
2021-7-2 15:33
Requesting Bhilwara accompanies in your hotel is uncommonly direct. We ensure your security is guaranteed too as you can. The escort young lady you've bought will be sent straightforwardly into the retreat and, assuming there is any chance of this happening, will promptly go to a room. We, accordingly, recommend that you incorporate your territory number when booking our Call young ladies in Bhilwara for resort escort. At the point when it isn't achievable to walk right to your region, it is feasible to satisfy your escort administration in Bhilwara in the gathering, and she'll go with you to your region inconspicuously and when you can.Should you hold a retreat, Call Girls Service in Bhilwara, you wish to value it without limit. Alongside likewise your escort young lady will surely do her best along these lines. Give a new and recently made bed that can be lovely for you two. Sterile towels in the latrine are fine; in the event that you might want to have a shower or a tub alongside your Bhilwara, call young ladies.our pages:-https://www.mpescort.com/bhilwara-escorts-call-girls-service-in-bhilwara.html https://www.mpescort.com/bikaner-escorts-call-girls-service-in-bikaner.html
分页: 27/57 第一页 上页 22 23 24 25 26 27 28 29 30 31 下页 最后页
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]