Russ Allbery [Wed, 9 Nov 2005 20:43:04 +0000 (20:43 +0000)]
rxdebug -noconn tells us how many waiting connections there are; there's
no need to parse the whole output and study it. Also, it's helpful to
look for waiting connections to the file server, rather than waiting
connections to the local cache manager (doh). Lower the warning threshold
to two from four while we're at it.
Russ Allbery [Thu, 25 Mar 2004 00:55:18 +0000 (00:55 +0000)]
Completely rewritten to avoid keeping any state. The monitor now checks
all of the output from bos status against a set of known-okay regexes and
throws an alert if there's any line in the bos output that isn't okay.
This means that this check will no longer catch a server restart that
successfully completed before the probe ran, but on the plus side it also
won't throw additional errors when the file server has come back up (since
the correct output is still different than the old incorrect output).
Also redid the coding style, added real option parsing, required the
standard Nagios -H option, and added full documentation.
Russ Allbery [Wed, 24 Mar 2004 23:56:49 +0000 (23:56 +0000)]
Extensively reworked to do regular option parsing, support -h and -V
options, support configuration of the critical and warning levels, support
a timeout value, provide a bit of information for okay results, and add
complete documentation.
Russ Allbery [Wed, 24 Mar 2004 20:10:12 +0000 (20:10 +0000)]
Reorganized extensively, simplified the code a little bit, simplified and
shortened the output since Nagios will add the relevant host information
itself on errors, added full documentation, added better options parsing,
and made the output and options comply better with the Nagios plugin
standards. Added a timeout option.
Russ Allbery [Fri, 13 Feb 2004 01:08:27 +0000 (01:08 +0000)]
Don't use -allconn -rxstats. We aren't paying any attention to the
statistics, just the mode of the connection, and -allconn just adds in the
(thousands of) idle connections. Let's assume that an idle connection
can't also be blocked.