[文章作者:张宴 本文版本: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) | 阅读(185134)
Female Escorts in Lahore Email Homepage
2022-3-31 17:15
If you're looking for a sexy Lahore escort, you've come to the right place. Locantocallgirls.com has years of experience providing sexual satisfaction to its clients. They offer a warm smile, a hot personality, and great chemistry.  Lahore Call Girls can make your romantic dinner date a success. A weekend date with your partner can be turned into an exciting night with a sexy call girl. Or, if you're in the office, a call girl can impress your business colleagues and help you complete deals. Whether you're a man or a woman, there's a call girl for you in  Lahore.
College Escorts in Karachi Email Homepage
2022-3-31 17:15
Call girls in Karachi have different cultures and religions, so you'll need to consider their beliefs and culture before choosing a call girl. Some people in Karachi don't treat female escorts with respect, while others will abuse them. Before selecting a call girl, be sure to know what you're getting yourself into. The first thing you need to do is choose a reliable agency. The city of Karachi has a high crime rate, and many women from all walks of life are seeking escorts to help them escape the stress of their daily lives. A Karachi call girl will do her best to keep your privacy and ensure that you're comfortable with her. The best way to find an agency that offers reliable service is to check the profile of the Girl you're interested in.
Model Escorts in Islamabad Email Homepage
2022-3-31 17:15
Be sure to talk to your potential escorts in depth. Choosing Females Escorts in Islamabad should be your top priority. A young, beautiful, and confident Girl can make your date unforgettable. You don't have to pay her for every minute of the night, and they'll be there as soon as you call. You'll get what you delivered for, and they'll be happy to oblige you. Whether you want a sexy Karachi VIP call girl or a sexy Karachi escort, there's a company that's perfect for you. You'll be surprised by the quality of locanto call girls. Most of them are genuinely passionatebecause making love and have no problem with a wild encounter with you. These calls girls are also highly qualified and well-educated, which means they will work hard to meet your expectations. The highest quality Karachi call girls are usually part of the same groups as the most desirable escorts. If you're looking for a sexy Islamabad call girl, make sure you select the right one. It's essential to be compatible with the group because the girls will work best together. You'll also get a great escort in Islamabad. It's necessary to ask for referrals.
Top Escorts in Islamabad Email Homepage
2022-4-2 19:25
One of the primary reasons people choose to employ a  call-girl is that they don't have a particular background. These girls come from all over the world, and they know the business in their field. Their qualifications are not based on attaining a degree or being a professional who holds a degree. The first thing a buyer is looking for on the websites of any of these companies is an age restriction. In general, a person over 18 years old can make a booking with one of these agencies for escorts.
Young Escorts in Karachi Email Homepage
2022-4-2 19:25
Most agencies offer services in bundles so customers can choose the option they prefer without compromising the quality of services. Additionally, they are categorized according to where the person is required to meet the person they are looking for. For instance, if the woman wants to attend a business event, she could select any of these corporate plans. It is also possible that she will require the services of a BPO, or the services provided by the escort-escort escorts in this instance could differ from those offered that are used for personal meetings.
mandirachopra1 Email Homepage
2022-4-6 19:04
http://www.mandirachopra.com/Delhi-Escorts-Photos-Gallery.htmlhttp://www.mandirachopra.com/Rates-Of-Escorts-in-Delhi.htmlhttp://www.mandirachopra.com/Delhi-Escorts-Call-Girls-Mobile-Contact-Number.htmlhttp://www.nainasharma.net/Goa-Escorts-All-Call-Girls-Photos.htmlhttp://www.nainasharma.net/Goa-Escorts-Service.htmlhttp://www.nainasharma.net/Cheap-Rate-Goa-Escorts.htmlhttp://www.nainasharma.net/Goa-Escorts-Contact-Whatsapp-Mobile-Number.html
kajal Email Homepage
2022-4-9 12:59
I'm a receptive and autonomous young lady. I get involved totally so you can't feel that you are with an expert and paid friend.
Sara Mittal Email Homepage
2022-4-14 14:13
Lahore call girls Email Homepage
2022-4-15 18:52
Escorts are available in Escorts in Private to increase your visibility and make an impression within this City of Lights. A rising rate of crime and a growing need for security and legal companionship has been on the increase. Women of all ages and all kinds of life seek help from Escorts. While the majority are women seeking to satisfy their desires for themselves, most of them are reputable and competent women. They have earned approval and admiration from men through their impeccable moral character. Because their work is demanding, they're equally adept in their job.
call girl in karachi Email Homepage
2022-4-15 18:52
Most agencies offer services in bundles so customers can choose the option they prefer without compromising the quality of services. Additionally, they are categorized according to where the person is required to meet the person they are looking for. For instance, if the woman wants to attend a business event, she could select any of these corporate plans. It is also possible that she will require the services of a BPO, or the services provided by the escort-escort escorts in this instance could differ from those offered that are used for personal meetings.
Islamabad call girls Email Homepage
2022-4-15 18:52
One of the primary reasons people choose to employ a  call-girl is that they don't have a particular background. These girls come from all over the world, and they know the business in their field. Their qualifications are not based on attaining a degree or being a professional who holds a degree. The first thing a buyer is looking for on the websites of any of these companies is an age restriction. In general, a person over 18 years old can make a booking with one of these agencies for escorts.
Levin Smith Email Homepage
2022-4-19 15:28
I personally found this post so much communicative and factual and enjoyed reading it.Well, one such commonly reported error is QuickBooks error code 15241. This error code is related to QuickBooks payroll function and might trouble the QuickBooks users in installing the updates in a proper manner.Talking about QuickBooks remote access, it is considered a secure server through which the users can access their PC from any other system.This can be easily done with the help of a strong internet connection.
tawkgirls Email Homepage
2022-4-20 14:42
Our independent Call Girl in Goa are stylish, intelligent, communicative and well-educated. They are well aware of almost all classical Kama Sutra sex positions and modern styles and poses of offering erotic pleasure, utilizing the finesses of many modern sex toys, erotic oils, sensual machines, etc. You are free to open your libido and gratify your dark desires in your preferred ways. Our beautiful call girls in Goa are comfortable with any sensual and sexual encounter. Casting their magic erotic spell, they will take you to a utopian world of amorous pleasure where you will find everything amazing and sensational. Lying on their tolerant enchanted slopes and keeping your face on their ripening breasts, you can suck sensual and sexual pleasure through all your five senses visionary, auditory, olfactory, gustatory and tactile. Get lost in their deep romantic chasms slanted down between two hills covered with thick black grasses. Enjoy with them and let you pampered with their kissing, licking, embracing, foreplay and seduction as long as you can- at least you release yourself several times through some extraordinary swoons.Visit Our Important Reference Link:- https://community.she.com/topic/2517919/goa-escorts-have-fun-with-call-girls
escorts in lahore Email Homepage
2022-4-20 15:00
A prime example of how these services work is the case of Vora Young. When Vora, a twenty-one-year-old fashion designer was on her way to an important business meeting in Pakistan, she had to go through an extreme security precaution. Her driver and escort had to make several detours so as to avoid road jams and traffic jams. Although this might have been a hassle for her, she was more than willing to sacrifice her travel plans in order to meet her deadline. She had decided that she would only get one chance at seeing her idol, so she decided that she would make the most of it by hiring a professional and did.
call girl in karachi Email Homepage
2022-4-20 15:01
In case you have decided to make your first trip to Pakistan with your partner or with friends, then make sure that you book your vehicle early. Most call girls will be available to make pickups from their homes around midnight. It is highly advisable to contact an escort agency well beforehand in order to ensure that you reach your destination safely and on time. The agency will send one of its experts to your hotel and will do all the driving for you. Make sure that you enjoy your stay in by hiring a professional and vip call girl.
Islamabad call girls Email Homepage
2022-4-20 15:01
Escorts is the most preferred escorts for a couple of good reasons. The authorities in have made it easier to find quality Escorts as the demand for the service has grown phenomenally in the recent years. To make things easier for customers, most of the agencies in have their own website where customers can view photos and feedback of their services. This way you can have a first hand look at the professionalism of the drivers and the quality of their work. Most of the agencies in also have personal representatives who will visit your home and escort you to your destination.
BlendaWilliams Email Homepage
2022-4-20 16:54
Looking for <a href="https://testbanks21.com/">Test Banks Online</a> just browse test bank 21 and purchase the current updated version of test banks you need at great discount prices now.
riyamehramodel Email Homepage
2022-4-23 13:16
Thanks for sharing this is very informative blog.Delhi EscortsDwarka EscortsPatna Escorts
asd Email Homepage
2022-4-25 15:24
san001 Email Homepage
2022-4-26 14:24
Hi, guys! Do you want someone to write my essays review? Contact me. I am a content writer with 8 years of experience in review writing. I will be at your service! 
分页: 36/57 第一页 上页 31 32 33 34 35 36 37 38 39 40 下页 最后页
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]