[文章作者:张宴 本文版本: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
注:此处的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()函数发送电子邮件
(4)、在MySQL上创建一个数据库servmon,然后在该数据库中执行以下SQL语句创建表:
备注:这张表是PHP接口程序用来记录发送磁盘分区报警邮件的时间,避免在一段时间内重复发送大量报警邮件的。
(3)、PHP接口程序
http://yourdomain/servmon/interface.php
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
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
; 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;
`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
lovely
2023-1-4 17:36
CHIEF ESCORT AHMEDABAB<a href="https://www.aditipatelescort.com/">Escort Ahmedabad</a><a href="https://www.aditipatelescort.com/">Escort Service in Ahmedabad</a> https://www.aditipatelescort.com/
Anjali@2022#
2023-1-7 22:35
I'm Anjali Rana, 28 years old, 5'6, and I have an attractive body. My eyes are grayish; my solid legs and striking beauty will turn your desires into genuine joy. I'll fulfill your desires most romantically. I am a beautiful female companion who will give you the ultimate ride. I guarantee you a top-quality experience Ludhiana call Girl.
sonalchauhann5656@gmail.com
2023-1-8 22:01
KMarketing Agency offers <a href="https://kmarketingagency.com/search-engine-optimization/">local seo services</a> SMM, PPC and more . We are leading SEO agency providing marketing services . If you're looking for an affordable and effective solution, the kmarketing agency is the perfect option for you. We specialize in providing top-quality SEO company that can help your website rank higher on search engines.<a href="https://kmarketingagency.com/search-engine-optimization/">https://kmarketingagency.com/search-engine-optimizatio... links -<a href="https://kmarketingagency.com/search-engine-optimization/">seo company</a><a href="https://kmarketingagency.com/search-engine-optimization/">local seo services</a><a href="https://kmarketingagency.com/search-engine-optimization/">seo services in hyderabad</a><a href="https://kmarketingagency.com/search-engine-optimization/">san diego seo company</a><a href="https://kmarketingagency.com/search-engine-optimization/">seo company for small business</a><a href="https://kmarketingagency.com/search-engine-optimization/">seo company in houston</a><a href="https://kmarketingagency.com/search-engine-optimization/">Seo services in mumbai</a><a href="https://kmarketingagency.com/search-engine-optimization/">Seo services near me</a><a href="https://kmarketingagency.com/search-engine-optimization/">seo services ahmedabad</a><a href="https://kmarketingagency.com/>https://kmarketingagency.com/</a><a href="https://kmarketingagency.com/services/">https://kmarketingagency.com/services/</a><a href=" https://kmarketingagency.com/local-seo/"> https://kmarketingagency.com/local-seo/</a><a href="https://kmarketingagency.com/social-media-marketing/">https://kmarketingagency.com/social-media-marketing/</a... href="https://kmarketingagency.com/pay-per-click/">https://kmarketingagency.com/pay-per-click/</a><a &nb...
maxcloudhost
2023-1-14 12:17
Get a limitless number of sites with Cheap Web hosting India. We give excellent and quickly developing hosting services. Max Cloud Host gives the best hosting plans and deals with its clients seamlessly.
Haridwar escorts
2023-1-20 14:03
Haridwar Escorts are very flexibleYou can book by the hour or extend your reservation for a whole night. You can book cheap Haridwar escorts for the price you are willing to pay for the extravagant night. The rates of the package deals vary from one girl to another. When you've made your choice, you can talk about the charge and have made a happy deal about treating her properly at this point. In India, the services of Haridwar prostitutes have become an attraction for humans. People go crazy for the charming nature and flirtatious style of the lady from Haridwar Independent Escort Services. Make your wild dreams come true with Haridwar Escort. Hello, let me introduce myself, my name is Sunali Sharma and I have a sexy 23 year old air. hostess and one of the best independent prostitutes. My photo is 100% real and I am here to offer you varied and exquisite services in bed. I am always ready to receive you in my arms and be your housewife and lover, let's try new things together and get excited to the absolute maximum. . I am very open-minded so come and meet me. You will have everything you want with me and you should know that in bed I am totally accommodating, come and meet me to see. I will slowly take off my clothes and I guarantee that you will be fascinated with everything I will do to you. Haridwar escorts. Hectic office hours and exhausted work responsibility at home result in unwanted stress. If you too are going through such stress in your life and looking for some moments of peace and happiness then Haridwar Angels Haridwar escorts welcome you with open arms. The escorts associated with our reputed escort agency in Haridwar are famous for making passionate love with their partners and delivering moments of ultimate satisfaction and pleasure.https://mygirls.in/ameerpet-call-girls.htmlhttps://mygirls.in/bagh-lingampally-call-girls.htmlhttps://mygirls.in/amberpe...
Mumbai Escorts
2023-1-24 17:30
Dial 9867884553 for VIP Russian escort service in Mumbai who offer such kind of platform where you select your Foreigner call girls in Mumbai 24*7 within cheap Rate...
Ragini Sharma
2023-1-25 14:59
Hello Guys, Ragini Sharma is one of the noida escorts most popular agency.It gives me a better feeling than ever before. I appreciate the wonderful feelings of cool noida escort.
topmumbaiescorts
2023-2-3 22:58
Have a great time with our Mumbai escorts on a low budget. You will be happy to see the luxury escorts agency and beautiful girls. Once you choose us, you are a customer for life.https://www.topmumbaiescorts.net
delphinemary
2023-2-4 16:36
The Hindu community gives more importance to the Thirumana porutham before fixing any marriage as per our culture. Marriage is the most important event in the world, especially in our country. In that marriage celebration jathagam porutham is the most important thing.we offer Jathagam porutham in Tamil as the easiest way to check your marriage matching in tamil based on the rasi natchathiram, name, and date of birth. Here you can easily get Thirumana porutham in Tamil through your mobile phone and laptop. Marriage porutham in Tamil starts with the comparison of the janma nakshatra (birth star) and Janma Rasi. These calculations are based on the marriage couple name matching, Rasi Nakshatra, date of birth, and other significances. When comes to Horoscope matching in Tamil there are 10 important points to be checked, the compatibility levels are stated as uthamam, madhyamam and adhamam based on the levels of the porutham. Here you can get Rasi porutham in Tamil by using your date of birth and your partner's date of birth. Also, we provide a Numerology calculator in Tamil to get accurate results. Thirumana porutham in Tamil by date of birth is the easiest way to get your thirumana porutham results in a fraction of a moment.
saibaba
2023-2-6 14:03
Complete Set of Chapters of Sai satcharitra in English is available for download also sai satcharitra pdf.in and you can easily read and download in some languages.like sai satcharitra english pdf, sai satcharitra tamil pdf,sai satcharitra telugu pdf,sai satcharitra malayalam pdf,sai satcharitra bengali pdf,sai satcharitra gujarati pdf,sai satcharitra kannada pdf, sai satcharitra marathi pdf,to learn sai baba life history you can easily read and download sai satcharitra pdf format complete story of sai baba you will see the all chapters of sai baba history..you start reading sai satcharitra if you read it respective sai baba blessed daily you read easily sai satcharitra story in the website.entire chapters of sai charitra in english it will be easy for the audience to read and understand the story of sai satcharitra..
Chhavi Garg
2023-2-8 18:21
Delhi is where I am from and based. I'm available for professional companion, domme & switch including dinner dates, overnights and you can fly me to you. Independent Escorts in Delhi
Mumbai Escort
2023-2-8 23:05
Welcome to the mumbai escorts, a world of Call girls who needs satisfaction and we are proud to say that you are in a place which is the home for all type of call girls across the world. This is one such a place to fulfill all of your desires in a manner which you can remember forever, get pleasure from any kind of girl you want whether by an Indian, Chinese, Russian, desi, college, a foreigner, young still there are a lot of options for you to choose. You have reached your destination of the search of the beautiful, erotic, seductress and charming ladies. Indeed, this place welcomes you in the world of exoticness where each and every moment you will find the true and real source of sex, lust, love and fun.mumbai escort is popular for bringing some of the best luxury call girls for fun and excitement. Before you go ahead, we make sure to aware you about our terms and policies. You can only move towards sexual pleasure and fun, if you are comfortable with all terms & conditions of our service. We have been in this business for many years and therefore, we know how to accomplish the lust and sex desire of men. It is our commitment to provide luxury escort services at affordable prices. In Mumbai, we are the only trusted source where you can meet a gorgeous girl to enjoy real love with her.The mumbai call girls and erotic services offered by us are designed in a way to provide sensational and sexual pleasure to our clients. If you wish to spend quality time with the most beautiful escort girl, you have come at the right place. At Luxury mumbai escorts service, we offer many options to choose from. It’s all your choice to select the girl as per your desire and we make sure you will enjoy every moment with lots of fun and excitement. Being one of the leading mumbai call girl, we warmly greet all Indian and International visitors to contact us, if they seek for the most.
Dimpal yadva
2023-2-14 13:10
I am Dimpal Yadav an extremely hot and gorgeous independent Dehradun Escort, who loves making new friends and going on exciting sexual experiences with them. We'll be sharing unforgettable moments through my assistance, so stop by to see me.
infocampus
2023-2-17 13:38
Are you looking React JS Course?? Join ever best training institute has been an Infocampus Software Training Institute. Here 10+ years of experienced mentors will teach the students along with live projects and how to execute the present world scenarios. Limited seats are available for both online and classroom. Book for 4 scheduled free demo classes. Hurry up!Call: 8884166608/9740557058Visit: https://infocampus.co.in/reactjs-training-in-marathahalli-bangalore.htmlVisit: https://infocampus.co.in/ui-development-training-in-bangalore.htmlVisit: https://infocampus.co.in/web-development-training-in-bangalore.htmlVisit: https://infocampus.co.in/web-designing-training-in-bangalore.html
Abell Arora
2023-2-22 15:45
We are one of the best escorts services in Jammu and we provide the best possible services for our customers just like Jammu escorts. We have a wide range of services that we provide to our customers and make sure they are satisfied with our services. We have a team of experienced accompanying professionals who are always ready to provide the best possible services to our customers.Always make sure that our customers get the best possible value for their money and provide a wide range of services that they can choose from. We also offer a guarantee to take money to our customers if they are not satisfied with our services. We are always available to our customers, and we make sure they are satisfied with our services.There are some ways where you can find independent call girls near you. The first method is to check the site you are on now. We have a specially dedicated page to find escorts in your area. All you have to do is put it in the name of your area and will see all the Gurugram accompanying you in this field.Another way in which you can find independent call girls in Jammu near you is to contact us. Our phone number is on the contact page. Our busy stand for 24 hours a day, 7 days a week can help you find the call girls you are looking for.
Abell Arora
2023-2-22 15:46
We are one of the best escorts services in Jammu and we provide the best possible services for our customers just like Jammu escorts. We have a wide range of services that we provide to our customers and make sure they are satisfied with our services. We have a team of experienced accompanying professionals who are always ready to provide the best possible services to our customers.Always make sure that our customers get the best possible value for their money and provide a wide range of services that they can choose from. We also offer a guarantee to take money to our customers if they are not satisfied with our services. We are always available to our customers, and we make sure they are satisfied with our services.There are some ways where you can find independent call girls near you. The first method is to check the site you are on now. We have a specially dedicated page to find escorts in your area. All you have to do is put it in the name of your area and will see all the Gurugram accompanying you in this field.Another way in which you can find independent call girls in Jammu near you is to contact us. Our phone number is on the contact page. Our busy stand for 24 hours a day, 7 days a week can help you find the call girls you are looking for.
theaashvikhanna
2023-2-26 18:32
AngelsofDelhi is among the top modelling agencies in Delhi. We provide best services to our models at affordable price. For more info Visit My website https://www.angelsofdelhi.comhttps://www.angelsofdelhi.com
Astrologer
2023-2-27 15:20
Your blog is awesome.
askaccountings
2023-3-2 19:50
AskAccountings provides QuickBooks Enterprise support services, which are designed to help users manage and optimize their use of the QuickBooks Enterprise software. The service includes phone, email, and chat support from certified QuickBooks experts.https://www.askaccountings.com/quickbooks-enterprise-support/
Escorts in Islamabad
2023-3-7 20:47
If you’re looking to find the best call girls in Islamabad, you’re in the right place. I’ve interviewed a couple of local call girls, and this is my top tip. This article will go through how to find the best call girls in Islamabad, and give you the best tips on what to do next.
分页: 45/57 40 41 42 43 44 45 46 47 48 49