[文章作者:张宴 本文版本: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技术 | 评论(1063) | 引用(0) | 阅读(141402)
prostitute karachi contact numbers Email Homepage
2022-5-19 20:40
Regardless, nothing is said about escorts for those who sign up to one of the prominent female escorts. You don't have to load too much on the calculation that these things depend on appealing to you as an escort and basically offering pleasure. They're going to be open skirts for this kind of inclination, and with little respect for the possibility that they've encountered anything with Escort in one of their former clients, they Will not show that Escort in with you.
islamabad sexy Email Homepage
2022-5-19 20:40
They are very much in search of small hotels, surprisingly escorts immediately. The desire to be progressive is always welcomed in the mattress, but to be safe inside you for specific purposes is one of the most mischievous factors. With these escort models, you don't have to limit your desires to escorts. That you can practically inform these escort units about your wishes and their VIP EsCORTS.
Heexa Email Homepage
2022-5-24 14:11
I simply wanted to write down a quick word to say thanks to you for those wonderful tips and hints you are showing on this site.https://techtotrend.com/watch-dubbed-anime-online/https://techtotrend.com/20-free-private-roku-channels-in-2022/https://...
John C. Carlson Email Homepage
2022-5-24 14:13
I had simply wanted to write down a quick word to say thanks to you for those wonderful tips and hints you are showing on this site.https://techtotrend.com/watch-dubbed-anime-online/https://techtotrend.com/20-free-private-roku-channels-in-2022/https://...
Aarohi Jain Email Homepage
2022-5-25 20:13
Book Independent Nagpur Escorts & Russian Call Girls in Nagpur for safe sex. Avail High Profile Escorts Service in Nagpur with Number & Pic.https://myescorts.in/nagpur-escort-service
Udaipur Escort Email Homepage
2022-5-27 16:05
We have multiple choices of Escorts & Call Girls in Rajasthan because we always take care of our valuable clients. So we just want to ask you don’t take unnecessary trouble do not forget to call girl Udaipur the erotic city where we have created an organization where you can find and take Beautiful Housewife in Rajasthan. We have all varieties of female Girls youngest to the sexiest escort service call girl.Udaipur Escort
Lahore escorts Email Homepage
2022-5-28 16:17
You can find scoops for your boys and women in Lahore. There are some excellent hotels, restaurants, and nightclubs in which people can see my family's happiness using their family members. We insist on having men with all our young men and lively ascents that we believe you will not feel frustrated for purely enjoyable goals. In Lahore escorts are beautiful girls. Their usual craving for boys to entertain them is much more than women in other age groups.
Mandira Chopra Email Homepage
2022-6-1 15:17
I am a gorgeous girl, a sensual tall brunette 23 years old. I am very friendly and ready to make everyone feel comfortable around me. I have tonnes of energy, hotness and fantasies to share with you.Model Escorts in Delhi
Naina Sharma Email Homepage
2022-6-1 15:19
Greetings I am Naina Sharma an upscale autonomous escort and working in Goa as high class Goa escort. In the event that you need to meet me or invest some quality energy with me then call me.. Goa Model Escorts
Street girls Email Homepage
2022-6-2 13:32
They take their work seriously and strive to accomplish it within the allotted time. One might choose between enlisting the help of fifty Annupur escorts at once or waiting for a single female to satisfy his body's needs. It all depends on the situation, your mood, and the amount of money you have in your pocket.Also Visit: Ashoknagar Escortslove
Street girls Email Homepage
2022-6-2 13:33
They take their work seriously and strive to accomplish it within the allotted time. One might choose between enlisting the help of fifty Annupur escorts at once or waiting for a single female to satisfy his body's needs. It all depends on the situation, your mood, and the amount of money you have in your pocket.Also Visit: Ashoknagar Escortslove
canon b200 error Email Homepage
2022-6-4 15:10
You start your canon printer, select a document to print, and you receive a B200 Error on your printer screen. It’s a sign that your device is encountering some severe issues. It may create unnecessary interruptions in your day-to-day printing requirements   canon b200 error | canon printer b200 error reset | canon printer error b200
Evisanation Email Homepage
2022-6-6 18:48
eVisaNation is a private independent company that provides the simplest solution to process your Online visa application. So, say good bye to endless research; enjoy your trip and let us take care of all the procedure.
Call Girls in Lahore Email Homepage
2022-6-15 15:14
Have you ever met a sexy woman in your life? If not here's a new product just for you! Your first experience with us will be unforgettable. Enjoy some of the most popular and sexy call girls in the area. Share your needs and the type of women you need. If you like a woman with big breasts, big ass, then share all the details with our executive. All you need to do is chat on WhatsApp.
Escorts in Lahore Email Homepage
2022-6-15 15:14
Meet attractive call girls like . She is incomparable and has all the qualities that a woman should have. She has a beautiful face with a heart touching smile and dimples on her cheeks. Her day starts with exercise and gym. As she likes to keep her body shape like a female Bollywood star. We have more such Indian and foreign escorts available in our agency.
Karachi Escorts Email Homepage
2022-6-15 15:15
Everyone is busy with their lives and people do not have time for each other. Men can't show that they need someone for emotional conversation. They need someone with whom they can not only have sex. But with those they can also feel the emotional part. That doesn't mean they're looking for a relationship. So, if you are in such a situation and you are looking for such an escape. Then there is no better escape than the escort service agency.
Call Girls in Islamabad Email Homepage
2022-6-15 15:15
Here we have some mature and sensible escorts to listen to you. Our escorts are so cute that they will take care of you with love. Even when intimate, they will show such love that you will get lost in them. It doesn't matter what you talk to them about, they will not judge you. Whether you choose a housewife or a foreign escort. They will all listen to you and try to calm you down with their love and sex.
Hot Models Email Homepage
2022-6-23 15:38
You may have the opportunity to experience wild activities with sexy call girls as we provide men with over 50 sexy girls who are young and hot. We send you hot pictures of them on your phone so that you can choose a girl who looks attractive to you and who will give you a penis just by looking at them.https://pakistanmodels.weebly.com/https://pakistanescortsgirls.weebly.com/https://karachidatinggirls.blogspot.com/https:...
Shawn458 Email Homepage
2022-6-23 15:49
GreatAssignmentHelp is a service that provides students with the opportunity to get their assignments done by experts. It is a great way for students to get&nbsp;<a href="https://www.greatassignmenthelp.com/us/">online assignment solution</a> with their homework and assignments.We have a team of expert writers who are qualified in various fields of study and can provide you with any type of assignment you need.We offer a wide range of services including essay writing, dissertation writing, coursework, thesis and more.
Shawn458 Email Homepage
2022-6-23 15:49
GreatAssignmentHelp is a service that provides students with the opportunity to get their assignments done by experts. It is a great way for students to get&nbsp;<a href="https://www.greatassignmenthelp.com/us/">online assignment solution</a> with their homework and assignments.We have a team of expert writers who are qualified in various fields of study and can provide you with any type of assignment you need.We offer a wide range of services including essay writing, dissertation writing, coursework, thesis and more.
分页: 38/54 第一页 上页 33 34 35 36 37 38 39 40 41 42 下页 最后页
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]