Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19
server monitering
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
    Posts
    882
    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:

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

    Code:
    #!/usr/bin/perl
    
    
        &main();
    
    
    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");
      }
      else{
            print("OK\n");
      }
    
    }

    My sites:
    To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
    -
    To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

  3. #3
    Hi,
    I use MRTG on my server. It can tell you a lot of different info about the server and traffic. link http://oss.oetiker.ch/mrtg/

  4. #4
    Nagios
    arrogance breeds ignorance


    To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

  5. #5
    Zabbix also.

    To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


    To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


    To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

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

Bookmarks

Posting Permissions

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