🔔 🔔 🔔 Duyuru: 24. Yılımıza özel indirimler sizleri bekliyor ! Kampanya Kodu : TDATA2024 | Detaylı bilgi için tıklayınız.

Monitoring tool for performance of a web server


Monitoring tool for performance of a web server


Httping monitoring tool is like ‘ping’ but for http-requests. Give it an url, and it’ll show you how long it takes to connect, send a request and retrieve the reply (only the headers). Be aware that the transmission across the network also takes time! So it measures the latency of the Webserver + network. It supports, of course, IPv6.

HTTPing is good for when you make changes to your server and want to see what effect those changes had on network performance and latency.

How to install HTTPing

You can install it through yum

yum install httping

or try with rpm repository.

http://pkgs.org/centos-6-rhel-6/repoforge-x86_64/httping-2.0-1.el6.rf.x86_64.rpm.html

install via source.

cd /usr/local/src

http://www.vanheusden.com/httping/httping-2.3.3.tgz

tar -zxvf httping-2.3.3.tgz
cd httping-2.3.3

make install

This will first invoke the 'configure'-script and then build the sources.
You can also run 'configure' manually. Then the following switches apply:
--with-tfo      force enable tcp fast open
--with-ncurses  force enable ncurses
--with-openssl  force enable openssl
--with-fftw3    force enable fftw3

Please note that TCP fast open requires a Linux kernel of version 3.7 or more recent.

'fftw3' support is only usefull if you include the ncurses interface.

Once installation completed, check with help options

root@server1 [~]# httping –help

-g  url         url (e.g. -g http://localhost/)
-h  hostname    hostname (e.g. localhost)
-p  portnr      portnumber (e.g. 80)
-x  host:port   hostname+portnumber of proxyserver
-i  interval    delay between each connect
-G     do a GET request instead of a HEAD request. The  complete  page/file  must be transferred.
-b              show transfer speed in KB/s (use with -G)
- X            show  the amount of data transferred (excluding the headers)
- c              How many probes to send before exiting

Example :

ping your website.

root@server1 [~]# httping -g www.cpanelkb.net
PING www.cpanelkb.net:80 (/):
connected to 206.190.133.182:80 (228 bytes), seq=0 time=17.44 ms
connected to 206.190.133.182:80 (228 bytes), seq=1 time=2.24 ms
connected to 206.190.133.182:80 (228 bytes), seq=2 time=1.55 ms
connected to 206.190.133.182:80 (228 bytes), seq=3 time=1.92 ms
connected to 206.190.133.182:80 (228 bytes), seq=4 time=4.50 ms

Ping a Webserver and Specify a port: ( specify port 80 )

root@server1 [~]#$ httping -c 4 -p 80 -g http://www.cpanelkb.net

PING www.cpanelkb.net:80 (/):
connected to 206.190.133.182:80 (486 bytes), seq=0 time=2.65 ms  0KB/s
connected to 206.190.133.182:80 (486 bytes), seq=1 time=2.54 ms  0KB/s
connected to 206.190.133.182:80 (486 bytes), seq=2 time=1.65 ms  0KB/s
connected to 206.190.133.182:80 (486 bytes), seq=3 time=1.59 ms  0KB/s

Ping a Webserver and request complete page/file:

The capital “G” sends a GET request rather then a HEAD request. By receiving the entire page/file you can measure the throughput of the webserver.

root@server1 [~]# httping -c 4 -p 80 -G -b -g www.cpanelkb.net
PING tamilcreation.com:80 (/):
connected to 206.190.133.182:80 (486 bytes), seq=0 time=2.65 ms  0KB/s
connected to 206.190.133.182:80 (486 bytes), seq=1 time=2.54 ms  0KB/s
connected to 206.190.133.182:80 (486 bytes), seq=2 time=1.65 ms  0KB/s
connected to 206.190.133.182:80 (486 bytes), seq=3 time=1.59 ms  0KB/s
--- http://tamilcreation.com/ ping statistics ---
4 connects, 4 ok, 0.00% failed, time 3009ms
round-trip min/avg/max = 1.6/2.1/2.6 ms
Transfer speed: min/avg/max = 0.000000/0.000000/0.000000 KB

Using httping from Nagios

Nagios is a versatile monitoring package. Very much flexible.

define command{
command_name    check_httping
command_line    /usr/bin/httping -N 2 -c 1 -h $HOSTADDRESS$
}

Bu cevap yeterince yardımcı oldu mu?

Diğer Dökümanlar


  • cPanel security settings checklist

    You always use cpanel recommended Security Settings to avoid hacking and other suspicious activity. These  cPanel Server Hardening & Security tips will help prevent from hacking. cPanel...

  • sendmail Not running with correct effective GID

    Wed Sep 04 04:11:11 2014] [error] [client 11.44.33.22] sendmail: Not running with correct effective GID.  Is sendmail binary setgid mailtrap?, It may be the problem with your sendmail binary...

  • How to enable NAT behind the cpanel ?

    Most of webhosting providers currently used NAT service for their users. When you install cPanel & WHM, the installer will detect whether your server is on a NAT-configured network. If the...

  • Unable to allocate memory for pool

    Warning: Unknown: Unable to allocate memory for pool. in Unknown on line 0 APC or Alternative PHP Cache (APC) is a free and open opcode cache for PHP. APC allows for caching of opcode generated...

  • Install FFmpeg, Mplayer, Mencoder, MP4Box, Flvtool2

    You can use the following tutorial to install ffmpeg and other video modules in your centos server. FFmpeg is an audio/video conversion tool. It includes libavcodec, the leading open source codec...