[文章作者:张宴 本文版本: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
![点击在新窗口中浏览此图片 点击在新窗口中浏览此图片](attachment/200708/servmon1.1.jpg)
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]
屏幕演示:
![点击在新窗口中浏览此图片 点击在新窗口中浏览此图片](attachment/200708/servmon1.1_client.jpg)
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
![](https://cdn.phpts.cn/phpts/www/webstatic/img/logo@2x.png)
![](https://cdn.phpts.cn/phpts/images/software/phptsbnew.jpg)
8月3日,我写了“Linux服务器监控系统 ServMon V1.0”,今天,ServMon V1.1 版本亮相。
ServMon的原理是用shell脚本定时抓取被监控Linux服务器上的信息,再用curl POST到监控机的PHP接口程序上,由PHP接口程序对信息进行分析,如果存在异常,则发送报警邮件给管理员。报警邮件演示页面请见:http://blog.zyan.cc/read.php/276.htm
![点击在新窗口中浏览此图片 点击在新窗口中浏览此图片](attachment/200708/servmon1.1.jpg)
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]
屏幕演示:
![点击在新窗口中浏览此图片 点击在新窗口中浏览此图片](attachment/200708/servmon1.1_client.jpg)
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
![](https://cdn.phpts.cn/phpts/www/webstatic/img/logo@2x.png)
![](https://cdn.phpts.cn/phpts/images/software/phptsbnew.jpg)
bodymassageinjaipur
![给他/她发邮件 Email](template/RuiPai/images/email.gif)
![访问他/她的主页 Homepage](template/RuiPai/images/homepage.gif)
2023-5-1 20:28
Blossom Spa: Your Haven for <a href="https://bodymassageinjaipur.com/city/Kolkata">Body massage in Kolkata</a>, Indore, and DehradunLooking for a luxurious spa experience in Kolkata? Look no further than Blossom Spa, where you can indulge in a range of <a href="https://bodymassageinjaipur.com">Body massage Therapies</a> designed to relax, rejuvenate and restore your body and mind.At Blossom Spa, we understand that each individual is unique and has different needs when it comes to massage therapy. That's why we offer a wide range of massage therapies, including Swedish massage, deep tissue massage, hot stone massage, Thai massage, and aromatherapy massage.Swedish massage is a gentle and relaxing massage therapy that uses long, smooth strokes, kneading, and circular movements to promote relaxation, relieve stress, and ease muscle tension. It's a perfect choice for those who want to unwind and de-stress after a long day.For those who prefer a more intense massage, our deep-tissue massage therapy uses slow strokes and firm pressure to reach the deeper layers of muscles and connective tissues. It's an excellent choice for individuals with chronic pain, injuries, or soreness.The hot stone massage is another popular massage therapy at Blossom Spa, which uses heated stones to improve circulation, promote relaxation, and reduce muscle tension. The warmth of the stones helps to loosen tight muscles, making it easier for our therapists to work on the deeper layers of tissues.A Thai massage is a traditional form of massage therapy that involves stretching and deep pressure on specific points of the body. It's an excellent choice for those who want to improve flexibility, relieve pain, and reduce stress.Aromatherapy massage therapy is a gentle and relaxing massage that uses essential oils to enhance the massage experience. At Blossom Spa, we use high-quality essential oils that are known for their therapeutic properties, such as lavender, peppermint, and eucalyptus. The scents of these oils help to soothe your mind, relax your body, and improve your overall well-being.If you're out of Kolkata, and looking to experience our exceptional massage therapies, we also offer <a href="https://bodymassageinjaipur.com/city/Indore">Body massage in Indore</a>, <a href="https://bodymassageinjaipur.com/city/Dehradun">Body massage in Dehradun</a>, <a href="https://bodymassageinjaipur.com/city/Ahmedabad">Body massage in Ahmedabad</a> and other popular cities in India. Our spas in these locations offer the same level of relaxation, rejuvenation, and restoration that our Kolkata spa does.At Blossom Spa, we believe that ambiance plays a crucial role in the overall spa experience. That's why our spas are designed to create a peaceful and tranquil environment, providing you with a relaxing and soothing atmosphere. We use calming music, soft lighting, and aromatherapy to enhance the massage experience, making it an unforgettable experience for our clients.In addition to our massage therapies, we also offer other wellness services such as facials, body scrubs, manicures, and pedicures. Our aestheticians use only natural and organic products that are gentle on the skin and provide excellent results.So, whether you're in Kolkata, Indore, or Dehradun, Blossom Spa is the perfect destination for a relaxing and rejuvenating spa experience. Book your appointment today and let us take care of your body and mind.Visit our other famous centers in India-<a href="https://bodymassageinjaipur.com">Body massage in jaipur</a><a href="https://bodymassageinjaipur.com/city/Udaipur">Body massage in Udaipur</a><a href="https://bodymassageinjaipur.com/city/Surat">Body massage in Surat</a><a href="https://bodymassageinjaipur.com/city/Ahmedabad">Body massage in Ahmedabad</a><a href="https://bodymassageinjaipur.com/city/Kolkata">Body massage in Kolkata</a><a href="https://bodymassageinjaipur.com/city/Gurgaon">Body massage in Gurgaon</a><a href="https://bodymassageinjaipur.com/city/Noida">Body massage in Noida</a><a href="https://bodymassageinjaipur.com/city/Dehradun">Body massage in Dehradun</a><a href="https://bodymassageinjaipur.com/city/Indore">Body massage in Indore</a><a href="https://bodymassageinjaipur.com/city/Lucknow">Body massage in Lucknow</a>
classymodels
![给他/她发邮件 Email](template/RuiPai/images/email.gif)
![访问他/她的主页 Homepage](template/RuiPai/images/homepage.gif)
2023-5-4 15:13
Our escorts are trained to provide excellent service to their clients. They make certain that each consumer is delighted with their experience. The nicest thing about escort services, then, is that you don't have to spend a lot of money because they offer dating services at reasonable prices and allow you to speak even at odd hours. You can video chat with our dating girls and view first-night sex videos if you're feeling lonely.
Cyra Khan
![给他/她发邮件 Email](template/RuiPai/images/email.gif)
![访问他/她的主页 Homepage](template/RuiPai/images/homepage.gif)
2023-5-4 18:19
Options from Foreigner Escorts in kota When it comes to offering variety, professional Escorts Service in Hyderabad gives you unlimited choices. Simply explore them online to find out unaccountable options of well-educated highly trained foreign Hyderabad escorts service for your accompaniment. So, here in India, you are facilitated with the escorts’ options of beautiful sensuous foreign girls, women and models to message women being represented by Western countries to Russia and et al for choicest options.Escorts in kota jaipur escorts service mumbai call girls dehradun escorts service
aemepl
![给他/她发邮件 Email](template/RuiPai/images/email.gif)
![访问他/她的主页 Homepage](template/RuiPai/images/homepage.gif)
2023-5-5 14:18
Aemepl is a leading hospital bed manufacturer in Bhopal, with a history of providing high-quality hospital beds to healthcare facilities across the region. Hospital beds are a crucial component of healthcare, and Aemepl understands the importance of delivering reliable, durable, and cost-effective products to its customers. hospital beds manufacturer in bhopal
kavyapatel0346
![给他/她发邮件 Email](template/RuiPai/images/email.gif)
![访问他/她的主页 Homepage](template/RuiPai/images/homepage.gif)
2023-5-9 13:45
Independent Ahmedabad Escorts Services you experience loads of tomfoolery and feel roads free life and it seem you like paradise. To appreciate incredible heartfelt time with the fabulous and strong wonders of the capital city, mature men should just contact our long running and rumored escort agency which has been serving its world class customer base for the previous years. It is significant when you pay special attention to the Escorts Service in Ahmedabad then you need to go to somewhere safe lengths and guarantee the prudence estimates taken by the escort service provider. We are quite possibly of the most figured out Escort in Ahmedabad that has confidence in top notch service to the clients every single time. Here we are discussing explicitly the city of Ahmedabad.
nikjones
![给他/她发邮件 Email](template/RuiPai/images/email.gif)
2023-5-11 13:27
Thanks for the Nice and Informative Post. This article really contains a lot more information about This Topic. If you need any support for taxes contact our Sage experts for quick help.<a href="https://waoop.com/read-blog/68516_in-quickbooks-how-to-setup-multiple-companies.html">Setup multiple companies in QuickBooks</a></br><a href="https://waoop.com/read-blog/64943_quickbooks-desktop-2023-everything-you-need-to-know.html">QuickBooks Desktop 2023</a></br>
nikjones
![给他/她发邮件 Email](template/RuiPai/images/email.gif)
2023-5-11 13:28
Thanks for the Nice and Informative Post. This article really contains a lot more information about This Topic. If you need any support for taxes contact our Sage experts for quick help.https://waoop.com/read-blog/68516_in-quickbooks-how-to-setup-multiple-companies.htmlhttps://waoop.com/read-blog/64943_qu...
jameslord
![给他/她发邮件 Email](template/RuiPai/images/email.gif)
![访问他/她的主页 Homepage](template/RuiPai/images/homepage.gif)
2023-5-13 19:14
Online courses have made professional development accessible to a wider audience than ever before. Geographical barriers are removed so that people from different parts of the world can access quality education and training. Additionally, online courses offer unprecedented flexibility, allowing students to hire someone to take my online class and to set their own pace and learn at the time they prefer. This flexibility meets the needs of working professionals and allows them to continue their education or acquire new knowledge without compromising their existing commitments. https://tutemyclass.com/
Do My Online Class
![给他/她发邮件 Email](template/RuiPai/images/email.gif)
![访问他/她的主页 Homepage](template/RuiPai/images/homepage.gif)
2023-5-16 19:22
You have an excellent choice if you want to succeed academically and enjoy your job and do not want to leave it at the same time. You can ask an online tutor to Do My Online Class by hiring them. Hello, My name is Leo Wilson, and I work as an online educator. If you need assistance or have questions regarding a subject that you are having problems comprehending, chat in-depth about it. You can work harder on it to achieve the greatest outcomes.
homework doer
![给他/她发邮件 Email](template/RuiPai/images/email.gif)
![访问他/她的主页 Homepage](template/RuiPai/images/homepage.gif)
2023-5-26 11:43
In order to better assist students in learning how to solve problems using statistics, we have simplified and strategized the homework doer service. They make use of up-to-date and authentic techniques and software in order to simplify statistical analysis. The statisticians who can help you with your homework are highly trained professionals who are familiar with a wide range of statistical issues and applications. In addition, they help students with their statistical projects and dissertations, which typically involve the collection of economic data and the analysis of that data using various kinds of software. Statistics homework help services are known for the personalized support they provide. Tutors can work with students to identify their strengths and weaknesses and provide customized instruction to help them improve.https://www.allassignmenthelp.com/us/online-homework-doer.html
Big chief carts for sale
![给他/她发邮件 Email](template/RuiPai/images/email.gif)
![访问他/她的主页 Homepage](template/RuiPai/images/homepage.gif)
2023-5-26 12:47
Carts-US is committed to promoting responsible vaping practices.They provide education and resources to help customers make informed decisions about vaping, and they strictly adhere to industry regulations and standards to ensure the safety of their products.Big chief carts for sale
jessicaah
![给他/她发邮件 Email](template/RuiPai/images/email.gif)
![访问他/她的主页 Homepage](template/RuiPai/images/homepage.gif)
2023-5-28 11:59
Australian Assignment Help provides assistance to students in assignment in Australia at: https://australian-assignment-help.com
josephsls
![给他/她发邮件 Email](template/RuiPai/images/email.gif)
![访问他/她的主页 Homepage](template/RuiPai/images/homepage.gif)
2023-5-28 12:01
Student Life Saviour provides do my assignment assistance in Ireland to all Irish students at: https://studentlifesaviour.com/ie/do-my-assignment
hydropumps
![给他/她发邮件 Email](template/RuiPai/images/email.gif)
2023-5-30 12:32
Bathmate hydro penis pump
motshabi
![给他/她发邮件 Email](template/RuiPai/images/email.gif)
![访问他/她的主页 Homepage](template/RuiPai/images/homepage.gif)
2023-5-30 16:38
Assignmenthelp.co.za provides assignment help South Africa assistance to students at affordable prices at: https://www.assignmenthelp.co.za
Motshabi
![给他/她发邮件 Email](template/RuiPai/images/email.gif)
![访问他/她的主页 Homepage](template/RuiPai/images/homepage.gif)
2023-5-30 16:40
Assignmenthelp.co.za provides assignment help South Africa assistance to students at affordable prices at: https://www.assignmenthelp.co.za
Jonathan
![给他/她发邮件 Email](template/RuiPai/images/email.gif)
![访问他/她的主页 Homepage](template/RuiPai/images/homepage.gif)
2023-5-31 19:37
AssignmenthelpSingapore.sg is the best provider of assistance to students in Singapore in all subjects including research proposal at:https://www.assignmenthelpsingapore.sg/research-proposal-writing-services
Dehradun Escort
![给他/她发邮件 Email](template/RuiPai/images/email.gif)
![访问他/她的主页 Homepage](template/RuiPai/images/homepage.gif)
2023-6-1 21:25
Our dehradun escorts version does not offer unsafe services, and you should conduct your own investigation into any 'natural' or 'exposed' viruses you may be able to agree upon and disseminate. We are prone to not want to be forced to have an impact on this unsavoury element of the business because we have so many wonderful customers. Our prestigious employer purchases for very prestigious models. You must keep in mind that an escort might show you the simplest moments of your life.
dry poppy flower for sale
![给他/她发邮件 Email](template/RuiPai/images/email.gif)
![访问他/她的主页 Homepage](template/RuiPai/images/homepage.gif)
2023-6-4 19:12
Thank you for sharing your thoughts on this <a href="https://pure-pods.com/product/dried-floral-poppy-pod-heads/">dry poppy flower for sale</a>. I found your post to be insightful and thought-provoking.One point that really stood out to me was your discussion on the importance of empathy in our interactions with others. In today's fast-paced and often impersonal world, it can be all too easy to forget that the people around us are human beings with their own struggles and emotions. Your reminder to approach others with kindness and understanding is a valuable one, and something we could all benefit from remembering.I also appreciated your emphasis on the power of positive thinking. As you noted, our thoughts can have a profound impact on our attitudes and actions. By choosing to focus on the good in our lives, we can cultivate a more positive outlook and ultimately lead happier, more fulfilling lives.Overall, I found your post to be well-written and engaging. Thank you for sharing your perspective on these important topics.
Sapna Pari
![给他/她发邮件 Email](template/RuiPai/images/email.gif)
![访问他/她的主页 Homepage](template/RuiPai/images/homepage.gif)
2023-6-5 19:10
Chamkaur Sahib Escorts :- One of the main reasons Indian guys use our chamkaur-sahib call girls is because of this. We have a distinct advantage over all of our rivals in terms of the quality of the profiles in our pool. One of the main reasons Indian men choose to book escorts from our agency is that no other agencies have been able to match our standing in this area to yet. Our girls will undoubtedly impress you right away, and you'll only meet profiles with us that are worth your time and money. The chamkaur-sahib escorts service is accessible in all desirable and less desirable areas.文字文字chamkaur-sahib escorts
分页: 48/56
43 44 45 46 47 48 49 50 51 52
![第一页 第一页](template/RuiPai/images/arrows/doubleleft.gif)
![上页 上页](template/RuiPai/images/arrows/singleleft.gif)
![下页 下页](template/RuiPai/images/arrows/singleright.gif)
![最后页 最后页](template/RuiPai/images/arrows/doubleright.gif)