Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install nagios.responsetime

How to install nagios.responsetime

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install nagios.responsetime
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
1.0.3
1.0.4Never BuiltWhy not?
1.0.3 Available View build log
1.0.2 Available View build log
1.0.1 Available View build log
1.0 Available View build log
1.0rc1 Available View build log
Windows (64-bit)
1.0.3
1.0.4Never BuiltWhy not?
1.0.3 Available View build log
1.0.2 Available View build log
1.0.1 Available View build log
1.0 Available View build log
1.0rc1 Available View build log
Mac OS X (10.5+)
1.0.3
1.0.4Never BuiltWhy not?
1.0.3 Available View build log
1.0.2 Available View build log
1.0.1 Available View build log
1.0 Available View build log
1.0rc1 Available View build log
Linux (32-bit)
1.0.3
1.0.4Never BuiltWhy not?
1.0.3 Available View build log
1.0.2 Available View build log
1.0.1 Available View build log
1.0 Available View build log
1.0rc1 Available View build log
Linux (64-bit)
1.0.4 Available View build log
1.0.3 Available View build log
1.0.2 Available View build log
1.0.1 Available View build log
1.0 Available View build log
1.0rc1 Available View build log
 
Author
License
ZPL 2.1
Lastest release
version 1.0.4 on Jan 9th, 2014

A Nagios plugin that collects response times from logs.

Usage: check_responsetime --logfile /path/to/logfile

The plugin remembers the timestamp of the latest log entry it has seen on each run, and on the next run only considers log entries that are more recent.

Log format

The supported log format is as follows:

<timestamp> "<http-verb> <path> <http-version>" <responsetime>
  • timestamp: %d/%b/%Y:%H:%M:%S %z
  • http-verb: GET, POST
  • path: the requested URL path
  • http-version: e.g. HTTP/1.1
  • responsetime in seconds, e. g. 0.5

Example:

17/May/2011:14:11:18 +0200 "GET /index.html HTTP/1.1" 0.289

An example configuration for the nginx server looks like this:

http {
    log_format timing '$time_local "$request" $upstream_response_time';

    server {
        access_log /path/to/timing.log timing;
    }
}

Future directions

One obvious additional feature is the ability to define thresholds (e.g. "a mean responsetime above 3 seconds is WARN, above 5 CRITICAL")

Development

The source code is available in the mercurial repository at https://code.gocept.com/hg/public/nagios.responsetime

Please report any bugs you find to Wolfgang Schnerring.

Changes
1.0.4 (2012-12-07)
  • Explicitly declare our dependency on nagiosplugin < 0.5
  • Fix API incompatibility in test suite.
1.0.3 (2011-12-08)
  • If no records are availble for this check period, return empty performance values (all zero) to avoid UNKNOWN state that is only noise.
1.0.2 (2011-11-14)
  • Fixed divide by zero bug when there is only a single entry (#9332).
1.0.1 (2011-09-04)
  • Fixed bug when there are no log entries for the current interval (#9332).
1.0 (2011-07-01)
  • Fixed bug with incomplete log file lines ("invalid literal for float(): -").
1.0rc1 (2011-06-10)
  • First release.

Subscribe to package updates

Last updated Jan 9th, 2014

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.