Use SrvRepor to remotely monitor and manage Linux servers

Source: Internet
Author: User

When the system administrator is not in the data center, how can he continue to monitor and manage the Linux server and understand the running status of the Linux server. There are many ways to achieve remote management and monitoring of Linux servers. Here we mainly introduce the use of SrvReport, a Linux-specific remote monitoring software, to remotely monitor and manage 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 # recipient 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 with # the apropriate values % YYYY, % MM, % DD indicate year, month, and day respectively. It is generally automatically generated by srvreport) FileReport = .. /web/html/%%yyyy-%mm-%%dd.html # path where the images are the path to the located 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, you can set the values of FileReportCreateAlways and ReportWithTime to 1) FileReportCreateAlways = 1 ReportWithTime = 1 # This defines the order of the report defines the services provided by the Linux server to be monitored by the srvreport) order = Traffic CPUUsage WebServer FTPServerFTPLogs 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. (T004) [# page _ #] [# page _ #] 3) taclast-f utmpfile can be used to view the specified accounting file.

4) taclast-t username to view the cumulative usage of a specific user

The preceding parameters can also be used in combination.

Tacupd can increase or decrease a specific user record in the accounting file. Of course, the Xtacacsd system has other functions, which will not be described here.

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.