[文章作者:张宴 本文版本: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技术 | 评论(1135) | 引用(0) | 阅读(180489)
Escorts in Islamabad Email Homepage
2023-3-7 20:48
If you’re looking for an escort in Islamabad, Pakistan, you’ve come to the right place. This directory is filled with the best escorts in Islamabad. Get the information you need to find the right escort, and make sure you’re getting the right experience.
Kiran Bhatt Email Homepage
2023-3-11 19:17
Mumbai escorts is the most popular escort website in Mumbai with more than 100 currently available girls. Escort Service In Mumbai, Call girls in Mumbai.https://www.callgirlsmumbai.net
Electronic City Escort Email Homepage
2023-3-18 17:39
Welcome to Kirti Roy Call Girls Agency. One of the best platforms for call girls in Electronic City. If you want to hire a handsome and broad-minded partner for satisfaction. We bring you the hottest and most sexy call girls in Electronic City. Our Electronic City call girls agency is one of the most effective and highly efficient agencies looking after people who lead a leisurely and simple life. Our call girls bring sparkle to your life through the happiest and unbreakable time of your imagination. We keep only educated girls with us who are beautiful and cultured in appearance. Our Electronic City call girls are not only for sexual satisfaction, they also provide a (GFE) girlfriend experience. Our best and most gorgeous young call girls are available in 5-star hotels for 24/7 and 100% guaranteed satisfaction service is available for pleasure services. Electronic city call girls are also available online now on the google platform to provide their high-end service, so you can contact these girls according to your budget. You can get in touch with Electronic City Call Girl when you are tired of living your life and think that you should try something new and inspiring. These ladies are skilled and fully understand what kind of service you require to lead a happy life. One is forced to live a conventional life, with constant, unrelenting work. Due to the pressure of work, they are not yet ready to be satisfied in their personal life, and after a certain time, they must leave it behind. One solution is to set aside some space for oneself and devote that energy only to self-fulfillment. In this situation, it seems that he is hoping to find sexy call girls in Electronic City so that he can devote his efforts to her pleasure. Comparatively, call girls have changed their way of acting and providing service, just like people are changing their current way of life. Where earlier these girls used to stay at one place and provide help from there, today these girls used to go out with the clients and spend time with them. For those who want to get away from their daily routine and spend some alone time, local call girls in Electronic City are a great option. Best Call Girls in Electronic City Call here via our WhatsApp number mentioned on Kirti Roy Call Girls Agency. AND OUT CALL SERVICES AVAILABLE, WE HAVE CALL GIRLS, RUSSIAN GIRLS, COLLEGE GIRLS, VIP MODELS, RUSSIAN GIRLS, HOUSEWIVES, AND MUCH MORE 24/7 AND OUR GIRLS ARE QUALIFIED PROFESSIONALS GIVE YOU A PLEASURE YOU MOST was required.
Escorts in Lahore Email Homepage
2023-3-20 22:20
Want to become a call girl in Lahore? This article will tell you exactly how to become one.https://callgirls4rent.online/
soniyayer Email Homepage
2023-3-22 17:54
We're providing a choice of Fair Chennai associate with Escort Chennai Girl expenses are totally financially savvy One of the most spending plan amicable in Chennai. For subtleties and furthermore enormous running specifics of expenses if it's not too much trouble, call attention to isolate Web content. You'll have the option to lead now while a particular requests please addresses our worker.
ukinfocampus Email
2023-3-27 18:29
Infocampus teaches the ever best training for Web Designing Training and Full Stack Developer Course in Offline and Online with industry experts. Web Designing Training in Bangalore | Full Stack Training in Bangalore | Best Training Institute in Bangalore
Escorts in Lahore Email Homepage
2023-3-31 15:31
If you’re looking for a relationship with a companion, escort, or girlfriend nearby Lahore who’s willing to travel to your place for a few hours, this blog post is for you. I was able to find and book a date with an escort in Lahore.
Escorts in Lahore Email Homepage
2023-3-31 15:38
Is it possible to find a beautiful call girl in Lahore? The answer is yes, and the best way to find out is to read our guide. We’ll tell you about the easiest way to find a call girl in Lahore, and what you have to expect from your call girl in Lahore.
Call Girls in Lahore Email Homepage
2023-3-31 15:39
Is it possible to find a beautiful call girl in Lahore? The answer is yes, and the best way to find out is to read our guide. We’ll tell you about the easiest way to find a call girl in Lahore, and what you have to expect from your call girl in Lahore.
Priya Gill Email Homepage
2023-4-4 18:42
Are you looking for a gorgeous female to have sex with in Ahmedabad? Welcome to Ahmedabad Escort Service, from priyagill. With our attractive girls from Instagram, you can have endless fun. Priyagill Escorts Agency's Instagram In this modern generation, everything has changed and there are plenty of attractive girls willing to provide you sexual pleasure.Ahmedabad Escorts Service
Neha Pandey Email Homepage
2023-4-5 06:18
Hey guys, I am Neha Pandey, an Independent Ranchi Escorts who can ready to give Cheap Escort Service In Ranchi in flat or 3-star hotels. I was born in Ranchi and I am very bold and sexy college girl Ranchi Escorts for 24 hours
bolddelhiescorts Email Homepage
2023-4-5 15:14
Bold Delhi Escorts is the best escort service provider in Delhi. We have a team of beautiful and sexy Russian escorts in Delhi who are dedicated to providing high-class escort services to clients. If you are looking for an erotic and sensual escort experience, then our Russian escorts in Delhi are perfect for you. We promise that you will be blown away by the quality of our escort services.
sonitadelhi69 Email Homepage
2023-4-8 16:15
delhi girls are a professional business serving for a long. We are proud of ourselves in sustaining truthfulness, safety and repeat clientele, providing our clients with an Visit our service site page in delhi :   <b><a href="https://sonita.in">      https://sonita.in</a></b>
sonitadelhi69 Email Homepage
2023-4-8 16:17
delhi service femalehttps://sonita.in/model service female delhihttps://sonita.in/
mehakbhatthif Email Homepage
2023-4-10 10:40
Hi, I'm Miss Mahak Bhatt 23 who is an attractive and well-educated passionate independent Delhi model and founder of mehakbhatt.com. I am a passionate lover who enjoys giving herself completely, and I can tell you that we will share special moments of pleasure.Delhi Escort
Escorts in Lahore Email Homepage
2023-4-10 13:57
Lahore is one of Pakistan’s biggest and busiest cities. With a population of over 14 million people, it’s the second most populous city in the country. But the hospitality industry in Lahore is still quite small compared to other major cities. Do you want to improve your chances of success as a female escorts in Lahore? In this article, we’ll show you how to get a job as an escort in Lahore.Escorts in Lahore
Call Girls in Lahore Email Homepage
2023-4-10 14:30
If you want to make money as a call girl in Lahore, this is how you do it. The business of call girls is booming in Pakistan, so it is important that we start educating others about this lifestyle. In this blog post, we will walk you through everything you need to know to start a successful call-girl business in Lahore.Call Girls in Lahore
Escorts in Lahore Email Homepage
2023-4-10 15:22
Lahore has a huge sex tourism industry. In fact, many of its so-called “madams” are actually escorts. But is it legal for them to operate in this way? And what exactly should you expect from the women you book? This guide will give you an insight into escorts in Lahore, and show you how to find one that’s right for you.Escorts in Lahore
Call Girls in Lahore Email Homepage
2023-4-10 15:44
Are you a travel lover who loves the exotic locales of the world? If so, you may have been looking for ways to make money from your hobby. In this article, we will talk about some of the ways to earn money from your blog, such as offering a call girls in Lahore.call girls in lahore
Pakistan Escorts Organization Email
2023-4-10 15:48
Welcome to escorts in Pakistan. We're the only ones who can provide you the best experience of your life at a 5-star hotel without breaking the bank. Call girls in Pakistan who will completely satisfy all of your sensual requirements and offer you a fresh experience of your life if you are dissatisfied with your wife or girlfriend. Spend a little money on our services and feel relaxed and optimized with our famous Pakistani call girls.https://pakistanicallgirls.pk/
分页: 46/57 第一页 上页 41 42 43 44 45 46 47 48 49 50 下页 最后页
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]