From: Russ Allbery Date: Wed, 8 Dec 2010 19:38:24 +0000 (-0800) Subject: Imported Upstream version 2.1 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=52c4431db0a544f99c8bbb54e7f2c6f945f571b8;p=packages%2Fa%2Fafs-monitor.git Imported Upstream version 2.1 --- diff --git a/NEWS b/NEWS index 66e8f57..48073dc 100644 --- a/NEWS +++ b/NEWS @@ -1,5 +1,10 @@ User-Visible afs-monitor Changes +afs-monitor 2.1 (2010-12-08) + + Fix a bug in check_afs_space introduced in the previous release with + checking all partitions on a particular server. + afs-monitor 2.0 (2010-12-07) Initial tarball release, based on check_afsspace 1.16, check_bos 1.7, diff --git a/README b/README index 957e00b..34e1617 100644 --- a/README +++ b/README @@ -1,4 +1,4 @@ - afs-monitor release 2.0 + afs-monitor release 2.1 (Nagios-compatible probes to monitor AFS servers) Maintained by Russ Allbery @@ -99,6 +99,13 @@ INSTALLATION arguments to the command in the service check definition using $ARG1$ and so forth. + The scripts all have default timeouts and check_afs_space and + check_afs_rxdebug have default thresholds that you may want to change. + You may also want to look at the regexes for acceptable bos status lines + in check_afs_bos; for example, if you want to get a warning whenever + your file server has a core file, you will want to modify the regex to + not filter that out. + HOMEPAGE AND SOURCE REPOSITORY The afs-monitor web page at: diff --git a/TODO b/TODO new file mode 100644 index 0000000..11962ab --- /dev/null +++ b/TODO @@ -0,0 +1,10 @@ + afs-monitor To-Do List + +Nagios standards: + + * Add support for the -v option to each script, providing more verbose + output. + + * Fix the usage message for invalid options to follow Nagios standards. + + * Fix the output from the -h option to follow Nagios standards. diff --git a/check_afs_bos b/check_afs_bos index 78291c8..2195c75 100755 --- a/check_afs_bos +++ b/check_afs_bos @@ -1,5 +1,5 @@ #!/usr/bin/perl -w -our $VERSION = '2.0 (2010-12-07)'; +our $VERSION = '2.1 (2010-12-08)'; # # check_afs_bos -- Monitor AFS bos output for problems in Nagios. # diff --git a/check_afs_quotas b/check_afs_quotas index 062a0c4..0ef8bfe 100755 --- a/check_afs_quotas +++ b/check_afs_quotas @@ -1,5 +1,5 @@ #!/usr/bin/perl -w -our $VERSION = '2.0 (2010-12-07)'; +our $VERSION = '2.1 (2010-12-08)'; # # check afs_quotas -- Monitor AFS quota usage under Nagios. # diff --git a/check_afs_rxdebug b/check_afs_rxdebug index cb0e625..d7f333a 100755 --- a/check_afs_rxdebug +++ b/check_afs_rxdebug @@ -1,5 +1,5 @@ #!/usr/bin/perl -w -our $VERSION = '2.0 (2010-12-07)'; +our $VERSION = '2.1 (2010-12-08)'; # # check_afs_rxdebug -- Nagios AFS server check for waiting connections. # diff --git a/check_afs_space b/check_afs_space index 922ed03..091a8ee 100755 --- a/check_afs_space +++ b/check_afs_space @@ -1,5 +1,5 @@ #!/usr/bin/perl -w -our $VERSION = '2.0 (2010-12-07)'; +our $VERSION = '2.1 (2010-12-08)'; # # check_afs_space -- Monitor AFS disk space usage under Nagios. # @@ -112,7 +112,7 @@ if ($? != 0) { print "AFS CRITICAL - cannot contact server\n"; exit 2; } -$partition .= ':'; +$partition .= ':' if defined $partition; for (@data) { my ($part, $free, $total) = (split)[4,5,11]; next if (defined ($partition) and $part ne $partition); diff --git a/check_afs_udebug b/check_afs_udebug index f908907..11928b3 100755 --- a/check_afs_udebug +++ b/check_afs_udebug @@ -1,5 +1,5 @@ #!/usr/bin/perl -w -our $VERSION = '2.0 (2010-12-07)'; +our $VERSION = '2.1 (2010-12-08)'; # # check_afs_udebug -- Check AFS database servers using udebug for Nagios. #