Results 1 to 5 of 5

Thread: server monitering

  1. #1

    Wink server monitering

    hi friends,
    i have installed redhat Centos 4.2 on my server.Apache server is

    installed on this.I am using php and mysql in this server.files are

    continuously uploaded and downloaded with this server.

    Is there a group of commands which are helpful to monitor the server

    performance.I want to monitor this sever regularly.
    will you please help me in this problem?

  2. #2
    Administrator Advisor peter's Avatar
    Join Date
    Apr 2004
    The Tutorial section of the site has a simple web site monitoring script that you can use. I modified it to create a script that prints out to the screen when the load average of the server gets over the value presented by the first command line argument.

    You can modify it to do email alerting, or even check other measurements on the server.

    Here is how it's used, looking for a threshold of 0.05:

    [root@server tmp]# ./ 0.05
    Too Much Load! 1min: 0.05, 5min: 0.01, 15min: 0.00
    [root@server tmp]#
    Here is the script:

    sub main {
      # Set variables
      my $uptime_command            = "/usr/bin/uptime";
      my $uptime_results            = "";
      my $load_average_1min         = 0;
      my $load_average_5min         = 0;
      my $load_average_15min        = 0;
      my $unneeded_variables        = "";
      my $needed_variables          = "";
      my $load_threshold            = $ARGV[0];;
      # Get uptime
      $uptime_results = `$uptime_command`;
      ($uneeded_variables, $needed_variables) = split(/\: /,$uptime_results);
      ($load_average_1min, $load_average_5min, $load_average_15min) = split(/ /,$needed_variables);
      if(($load_average_1min || $load_average_5min || $load_average_15min) >= $load_threshold) {
            print("Too Much Load! 1min: $load_average_1min 5min: $load_average_5min 15min: $load_average_15min\n");

  3. #3
    I use MRTG on my server. It can tell you a lot of different info about the server and traffic. link

  4. #4
    arrogance breeds ignorance

    Screaming Electron, Full of BSD Goodness

  5. #5
    Zabbix also.

Similar Threads

  1. How To Make A Dedicated File Server Or Web Server
    By beezlebubsbum in forum Linux - General Topics
    Replies: 11
    Last Post: 02-22-2009, 01:12 AM
  2. Moving a server to another part of network and still keeping it as a server
    By paolopunzalan in forum Linux - Hardware, Networking & Security
    Replies: 2
    Last Post: 07-29-2007, 09:38 AM
  3. server monitering
    By pankajkarde in forum Redhat / Fedora
    Replies: 2
    Last Post: 01-17-2007, 10:24 AM
  4. ISA Server on Windows Server 2003
    By regix in forum Windows - General Topics
    Replies: 0
    Last Post: 01-01-2005, 09:49 PM
  5. Use Cluster Server to create a virtual server
    By regix in forum Windows - General Topics
    Replies: 0
    Last Post: 01-01-2005, 09:08 PM


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts