LoginHelp/GuideAbout TracPreferences
WikiTimelineRoadmapBrowse SourceView TicketsNew TicketSearchDownloads

Ignore:
Timestamp:
03/20/2008 03:02:29 PM (6 years ago)
Author:
corti
Message:

ePN compatibility (closes #27)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • check_afs_rpc/check_afs_rpc

    r872 r981  
    2828use Carp; 
    2929 
    30 use version; our $VERSION = '1.0.0'; 
     30use version; our $VERSION = '1.0.1'; 
    3131 
    3232use English qw(-no_match_vars); 
     
    241241 
    2422421; 
    243  
    244 __END__ 
    245  
    246 =head1 NAME 
    247  
    248 check_afs_rpc - Check AFS servers for blocked connections in Nagios 
    249  
    250 =head1 DESCRIPTION 
    251  
    252 check_afs_rpc is a Nagios plugin to check AFS servers for blocked 
    253 connections in Nagios 
    254  
    255 =head1 VERSION 
    256  
    257 Version 1.0.0 
    258  
    259 =head1 SYNOPSIS 
    260  
    261  check_rxdebug [OPTIONS] --hostname hostname 
    262  
    263  Mandatory arguments: 
    264   --hostname,-H   hostname   name of the AFS server 
    265  
    266  Options: 
    267   --critical,-c   critical   specify the critical number of blocked 
    268                              connections (default 8) 
    269   --help,-h,-?               usage info 
    270   --port,p        port       connection port (default 7000) 
    271   --version,V                print version number 
    272   --warning,-w    warning    specify warning threshold for the number 
    273                              blocked connections (default 2) 
    274  
    275 =head1 REQUIRED ARGUMENTS 
    276  
    277 --hostname,-H   hostname   name of the AFS server 
    278  
    279 =head1 OPTIONS 
    280  
    281 --critical,-c   critical   specify the critical number of blocked 
    282                            connections (default 8) 
    283  
    284 --help,-h,-?               usage info 
    285  
    286 --port,p        port       connection port (default 7000) 
    287  
    288 --version,V                print version number 
    289  
    290 --warning,-w    warning    specify warning threshold for the number 
    291                            blocked connections (default 2) 
    292  
    293 =head1 EXAMPLE 
    294  
    295 check_afs_rpc \ 
    296   --hostname my_afs_server.example.com \ 
    297   --port 7004 \ 
    298   --warning 10 \ 
    299   --critical 20 
    300  
    301 =head1 DESCRIPTION 
    302  
    303 B<check_afs_rpc> is a Nagios plugin for checking AFS file servers to see if 
    304 there are client connections waiting for a free thread.  If there are more 
    305 than a few of these, AFS performance tends to be very slow; this is a fairly 
    306 reliable way to catch overloaded file servers.  By default, B<check_rxdebug> 
    307 returns a critical error if there are more than eight connections waiting 
    308 for a free thread and a warning if there are more than two.  These 
    309 thresholds can be changed with the B<--critical> and B<--warning> options. 
    310  
    311 B<check_afs_rpc> will always print out a single line of output including the 
    312 number of blocked connections, displaying whether this is critical, a 
    313 warning, or okay. 
    314  
    315 =head1 EXIT STATUS 
    316  
    317 B<check_afs_rpc> follows the standard Nagios exit status requirements. 
    318 This means that it will exit with status 0 if there are no problems, 
    319 with status 1 if there is a warning, and with status 2 if there is a 
    320 critical problem.  For other errors, such as invalid syntax, 
    321 B<check_afs_rpc> will exit with status 3. 
    322  
    323 =head1 BUGS AND LIMITATIONS 
    324  
    325 The standard B<-v> verbose Nagios plugin option is not supported, although 
    326 it's not entirely clear what it would add. 
    327  
    328 The usage message for invalid options and for the B<-h> option doesn't 
    329 conform to Nagios standards. 
    330  
    331 =head1 SEE ALSO 
    332  
    333 Nagios documentation 
    334  
    335 =head1 AUTHOR 
    336  
    337 Matteo Corti <matteo.corti@id.ethz.ch> 
    338  
    339 =head1 LICENSE AND COPYRIGHT 
    340  
    341 Copyright (c) 2007, ETH Zurich. 
    342  
    343 This module is free software; you can redistribute it and/or modify it 
    344 under the terms of GNU general public license (gpl) version 3. 
    345 See the LICENSE file for details. 
    346  
    347 =head1 DISCLAIMER OF WARRANTY 
    348  
    349 BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 
    350 FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT 
    351 WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER 
    352 PARTIES PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, 
    353 EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE 
    354 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 
    355 PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE 
    356 SOFTWARE IS WITH YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME 
    357 THE COST OF ALL NECESSARY SERVICING, REPAIR, OR CORRECTION. 
    358  
    359 IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 
    360 WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 
    361 REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENCE, BE LIABLE 
    362 TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, OR 
    363 CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE 
    364 SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING 
    365 RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A 
    366 FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF 
    367 SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH 
    368 DAMAGES. 
    369  
    370 =head1 ACKNOWLEDGMENTS 
    371  
    372 The original idea behind this script was from Neil Crellin.  It was updated 
    373 by Quanah Gibson-Mount to work with Nagios, and then further updated by Russ 
    374 Allbery <rra@stanford.edu> to support more standard options and to use a 
    375 more uniform coding style. 
    376  
    377 The script was then rewritten by Matteo Corti to be compatible with 
    378 embedded Perl, to allow the specification of a different port and to 
    379 integrate it with the Nagios::Plugin modules. 
Note: See TracChangeset for help on using the changeset viewer.
 

Wichtiger Hinweis:
Diese Website wird in älteren Versionen von Netscape ohne graphische Elemente dargestellt. Die Funktionalität der Website ist aber trotzdem gewährleistet. Wenn Sie diese Website regelmässig benutzen, empfehlen wir Ihnen, auf Ihrem Computer einen aktuellen Browser zu installieren. Weitere Informationen finden Sie auf
folgender Seite.

Important Note:
The content in this site is accessible to any browser or Internet device, however, some graphics will display correctly only in the newer versions of Netscape. To get the most out of our site we suggest you upgrade to the newer browser.
More information

 
© 2005 ETH Zürich | Imprint | 26.09.2007 | Version 0.12
top