[文章作者:张宴 本文版本: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技术 | 评论(1138) | 引用(0) | 阅读(185132)
Sneha Singh Email Homepage
2022-4-26 17:45
Select the most suitable Malad escorts. But, for the time being, you'd like to learn more about the potential of fulfilling your sexual need. It's possible that our purpose is to make you happy. Make an attempt not to squander your time and effort. Make your time with the Malad girls memorable and emotional.Also Book: http://www.snehasingh.com/housewife-escorts-call-girls.html.html
Sneha Singh Email Homepage
2022-4-26 17:48
Using a Call Girl Mature Escort in Mumbai has numerous advantages. These ladies have had extensive training and possess exceptional counseling abilities. They also provide complete confidentiality because their clients' information is never shared. With an escort, you can speak freely, alleviating your load and making the encounter much more enjoyable.
sapnaoberoy0583 Email Homepage
2022-4-27 10:27
Hook up with sexy and erotic college girl escorts of Defence ColonyWith the change in time, people are now more interested in hook-ups than relationships. Be it on dating sites or elsewhere, men look for young girls for hookups. Though, finding success there is not possible for everyone. That is why we recommend taking the Defence Colony escort service, as here you have a 100 percent chance of hook-ups. When men hear escort service, the only thing that comes to their mind is sex. But at our agency, we offer a lot more than sex and you will know it after taking our services. We know that getting sex is easier but getting the kind of sex that one needs is difficult. Especially, with the kind of girls, one wants to get intimate with. To end your long-lasting search, we have brought some sexy young college girl Escorts in Defence Colony for you.It is not hidden from anyone that young females arouse men most. Even the thought of making love with some college going chicks makes men hard. Men do not intend to get into any kind of relationship with women. But they do wish to develop some sexual bonds with these chicks to have fun in life. Our Defence Colony escorts also wish to have a one-night stand kind of sexual bond and not any emotional connection. The open-minded thoughts and nature of these young girls make them perfect for such services.Enjoy gangbang escort service in Delhi with young girlsOften men feel that young girls may deny gangbang like sexual experiences. As they are too young and they may not have that much sexual experience. But this does not apply to all young girls. As many love to try such things and find adventure in doing so. At our escort agency, we have the same type of Delhi escorts who love to explore their sex life. Be it getting into different sexual positions or getting in the arms of multiple men, they love all. For them trying sexual services like gangbang is adding a new adventure to their sex life. They look for such chances so that they can enjoy sex to the core. So surprise your gang of boys or old men by booking our Escort service in Defence Colony. After meeting these young sexy babes you will forget all our other females. You will desire to have more such sexual encounters with new young beauties every week. If you feel that one Escort in Defence Colony  is not enough for you, book more. If you are ready to pay for more girls, we are ready to supply more. So what are you waiting for now? Go and get these young angels in your arms for complete pleasure.Visit here - https://www.russianescortservicesdelhi.com/defence-colony-escorts.html
sapnaoberoy0583 Email Homepage
2022-4-27 10:29
Hook up with sexy and erotic college girl escorts of Defence ColonyWith the change in time, people are now more interested in hook-ups than relationships. Be it on dating sites or elsewhere, men look for young girls for hookups. Though, finding success there is not possible for everyone. That is why we recommend taking the Defence Colony escort service, as here you have a 100 percent chance of hook-ups. When men hear escort service, the only thing that comes to their mind is sex. But at our agency, we offer a lot more than sex and you will know it after taking our services. We know that getting sex is easier but getting the kind of sex that one needs is difficult. Especially, with the kind of girls, one wants to get intimate with. To end your long-lasting search, we have brought some sexy young college girl Escorts in Defence Colony for you.It is not hidden from anyone that young females arouse men most. Even the thought of making love with some college going chicks makes men hard. Men do not intend to get into any kind of relationship with women. But they do wish to develop some sexual bonds with these chicks to have fun in life. Our Defence Colony escorts also wish to have a one-night stand kind of sexual bond and not any emotional connection. The open-minded thoughts and nature of these young girls make them perfect for such services.Enjoy gangbang escort service in Delhi with young girlsOften men feel that young girls may deny gangbang like sexual experiences. As they are too young and they may not have that much sexual experience. But this does not apply to all young girls. As many love to try such things and find adventure in doing so. At our escort agency, we have the same type of Delhi escorts who love to explore their sex life. Be it getting into different sexual positions or getting in the arms of multiple men, they love all. For them trying sexual services like gangbang is adding a new adventure to their sex life. They look for such chances so that they can enjoy sex to the core. So surprise your gang of boys or old men by booking our Escort service in Defence Colony. After meeting these young sexy babes you will forget all our other females. You will desire to have more such sexual encounters with new young beauties every week. If you feel that one Escort in Defence Colony  is not enough for you, book more. If you are ready to pay for more girls, we are ready to supply more. So what are you waiting for now? Go and get these young angels in your arms for complete pleasure.Visit here - https://www.russianescortservicesdelhi.com/defence-colony-escorts.htmlEscort service in Defence ColonyDefence Colony escort serviceEscorts in Defence Colony
Cricut.com/setup Email Homepage
2022-4-27 14:33
the development of unparalleled crafts and designs. Being an art lover, you must have craved conceiving your conceptual patterns into reality. Cricut.com/setup | Cricut setup |cricut.com setup
Snehasingh11008 Email Homepage
2022-4-27 15:12
Our Bhayandar model female escorts are promising and divine messenger-like. When you check them out the next time, you'll realize that you'll soon be in the domain of dreams, where it's just you and she or he for the evening and zip may be found at the centre of both of you.
Snehasingh11008 Email Homepage
2022-4-27 15:15
Our Bhayandar model female escorts are promising and divine messenger-like. When you check them out the next time, you'll realize that you'll soon be in the domain of dreams, where it's just you and she or he for the evening and zip may be found at the centre of both of you.
littlelife Homepage
2022-4-28 21:26
We help to manage, track and maintain your assets from anywhere and anytime.
kinsleysmith Email Homepage
2022-4-30 18:26
Established in 2013, Cash App is getting better with its age. As a part of attempt to make Cash App better than ever, Square Inc. is always keep adding new feature. One such new feature is Cash App loan. You will be glad to know that now you can do more with your favorite payment app. I mean, you can borrow money from Cash App if you are a verified user and maintain good balance in your Cash App wallet.cash app loan
instructional designers Email Homepage
2022-5-2 17:02
Often, organizations fail to reach target customers due to poor content quality. At Acadecraft, clients can avail themselves of our technical writing agencies at affordable prices. We adhere to clients’ requirements and provide the best solution within a short period.technical writing agencies
dianeparker Email Homepage
2022-5-4 18:56
https://testbanks22.com/p/marketing-research-essentials-8th-edition-test-bank/https://testbanks22.com/p/marketing-research-essentials-8th-edition-test-bank/
Cricut.com/setup Email Homepage
2022-5-6 15:27
Cricut setup allows you to enter the world of designs and patterns to evoke your craftsmanship for the development of unparalleled crafts and designs. Being an art lover, you must have craved conceiving your conceptual patterns into reality. Cricut.com/setup | Cricut setup |cricut.com setup
dialaidsambulance Email Homepage
2022-5-6 19:33
AMBULANCE SERVICE IN CHANDIGARHIn the event that you are a patient who requires prompt and critical clinical consideration will require the top Ambulance Service In Chandigarh. As a result of crises, the ambulance is utilized to ship patients beginning starting In the event that you are a patient who requires prompt and critical clinical consideration will require the top Ambulance Service In Chandigarh. with one spot and continuing on then onto the next one. In a Chandigarh ambulance, there is consistently fundamental hardware that helps help patients while on the excursion beginning starting with one area and continuing on then onto the next. Many individuals have moved to emergency centers and the clinical establishments inside the ambulance to get the best remedies rapidly.https://www.dialaids.com/ambulance-serivce-in-chandigarh.html
Monika Das Email Homepage
2022-5-7 20:13
Get lost in their deep romantic chasms between two hills covered in thick black grasses. Enjoy their kissing, licking, hugging, foreplay, and seduction for as long as you can- at the very least you release yourself numerous times through some incredible swoons. http://monikadas.biz/itahar-call-girls-service-agency.htmlhttp://monikadas.biz/jalpaiguri-call-girls-service-agency.htmllove
health fields Email Homepage
2022-5-11 15:10
Your writing is so impressive and informative that now I am able to understand the importance of blogging and forum posting. But here still I am confused about the topic on which I should start a forum. Actually my topic is "Organic Food Which Are You Eating Does It Really Organic?". Here I also want to share some information about organic food that I am using for a long time. I would also suggest others try organic lentils like health fields moong dhuli and health fields masoor whole from a certified organic food producer. And what do you think to start an informative forum on organic food consumption and its effects on health, environment, society and economy?masoor whole dal
williamjameson Email Homepage
2022-5-13 13:46
Hey everyone! My name is William. I am a QuickBooks specialist, and I have assisted thousands of clients across the globe. Many users face a QuickBooks Error Code 12029. It arises mainly due to outdated QuickBooks software. However,  updating the software may not always help, and you may face a typical problem. But don't worry! Connect with me, I am available for help 24x7!
Chhavi Garg Email Homepage
2022-5-13 19:14
Hello, I'm Chhavi Garg, The curvy Connaught Place Escorts Service Companion. I was blessed with breathtaking natural curves that are not for the faint hearted: they turn many a head and are meant to be held with a tight grip. My blue eyes tell another story. I'm chic and confident and that is how I convince the rest of the world that I am an ordinary mid 20’s woman with my discrete ways. But I am so much more.
teenavishwass Email Homepage
2022-5-13 19:56
I am Teena Vishwas - an all-natural super fun Independent Delhi fun girl who offers all services. I am a truly stunning model with the personality to match. I am just pure class. I am a mind blower and will have you coming back for sure. A date with me would be a truly unforgettable one. Without doubt I am one of Delhi’s most stunning entertainment girl.
Ravi Kumar Homepage
2022-5-13 20:29
It is very nice to have your forum on the internet. You have written it so well that now I going to come into this forum for my every uncleared topic. Here I want to know others' opinions on organic food items like organic masoor whole dal is more healthy than other conventional pulses.Some organic products like urad dal dhuli, please write your review on it. Organic arhar dal online in India
Sonam Sinha Email Homepage
2022-5-14 15:37
Welcome to Delhi companion Service. Worldwide independent girls are available in many places across Delhi.
分页: 37/57 第一页 上页 32 33 34 35 36 37 38 39 40 41 下页 最后页
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]