[文章作者:张宴 本文版本: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


Delhi call girls
2025-11-27 22:08
<a href="https://hotgirlsavita.com/">Best Escort Services in Delhi</a><a href="https://hotgirlsavita.com/about.php">High Profile Call girl delhi</a><a href="https://hotgirlsavita.com/body-massage-services.php">body massage services</a><a href="https://hotgirlsavita.com/air-hostess.php">air hostess escort delhi</a><a href="https://hotgirlsavita.com/college-girl-escorts.php">college girl escorts</a><a href="https://hotgirlsavita.com/housewife-escorts.php">housewife escorts</a><a href="https://hotgirlsavita.com/russian-escorts.php">russian escorts</a><a href="https://hotgirlsavita.com/independent-escorts.php">independent escorts</a><a href="https://hotgirlsavita.com/gallery.php">Delhi Call girl Real photos</a><a href="https://hotgirlsavita.com/privacy-policy.php">privacy policy</a><a href="https://hotgirlsavita.com/contact-us.php">Delhi Call girls mobile number</a><a href="https://hotgirlsavita.com/call-girl-noida.php">call girl noida</a><a href="https://hotgirlsavita.com/call-girl-manesar.php">call girl manesar</a><a href="https://hotgirlsavita.com/call-girl-bhiwadi.php">call girl bhiwadi</a><a href="https://hotgirlsavita.com/air-hostess-gallery.php">air hostess gallery</a><a href="https://hotgirlsavita.com/independent-escorts-gallery.php">independent escorts gallery</a><a href="https://hotgirlsavita.com/russian-girls-gallery.php">russian girls gallery</a><a href="https://hotgirlsavita.com/housewife-gallery.php">housewife gallery</a><a href="https://hotgirlsavita.com/college-girls-gallery.php">college girls gallery</a>
Delhi call girls
2025-11-27 22:09
https://hotgirlsavita.com/https://hotgirlsavita.com/about.phphttps://hotgirlsavita.com/body-massage-services.phphttps://hotgirlsavita.com/air-hostess.phphttps://hotgirlsavita.com/college-girl-escorts.phphttps://hotgirlsavita.com/housewife-escorts.phphttps://hotgirlsavita.com/russian-escorts.phphttps://hotgirlsavita.com/independent-escorts.phphttps://hotgirlsavita.com/gallery.phphttps://hotgirlsavita.com/privacy-policy.phphttps://hotgirlsavita.com/contact-us.phphttps://hotgirlsavita.com/call-girl-noida.phphttps://hotgirlsavita.com/call-girl-manesar.phphttps://hotgirlsavita.com/call-girl-bhiwadi.phphttps://hotgirlsavita.com/air-hostess-gallery.phphttps://hotgirlsavita.com/independent-escorts-gallery.phphttps://hotgirlsavita.com/russian-girls-gallery.phphttps://hotgirlsavita.com/housewife-gallery.phphttps://hotgirlsavita.com/college-girls-gallery.php
umair
2025-11-28 00:47
Our Fancy KnivesWhen people talk about fancy knives, they usually mean knives that go beyond mere utility. Fancy knives combine function with artistry. They can be showpieces, collectors’ items, or tools that feel luxurious because of their materials, detailing, or craftsmanship. Some of the aspects that tend to make a knife “fancy”: ·High-quality materials—exotic woods, bone, horn, premium steels, maybe even Damascus steel or similarly patterned steels. ·Artisan workmanship—hand-forged parts, decorative etchings, inlays, complicated handle shapes, custom fittings, sometimes even jewels or unique motifs. ·Aesthetic design—fancy shapes, polish, finishes (matte vs mirror), patterns, and balance between form and function. ·Heritage or story—a knife made by a famous maker, in a traditional style, or using lost techniques tends to feel fancier.Website :- The Engraved EdgeLink :- ( https://theengravededge.com/ )Product :- ( Hunter Or Pocket ) Knives Link :- ( https://theengravededge.com/products/ )
分页: 63/63
58 59 60 61 62 63
58 59 60 61 62 63
初步试用Squid的替代产品──Varnish Cache网站加速器[原创]
周末旅游──蟹岛度假村·城市海景(水上乐园)[原创]

2007-8-31 18:23 | by







