[文章作者:张宴 本文版本: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
suresh
2022-3-1 19:18
There are a lot of factors that contribute to hair growth (or lack thereof), but one of the most overlooked is physical stimulation—as in massaging the heck out of your scalp.
pooja saxena
2022-3-1 20:20
Due to the high fees, many men avoid Paharganj escort services. This is due to the fact that they have been using the wrong escort agency all along. It is not that we don't have expensive escort agencies; Paharganj is escorted. We also offer a cheap escort service. We didn't say that the experience would be cheap. The best experience in sexual pleasure, but at a very affordable price. For a night, you won't have to spend 50 thousand dollars or 60 thousand dollars. For just a few dollars, you can have the company of one of our most sexy Indian escorts. Our Paharganj escorts are affordable and will get you up to your core. You will be pushed to your limits so you can have a good time. She will not stop you from making love to her. My phone number - 9899442500Other link- http://bit.ly/3qhxDPZOther link - http://bit.ly/3a3KnCbOther link- https://paharganj-escort.yolasite.com
pooja saxena
2022-3-1 20:26
Due to the high fees, many men avoid Paharganj escort services. This is due to the fact that they have been using the wrong escort agency all along. It is not that we don't have expensive escort agencies; Paharganj is escort. We also offer a cheap escort service. We didn't say that the experience would be cheap. The best experience in sexual pleasure, but at a very affordable price. For a night, you won't have to spend 50 thousand dollars or 60 thousand dollars. For just a few dollars, you can have the company of one of our most sexy Indian escorts. Our Paharganj escorts are affordable and will get you up to your core. You will be pushed to your limits so you can have a good time. She will not stop you from making love to her. My phone number - 9899442500Other link- http://bit.ly/3qhxDPZOther link - http://bit.ly/3a3KnCbOther link- https://paharganj-escort.yolasite.comPaharganj escort
soniya45
2022-3-3 16:38
Independent Jaipur escort girl is something you can look up to for intimate fun. Men often love the seductive mannerisms of pretty ladies, and they are hungry for romantic vibes. Hot girls are the turning point for such males who have insatiable urges. They are ardent lovers who display incredible love-making techniques. for more info visit here :- https://escortservicejaipur.com/Jaipur Escort Service
online assignment help
2022-3-5 18:56
Assignment Helper Price preparation and submitting assignments and essays before the deadline is a tough nut to crack. It takes extreme dedication. What if, you do not have this much availability? ONLINEASSIGNMENTHELPAUSTRALIA service provider. It can take away all the pain you are in. You can What if, you have planned things that are clashing with your courses? What if, you are regularly getting less grades your courses? If this sounds you fit, then you should probably take Assignment help Online from get plagiarism free assignment and Assignment Helper USA and that too with high quality. This can probably bring A+ grade and you can roam proudly with best grades under your arm.
Tawk Girls
2022-3-9 15:15
Hi guys, I am Shivani Arora, a 22-year-old incredibly slutty and independent call girl in Goa by Tawk Girls. I will make you feel sensations you never had, with me, you'll experience real sex. I'm very dedicated where it counts. Let me pamper you as the real king you are, I want to enjoy having a delicious sex. Strip-tease, bbbj, bj, come on face, completion, daty, dick suckinglips, sex style from behind(doggie), girlfriend experience, hand job, oral sex, 69sex with a condom without condom, come on body, extraball have sex many time. I'm full of hot and crazy to satisfy you between four walls, my service is hot. We Provide best college call girls, housewifes, models, VIP, independent Escorts By Tawk Girls Escorts Agency in Goahttps://cutt.ly/JAlM7vqhttps://cutt.ly/BAl0jQ2https://cutt.ly/7Al0zof
levinsmith0444
2022-3-9 19:09
I am really glad I have found this information.We have shared some important steps to resolve the Pdf and Printing Errors with QuickBooks. However, you can contact to Axpert Accounting team at +1-844-405-0906 to get instant help.
Russian343
2022-3-14 15:56
We are providing most beauty model and high profile beauty-ful Independent escort <a href="https://russianaffairs.in/aerocity-russian-escorts/">aerocity-russian-escorts</a> girls for Hotel service so guys you can enjoyment Including hotel escorts profile in hotel Gurugram/Delhi and so if you want quality services then visit us without wasting any more time. <a href="https://russianaffairs.in/mahipalpur-russian-escorts/">mahipalpur-russian-escorts</a>We should not forget about the petite mahipalpur-russian-escorts It is always fun to have a petite Model next to you. These models are amazing and can truly make you feel good, no matter what you want. They are professionals that will respect your privacy and will treat you with utmost respect. gurugram-russian-escortsIt's hard to spend time alone with a beautiful, smoky hot Model. That's why we make sure you use your precious time collectively. If you are single and looking for some illegal entertainment, you can meet our free escorts in dwarka-russian-escorts and have a great time. Our independent noida-russian-escorts services will spice up your gold assembly. faridabad-russian-escortshttps://russianaffairs.in/
misspari79
2022-3-16 15:24
Every chosen escort in Vadodara belonging to our service is highly versed in the many sexual positions, Kamasutra, foreplay, and the use of sexual toys, among other things. Do not be concerned if you are a man with latent joys on the edge of erupting.We provide escort young call girls in all over in India Book call girls now. Belonia Escortslansdowne Escortsraiganj Escorts
misspari79
2022-3-16 15:27
Here are most famous escorts cities click link & get your girl now. || belonia Escorts || agartala Escorts || ranikhet Escorts || lansdowne Escorts ||
misspari79
2022-3-16 15:27
Here are most famous escorts cities click link & get your girl now. || belonia Escorts || agartala Escorts || ranikhet Escorts || lansdowne Escorts ||
misspari79
2022-3-20 14:34
You continuously have great humor in your blogsVisit here :- Mokokchung escorts ||Mon escorts ||
QuickBooks error 3140
2022-3-25 06:17
QuickBooks Error 6209 can't open the company file usually occurs in the multi-user mode where the firewall restricts QuickBooks from opening or accessing the company file. However, Our experts have explained in detail How to tackle with QuickBooks Error code 6209 with ease. Moreover, you can also redirect your call to the Data service team via 800-579-9430.
Excel Assignment Help
2022-3-25 13:07
Assignment is a new norm of every modern education system thus creating a need of Excel Assignment Help websites. We are one of those who have been providing such help to students for years. A main reason behind our success is our trustworthiness. Trust us once with the most important part of your academic life and see how we make it shine.Excel Assignment Help
Megha Malik
2022-3-29 13:45
Thank you for sharing the great information with us. this blog is very good and informative.Vip Escorts Delhi |
visakha4u
2022-3-29 14:05
This is very good and informative . I appreciate ItVisakhapatnam Escorts
ij.start.canon
2022-3-29 16:58
Canon drivers fully support and assists for all compatible products for all Window vrsions. We offer the required data to configure, utilize and install your Canon products on your Windows PC.canon is completely safe and secure. ij.start canon |ij.start cannon
Disha Malhotra
2022-3-30 17:42
I'm Disha Malhotra and I'm a 21-year-old freelance call girl who is passionate and incredibly hot. I am an expert in giving pleasure. I am tender and obliging, but most of all, I am superior in bed. I am very naughty and I love sex so we are going to have an amazing time together.https://mygirls.in/
misspari79
2022-3-30 19:52
Miss Pari is best Call Girl service agency in all Vadodara Escorts. our girls are staying alone in home incall and out call available. 21 to 35 year old our College girls looking for good companion, very friendly and provide all services without any restrictions.
classybangalore
2022-3-31 14:01
Bangalore escorts young ladies are particularly hot and when clients are meeting with them then they are becoming extremely amped up for taking the sidekick with them. There are tremendous quantities of Bangalore call girls accessible for the date or supper where clients are getting gigantic diversion with the Russian escort young ladies.[url=http://www.classybangaloreescorts.com/][/url]
分页: 35/57 30 31 32 33 34 35 36 37 38 39