Use SrvRepor to remotely monitor and manage Linux servers

Source: Internet
Author: User
Article Title: Use SrvRepor to remotely monitor and manage Linux servers. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
When the system administrator is not in the data center, how to monitor and manage the Linux server and fully understand the running status of the Linux Server is a problem that the system administrator must face. There are many methods to achieve remote management and monitoring of Linux servers. Here we mainly introduce the use of Sr
  
VReport is a Linux-specific remote monitoring software that remotely monitors and manages Linux servers.
  
   SrvReport configuration method
  
SrvReport is a powerful Linux Server Remote monitoring software. According to the settings of the Linux system administrator, it regularly sends parameters of the Linux server running status to the specified email box. The mail sent by SrvReport to record the running status of the Linux server, not just in HTML or TXT format. In the HTML file of the email, the column type, high-brightness contrast text, table, and detailed list records are used to classify and record the operating status of the Linux server. By reading HTML emails, the Linux system administrator can easily understand the situation of Linux servers.
  
The installation and configuration of the source code software SrvReport is quite simple. Users can get from http://sourceforge.net/project/showfiles.php? Group_id = 98398 download the SrvRepor package to the latest version. Run the following command to decompress the SrvRepor package:
  
# Tar xzfv srvreport-x.xx.tgz
  
Go to the SrvReport/bin directory and add the srvreport. pl file to the crontab in Linux to ensure regular running of the SrvReport. When editing the bin/srvreport. conf. File, enter the email address specified by the user to receive the report generated by SrvRepor in "mailAddr.
  
In edit bin/srvreport. in the conf file, in addition to entering the specified email box for receiving the report, you also need to modify the bin/srvreport according to the actual situation. in the conf file, such as the HTML report storage address, the report image storage address, and the information items to be recorded in the report.
  
   Reference Configuration
  
To facilitate SrvReport configuration, you can view the configuration list of a complete srvreport. conf file named EXAMPLE. html in the/DOC directory of the software package. The following is a srvreport. conf configuration list configured by the author according to "EXAMPLE. HTML". The variables displayed in bold can be modified based on the actual situation of the Linux server and network.
  
# Configuration File for SrvReport
  
# Receiver er of the mail-report (email address for receiving the srvreport)
  
MailReport = webmaster@myschool.org
  
# Filename for saving the html-report (file name for saving the HTML report)
  
# May contain % YYYY, % MM, % DD, which will be replaced
  
# The apropriate values
  
(% YYYY, % MM, % DD respectively indicate year, month, and day. Generally, srvreport is automatically generated)
  
FileReport = ../web/html/%%yy-%%mm-%%dd.html
  
# Path where the images are located (path of the image file)
  
FileReportImgPath =.../../images/
  
# If you want an up-to-date file, then you shoshould set this to 1
  
(If you need the latest file report, set the values of FileReportCreateAlways and ReportWithTime to 1)
  
FileReportCreateAlways = 1
  
ReportWithTime = 1
  
# This defines the order of the report
  
(Define the services provided by the Linux server to be monitored by srvreport)
  
Order = Traffic CPUUsage WebServer FTPServer
  
FTPLogs Postfix Warnings LastLogins ChkRootKit
  
In addition to modifying the email address and the parameters displayed in bold, most of the default parameters in the configuration list do not need to be modified. Of course, if the user's Linux server does not provide the FTP service, delete the [FTPServer] module of the configuration list.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.