10000 GitHub - dpalic/check_ttfb: Nagios/Icinga Plugin to get website time to first byte using libCURL API interface
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Nagios/Icinga Plugin to get website time to first byte using libCURL API interface

Notifications You must be signed in to change notification settings

dpalic/check_ttfb

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

check_ttfb

Nagios/Icinga Plugin to get website time to first byte (TTFB) using libCURL API interface

Installation

  1. Clone this repository and copy the check_ttfb.pl script to your plugin directory for example

    /usr/lib/nagios/plugins/

  2. Install (if not already present) the build-dependencies for WWW::Curl - debian example:

    apt-get install libcurl4-openssl-dev

  3. Install the WWW::Curl perl module

cpan install WWW::Curl

Usage

check_ttfb.pl <URL> <TTFB_WARN> <TTFB_CRIT>

URL: HTTP/HTTPS website to perform the check on

TTFB_WARN: Issue a WARNING result after the server need this time to sent the first byte, in seconds

TTFB_CRIT: Issue a CRITICAL result after the server need this time to sent the first byte, in seconds

Example

check_ttfb.pl http://example.com 1.2 4.1

This check will issue WARNING if the ttfb is longer than 1.2 seconds and issue CRITICAL if it's longer than 4 seconds.

pnp4nagios screenshot

Assuming this command

check_ttfb.pl http://example.com 0.6 1.5

creates this as output if you use the given nagios-perfdata in tools like pnp4nagios

pnp4nagios screenshot

About

Nagios/Icinga Plugin to get website time to first byte using libCURL API interface

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Perl 100.0%
0