Code

nagiosplug.git
14 years agoFix Debian bug #479984: Allow empty LDAP base
Holger Weiss [Sun, 11 Apr 2010 09:28:02 +0000 (11:28 +0200)]
Fix Debian bug #479984: Allow empty LDAP base

The check_ldap plugin did not allow for specifying an empty LDAP base.

See: http://bugs.debian.org/479984

(Fixed by Stephane Chazelas, forwarded by Jan Wagner.)

14 years agoFix Debian bug #460097: check_http -M broken
Holger Weiss [Sun, 11 Apr 2010 09:05:49 +0000 (11:05 +0200)]
Fix Debian bug #460097: check_http -M broken

See: http://bugs.debian.org/460097

One instance of this bug has already been fixed in commit
888358122004b9571c8fbdfa52ceee1ba5e5f4f2.

(Fixed by Hilko Bengen, forwarded by Jan Wagner.)

14 years agoFix Debian bug #478942: Fragile argument passing
Holger Weiss [Sun, 11 Apr 2010 08:54:44 +0000 (10:54 +0200)]
Fix Debian bug #478942: Fragile argument passing

Fix some problems regarding the way check_disk_smb passes command line
arguments to smbclient(1).

| It runs:
|
|  $res = qx/$smbclient "\/\/$host\/$share" $pass -W $workgroup \
|         -U $user $smbclientoptions -I $address -c ls/;
|
| [...]
|
| The documentation says that if the password is not passed, it
| defaults to "".  That is not true above, as $pass expands to
| nothing which leaves no argument at all (instead of an empty
| argument) so is different from providing with an empty password
| or with the -N option.
|
| Also, if the password starts with "-", you're in trouble, that's
| why -U $user%$pass may be prefered.
|
| Also, the doc says that if $user is not provided, then it
| defaults to "guest" but the problem is that if it is provided
| but empty, it is changed to "guest" as well, which prevents us
| from querying hosts that don't do user authentication.

[ http://bugs.debian.org/478942 ]

(Fixed by Stephane Chazelas, forwarded by Jan Wagner.)

14 years agoFix Debian bug #478906: Failure when run via ePN
Holger Weiss [Sun, 11 Apr 2010 07:54:10 +0000 (09:54 +0200)]
Fix Debian bug #478906: Failure when run via ePN

| When perl plugin scripts are run with the embedded perl interpreter in
| nagios3, the "shift" perl command doesn't shift @ARGV, but @_ (which
| happens to contain the same thing as @ARGV at the time the script was
| started).
|
| [...]
|
| A fix is to replace all the instances of "shift" with "shift @ARGV".

[ http://bugs.debian.org/478906 ]

(Fixed by Stephane Chazelas, forwarded by Jan Wagner.)

14 years agoFix Debian bug #463322: Use deprecated libldap API
Holger Weiss [Sun, 11 Apr 2010 07:51:21 +0000 (09:51 +0200)]
Fix Debian bug #463322: Use deprecated libldap API

| Our automated build log filter[1] detected a problem that is likely to
| cause your package to segfault on architectures where the size of a
| pointer is greater than the size of an integer, such as ia64 and
| amd64.
|
| This is often due to a missing function prototype definition.  For
| more information, see [2].
|
|  Function `ldap_init' implicitly converted to pointer at
|  check_ldap.c:124
|
| [1] http://people.debian.org/~dannf/check-implicit-pointer-functions
| [2] http://wiki.debian.org/ImplicitPointerConversions
|
| The libldap API has been updated and many functions used by the ldap
| plugin are now deprecated.  This package should either update to the
| new API or define LDAP_DEPRECATED to continue using the deprecated
| interfaces.
|
| This patch implements the lazy solution.

[ http://bugs.debian.org/463322 ]

(Contributed by Dann Frazier, forwarded by Jan Wagner.)

14 years agoFix Debian bug #425129: SMB guest mode won't work
Holger Weiss [Sun, 11 Apr 2010 07:39:24 +0000 (09:39 +0200)]
Fix Debian bug #425129: SMB guest mode won't work

| The check_disk_smb plugin purports to support guest users, but it
| doesn't work out, because it doesn't specify the -N command line
| option to smbclient when no password is specified, making smbclient
| stop and ask.

[ http://bugs.debian.org/425129 ]

(Fixed by Josip Rodin, forwarded by Jan Wagner.)

14 years agoFix Debian bug #307905: Incorrect usage output
Holger Weiss [Sun, 11 Apr 2010 06:45:16 +0000 (08:45 +0200)]
Fix Debian bug #307905: Incorrect usage output

The usage output of check_game was wrong, see:

http://bugs.debian.org/307905

(Fixed by Sean Finney, forwarded by Jan Wagner.)

14 years agocheck_disk_smb: Allow for specifying an IP address
Holger Weiss [Sat, 10 Apr 2010 23:57:11 +0000 (01:57 +0200)]
check_disk_smb: Allow for specifying an IP address

Add the "-a, --address option" which allows for specifying the IP
address of the server to connect to.  If this option is used, the IP
address will be handed over to smbclient(1)'s "-I" option.  (Contributed
by Sean Finney, forwarded by Jan Wagner.)

14 years agocheck_http: Add warning about SNI not enabled by default anymore
Thomas Guyot-Sionnest [Tue, 6 Apr 2010 14:17:45 +0000 (10:17 -0400)]
check_http: Add warning about SNI not enabled by default anymore

14 years agoFix regression in check_http ssl checks on some servers
Thomas Guyot-Sionnest [Tue, 6 Apr 2010 01:06:22 +0000 (21:06 -0400)]
Fix regression in check_http ssl checks on some servers

The fix is making SNI an option.

14 years agocheck_snmp: Update last patch to copy value verbatim
Thomas Guyot-Sionnest [Wed, 31 Mar 2010 06:45:45 +0000 (02:45 -0400)]
check_snmp: Update last patch to copy value verbatim

Rework last patch, copying the converted portion of the string rather
than re-converting it. This is safer for backwards-compatibility as the
value is never modified.

14 years agocheck_snmp: Fix regression introduced in #1867716
Thomas Guyot-Sionnest [Wed, 31 Mar 2010 02:31:20 +0000 (22:31 -0400)]
check_snmp: Fix regression introduced in #1867716

Bug #1867716 fixed what it meant to fix: broken perfdata strings.
Unfortunately some users relied on half-broken perfdata string where at
least the first token was OK. This patch do a two-way conversion
(string to double then back to string) instead and use the conversion
result for the performance data.

A possible caveat is that the string may change where it normally
shouldn't but the result should be somewhat similar.

14 years agoFix compilation with GCC 2.96 (Konstantin Khomoutov - #2977105)
Thomas Guyot-Sionnest [Sat, 27 Mar 2010 04:13:38 +0000 (00:13 -0400)]
Fix compilation with GCC 2.96 (Konstantin Khomoutov - #2977105)

14 years agoLet check_ntp_peer check the number of truechimers
Holger Weiss [Wed, 17 Mar 2010 23:34:14 +0000 (00:34 +0100)]
Let check_ntp_peer check the number of truechimers

Add support for checking the number of usable time sources (i.e., the
number of peers which are classified as so-called "truechimers" by NTP's
intersection algorithm).  The new "-m" and "-n" options allow for
specifying the according WARNING and CRITICAL thresholds (and thereby
activating the truechimers check), respectively.

14 years agoTypo in NEWS
Thomas Guyot-Sionnest [Tue, 16 Mar 2010 07:41:05 +0000 (03:41 -0400)]
Typo in NEWS

14 years agoCorrected example
Ton Voon [Mon, 15 Mar 2010 19:44:25 +0000 (19:44 +0000)]
Corrected example

14 years agoFix memory leak in check_http for large pages (Jimmy Bergman - #2957455)
Ton Voon [Fri, 26 Feb 2010 12:47:38 +0000 (12:47 +0000)]
Fix memory leak in check_http for large pages (Jimmy Bergman - #2957455)

14 years agogit-notify: Pipe e-mails directly to sendmail(8)
Holger Weiss [Mon, 7 Dec 2009 00:58:21 +0000 (01:58 +0100)]
git-notify: Pipe e-mails directly to sendmail(8)

Use sendmail(8) instead of mail(1) in order to be able to set the
"Content-Type" header field on systems where the available mail(1)
command doesn't allow for setting it.  This makes the "-H" flag (cf.
commit 71350c5a) unnecessary.

14 years agoEnable CIA's commit notifications
Holger Weiss [Sun, 6 Dec 2009 00:23:41 +0000 (01:23 +0100)]
Enable CIA's commit notifications

We now use CIA's service to send commit notifications to IRC.  They are
currently sent to the #Nagios-Devel channel on Freenode.  See:

http://cia.vc/stats/project/nagiosplug/
http://cia.vc/account/bots/15699/

14 years agoDetect arguments passed via --with-ping[6]-command (#2908236)
Thomas Guyot-Sionnest [Fri, 4 Dec 2009 20:24:15 +0000 (15:24 -0500)]
Detect arguments passed via --with-ping[6]-command (#2908236)

14 years agoWhitespace fixes
Thomas Guyot-Sionnest [Fri, 4 Dec 2009 20:05:55 +0000 (15:05 -0500)]
Whitespace fixes

14 years agoFix short help using "warn" for the -f option instead of "warning" (onredirect).
Thomas Guyot-Sionnest [Thu, 3 Dec 2009 02:24:09 +0000 (21:24 -0500)]
Fix short help using "warn" for the -f option instead of "warning" (onredirect).

14 years agoUpdated link to sfsnapshotgit
Ton Voon [Thu, 19 Nov 2009 21:55:18 +0000 (21:55 +0000)]
Updated link to sfsnapshotgit

14 years agoUpdate developer guideline regarding CVS Commits
Thomas Guyot-Sionnest [Wed, 18 Nov 2009 12:25:52 +0000 (07:25 -0500)]
Update developer guideline regarding CVS Commits
(mostly for testing my snapshot script, though it had to be updated anyway)

14 years agoFix fetching of remote branches
Thomas Guyot-Sionnest [Wed, 11 Nov 2009 14:53:35 +0000 (09:53 -0500)]
Fix fetching of remote branches

14 years agoMany fixes to snapshot scripts
dermoth [Wed, 11 Nov 2009 10:23:57 +0000 (10:23 +0000)]
Many fixes to snapshot scripts

sfsnapshotgit:
  - Use fetch/reset instead to pull to avoid merges on forced updates

sfsnapshot-upload:
  - Fix link deletion walking the entire home dir
- Allow CLEAN_TIME=0 (no retention)
- Re-add per-branch links when CLEAN_TIME > 0
- Add many comments

14 years agoGit commit notifications via post-receive hook
Holger Weiss [Sat, 7 Nov 2009 09:40:22 +0000 (10:40 +0100)]
Git commit notifications via post-receive hook

Now that we moved our Git repositories to SourceForge, we don't need to
maintain local clones for generating commit notifications anymore, as
SourceForge provides shell access to the repositories.  Instead, we now
run git-notify as a post-receive hook on the SourceForge server.
Actually, we use a wrapper which executes git-notify with the desired
options and which makes it easy to add other post-receive hooks in the
future.

14 years agogit-notify: Support SourceForge repositories
Holger Weiss [Sat, 7 Nov 2009 09:40:22 +0000 (10:40 +0100)]
git-notify: Support SourceForge repositories

The Gitweb URLs for repositories hosted by SourceForge are slightly
different than other Gitweb URLs.  The correct URL cannot be specified
via "-u" if we append "/$repos_name.git/?" to that URL as we usually do.
If the new "-S" flag is specified or "notify.sourceforge" is set, we'll
append "/$repos_name;" instead, which makes the "-u" option usable for
SourceForge repositories.

14 years agogit-notify: Optionally call mail(1) without "-a"
Holger Weiss [Sat, 7 Nov 2009 09:40:22 +0000 (10:40 +0100)]
git-notify: Optionally call mail(1) without "-a"

Not all mail(1) implementations support specifying additional header
fields via "-a": with some, this flag is used for attaching files,
others don't provide an "-a" flag at all (this is true for the /bin/mail
utility currently installed on the SourceForge servers, for example).
We now provide the "-H" flag and the "notify.legacyMail" configuration
key for these cases.

14 years agogit-notify: Polish up the "tag notifications"
Holger Weiss [Sat, 7 Nov 2009 09:40:22 +0000 (10:40 +0100)]
git-notify: Polish up the "tag notifications"

Use better labels for the tag ref and the SHA1 name of the tag object.

14 years agogit-notify: Distinguish between tag types
Holger Weiss [Sat, 7 Nov 2009 09:40:22 +0000 (10:40 +0100)]
git-notify: Distinguish between tag types

Distinguish between annotated tags and lightweight tags.  In the former
case, send an annotated "tag notification", in the latter case, send a
"ref change notification" (as we did in both cases before).

14 years agogit-notify: Fix "global" notifications
Holger Weiss [Sat, 7 Nov 2009 09:40:00 +0000 (10:40 +0100)]
git-notify: Fix "global" notifications

If the number of commits included with a single push exceeds the maximum
specified via "-n", a single notification will be generated instead of
individual e-mails.  For listing the commits within such a notification,
git-rev-list(1)'s "--pretty" option is used.  This yields output which
the git_rev_list() subroutine didn't accept.  That's now fixed.

14 years agogit-notify: Optionally [tag] the subject
Holger Weiss [Sat, 7 Nov 2009 01:23:32 +0000 (02:23 +0100)]
git-notify: Optionally [tag] the subject

If the new "-T" option is specified or "notify.emitRepository" is set,
the subject of e-mail notifications will be prefixed with [<tag>], where
<tag> is the name of the updated repository.

14 years agogit-notify: Optionally omit the author name
Holger Weiss [Sat, 7 Nov 2009 01:23:32 +0000 (02:23 +0100)]
git-notify: Optionally omit the author name

If the new "-A" option is specified (or "notify.omitAuthor" is set), the
author name will be omitted from the subject of e-mail notifications.

14 years agogit-notify: Make abbreviating Gitweb URLs optional
Holger Weiss [Sat, 7 Nov 2009 01:23:32 +0000 (02:23 +0100)]
git-notify: Make abbreviating Gitweb URLs optional

The SHA1 object name part of Gitweb URLs is now only shortened if the
user requested this by specifying the new "-z" option (or by setting
"notify.shortURLs").

While at it, also shorten the additional URL which references a diff in
e-mail notifications which don't include that diff inline because its
size exceeds the maximum number of bytes specified via "-s".

Note that while the abbreviated SHA1 object names will be unique at push
time, this cannot be guaranteed for the future, so the shortened URLs
might break some day.

14 years agogit-notify: Make showing the committer optional
Holger Weiss [Sat, 7 Nov 2009 01:23:32 +0000 (02:23 +0100)]
git-notify: Make showing the committer optional

Only the author's name and address will now be mentioned in a commit
notification by default.  However, if the "-C" option is specified (or
"notify.showCommitter" is set), the committer's name and address will
also be included in the notification if the committer is not the author
of the commit (as we previously did by default).

14 years agogit-notify: Make using a state file optional
Holger Weiss [Sat, 7 Nov 2009 01:23:32 +0000 (02:23 +0100)]
git-notify: Make using a state file optional

Making use of a state file in order to prevent duplicate notifications
is now optional.  The user must explicitly specify a file path via the
"-t" option or by setting the git-config(1) variable "notify.statefile"
to activate this functionality.

14 years agogit-notify: Don't abort if mail(1) exits non-zero
Holger Weiss [Sat, 7 Nov 2009 01:23:32 +0000 (02:23 +0100)]
git-notify: Don't abort if mail(1) exits non-zero

As nothing in git-notify depends on the success of the mail(1) call,
don't abort if it fails, just spit out a warning.

14 years agogit-notify: Drop the $sent_notices variable
Holger Weiss [Sat, 7 Nov 2009 01:23:32 +0000 (02:23 +0100)]
git-notify: Drop the $sent_notices variable

Now that we don't ignore empty commits anymore, there's no need to keep
track of the number of commits actually notified about, as that will
always be equal to the number of commits returned by get_new_commits().

14 years agoRevert "git-notify: Ignore `empty' commits"
Holger Weiss [Sat, 7 Nov 2009 01:23:32 +0000 (02:23 +0100)]
Revert "git-notify: Ignore `empty' commits"

This reverts commit db63fbfa036f5cd757aedf4547fef9e195a8c285, as it is
no longer needed and we'd like to keep the diff against the git-notify
version maintained by the Wine people as small as possible.  The purpose
of db63fbfa was to suppress notifications on empty merge commits, which
can now be requested directly by specifying git-notify's "-X" option.
(Our change was implemented before the "-X" option was available, even
though the Git history suggests otherwise.)

Conflicts:

tools/git-notify

14 years agoRevert "git-notify: Remove unused [...] code"
Holger Weiss [Sat, 7 Nov 2009 01:11:52 +0000 (02:11 +0100)]
Revert "git-notify: Remove unused [...] code"

This reverts commit 5445b9769f254781e482062bacc6603a5cd63059.  Alexandre
Julliard pointed out that the code in question was used if git-notify
was explicitly called with the SHA1 name of an annotated tag object.  At
the moment, the code in question actually _is_ unused due to later
modifications, but it wasn't at the time 5445b976 was committed, and
we'll add further changes so that the code will be used again in the
future.

Conflicts:

tools/git-notify

14 years agogit-notify: Minor cosmetic changes
Holger Weiss [Fri, 6 Nov 2009 16:33:58 +0000 (17:33 +0100)]
git-notify: Minor cosmetic changes

Fix the description of the "-U" option.

14 years agoAllow rsyncing to local paths
Thomas Guyot-Sionnest [Sun, 25 Oct 2009 14:34:45 +0000 (10:34 -0400)]
Allow rsyncing to local paths

14 years agoAdd snapshots upload scripts
Thomas Guyot-Sionnest [Sun, 25 Oct 2009 14:33:10 +0000 (10:33 -0400)]
Add snapshots upload scripts

14 years agogit-notify: Make the state file group writable
Holger Weiss [Mon, 26 Oct 2009 01:41:51 +0000 (02:41 +0100)]
git-notify: Make the state file group writable

For shared repositories, the state file used by git-notify should
usually be group writable, so we now set the umask to 0002 by default.
This can be adjusted by setting the "notify.umask" configuration key or
by using the "-U" option on the command line.

14 years agogit-notify: Remove an empty subroutine
Holger Weiss [Mon, 26 Oct 2009 01:41:51 +0000 (02:41 +0100)]
git-notify: Remove an empty subroutine

The gitweb_url() subroutine was an unused and empty hangover.

14 years agogit-update-mirror: Remove a useless sed(1) call
Holger Weiss [Sun, 25 Oct 2009 18:47:44 +0000 (19:47 +0100)]
git-update-mirror: Remove a useless sed(1) call

The sed(1) command in question was a hangover which had no effect
anymore.

14 years agogit-notify: Check the exit status of pipes
Holger Weiss [Sat, 24 Oct 2009 20:55:44 +0000 (22:55 +0200)]
git-notify: Check the exit status of pipes

Properly check the exit status of all processes we execute and abort on
error.

14 years agogit-notify: Handle non-UTF-8 commits
Holger Weiss [Sat, 24 Oct 2009 20:55:44 +0000 (22:55 +0200)]
git-notify: Handle non-UTF-8 commits

Make sure that commit messages which use an encoding other than US-ASCII
or UTF-8 are handled correctly.  Also, assume that the diff contents use
the same encoding as the commit message.  This assumption may well be
wrong, but that's the best we can do.

14 years agogit-notify: Don't generate duplicate notifications
Holger Weiss [Sat, 24 Oct 2009 20:55:44 +0000 (22:55 +0200)]
git-notify: Don't generate duplicate notifications

Never notify on a given commit more than once, even if it's referenced
via multiple branch heads.  We make sure this won't happen simply by
maintaining a list of commits we notified about.  The file path used for
saving this list can be specified using the new "-t" option.  (The
contrib/hooks/post-receive-email script distributed with Git tries hard
to avoid such a list, but it doesn't get the necessary magic right.)

14 years agogit-nofity: Try to shorten Gitweb URLs
Holger Weiss [Sat, 24 Oct 2009 20:55:44 +0000 (22:55 +0200)]
git-nofity: Try to shorten Gitweb URLs

Instead of using the full SHA1 values of commit object names within
Gitweb URLs, try to abbreviate them to a shorter unique name.

14 years agogit-notify: Move the Gitweb URL to the bottom
Holger Weiss [Sat, 24 Oct 2009 20:55:43 +0000 (22:55 +0200)]
git-notify: Move the Gitweb URL to the bottom

In commit notifications, specify the Gitweb URL (if any) at the bottom
of the ASCII "table" which summarizes the commit.  That looks better.

14 years agogit-notify: Truncate summary after 50 characters
Holger Weiss [Sat, 24 Oct 2009 20:53:55 +0000 (22:53 +0200)]
git-notify: Truncate summary after 50 characters

If the first line of a commit message is longer than 50 characters,
truncate it before adding the resulting string to the subject line of a
notification.  This makes sure the subject line won't get too long
(unless the commit author name is unusually long, which we don't check).
The Git User's Manual recommends keeping the first line of a commit
message shorter than that, anyway:

| Though not required, it's a good idea to begin the commit message with
| a single short (less than 50 character) line summarizing the change,
| followed by a blank line and then a more thorough description.  Tools
| that turn commits into email, for example, use the first line on the
| Subject line and the rest of the commit in the body.

[ http://www.kernel.org/pub/software/scm/git/docs/user-manual.html ]

14 years agogit-notify: Send notifications on ref changes, too
Holger Weiss [Sat, 24 Oct 2009 09:44:33 +0000 (11:44 +0200)]
git-notify: Send notifications on ref changes, too

Do not only generate notifications on commits, but also if a branch head
or lightweight tag was created, removed, or modified.  Notifications on
branch head updates are omitted if one or more commit notification have
been generated and the branch head now references a descendant of the
originally referenced commit (which should be the usual case).

14 years agogit-notify: Call git-rev-list(1) via a subroutine
Holger Weiss [Sat, 24 Oct 2009 09:44:29 +0000 (11:44 +0200)]
git-notify: Call git-rev-list(1) via a subroutine

Add a subroutine which abstracts away executing git-rev-list(1) and
checking the result in order to avoid code duplication.

14 years agogit-notify: Mention the committer where applicable
Holger Weiss [Sat, 24 Oct 2009 09:44:25 +0000 (11:44 +0200)]
git-notify: Mention the committer where applicable

If the committer is not the author of the commit, mention the committer
in addition to the author.

14 years agogit-notify: New subroutine for column alignment
Holger Weiss [Sat, 24 Oct 2009 09:44:21 +0000 (11:44 +0200)]
git-notify: New subroutine for column alignment

Most notifications include an ASCII "table" with two columns.  The
formatting of these columns is now handled by the new format_table()
subroutine, so that the alignment can easily be changed in the future.

14 years agogit-notify: Ignore "empty" commits
Holger Weiss [Sat, 24 Oct 2009 09:44:16 +0000 (11:44 +0200)]
git-notify: Ignore "empty" commits

Omit notifications regarding commits which don't change the tree
whatsoever.

14 years agogit-notify: Remove unused tag notification code
Holger Weiss [Sat, 24 Oct 2009 09:44:10 +0000 (11:44 +0200)]
git-notify: Remove unused tag notification code

The code which handles notifications regarding tags was unused, as only
objects listed by git-rev-list(1) are considered, and git-rev-list(1)
never spits out the sha1 of a tag object.

14 years agogit-notify: Save author without trailing space
Holger Weiss [Sat, 24 Oct 2009 09:44:00 +0000 (11:44 +0200)]
git-notify: Save author without trailing space

Adjust the regular expression which catches the commit author name so
that it doesn't include the space character which follows that name.

14 years agoImport git-update-mirror and git-notify
Holger Weiss [Sat, 24 Oct 2009 09:42:52 +0000 (11:42 +0200)]
Import git-update-mirror and git-notify

Import the (self-written) git-update-mirror script, which updates clones
of Git repositories and then calls git-notify (in just the same way as a
post-receive hook would be called by Git).  The git-notify script is
imported from git://source.winehq.org/git/tools.git (commit: 03d66f34)
and generates notifications on repository changes.  We'll use these
scripts for generating our commit e-mails.

14 years agoFix usage of repeated -o options in check_snmp
Thomas Guyot-Sionnest [Thu, 22 Oct 2009 07:25:41 +0000 (03:25 -0400)]
Fix usage of repeated -o options in check_snmp

14 years agoSet proper network byte order for icmp_id and icmp_seq in icmp packets
Thomas Guyot-Sionnest [Fri, 16 Oct 2009 02:11:39 +0000 (22:11 -0400)]
Set proper network byte order for icmp_id and icmp_seq in icmp packets

14 years agoIncrement per-host sequence in check_icmp
Thomas Guyot-Sionnest [Wed, 14 Oct 2009 23:41:20 +0000 (19:41 -0400)]
Increment per-host sequence in check_icmp

14 years agoChange default for SFSNAP_DEST
Thomas Guyot-Sionnest [Sat, 26 Sep 2009 22:04:34 +0000 (18:04 -0400)]
Change default for SFSNAP_DEST

14 years agoCorrecting name and email address
Thomas Guyot-Sionnest [Sat, 26 Sep 2009 19:46:11 +0000 (15:46 -0400)]
Correcting name and email address

14 years agoEnhancements to tools/sfsnapshotgit
Thomas Guyot-Sionnest [Sat, 26 Sep 2009 18:58:51 +0000 (14:58 -0400)]
Enhancements to tools/sfsnapshotgit

14 years agoUsing $srcdir is the proper way to go
Thomas Guyot-Sionnest [Fri, 25 Sep 2009 10:45:57 +0000 (06:45 -0400)]
Using $srcdir is the proper way to go

14 years agoAdd sfsnapshotgit
nagiosplugins [Fri, 25 Sep 2009 09:34:37 +0000 (09:34 +0000)]
Add sfsnapshotgit

14 years agoAllow custom versions with the release file...
nagiosplugins [Fri, 25 Sep 2009 08:18:04 +0000 (08:18 +0000)]
Allow custom versions with the release file...

14 years agoUpdated documentation re: no equals sign and single quote
Ton Voon [Thu, 24 Sep 2009 09:33:23 +0000 (10:33 +0100)]
Updated documentation re: no equals sign and single quote

14 years agoUpdated NEWS file with docs changes
Ton Voon [Thu, 24 Sep 2009 09:21:51 +0000 (10:21 +0100)]
Updated NEWS file with docs changes

14 years agoTest, again
Thomas Guyot-Sionnest [Wed, 23 Sep 2009 07:17:05 +0000 (03:17 -0400)]
Test, again

14 years agoTest
Thomas Guyot-Sionnest [Wed, 23 Sep 2009 07:10:33 +0000 (03:10 -0400)]
Test

14 years agoOops - wrong author/bug in last commit!
Thomas Guyot-Sionnest [Tue, 22 Sep 2009 01:22:44 +0000 (21:22 -0400)]
Oops - wrong author/bug in last commit!

14 years agoAdd proxy-authorization option to check_http (Peter Doherty - #2863772, Bryan Irvine...
Thomas Guyot-Sionnest [Tue, 22 Sep 2009 01:20:33 +0000 (21:20 -0400)]
Add proxy-authorization option to check_http (Peter Doherty - #2863772, Bryan Irvine - #2863925)

14 years agoFix check_ircd binding to wrong interface (#668778)
Thomas Guyot-Sionnest [Sat, 19 Sep 2009 05:44:10 +0000 (01:44 -0400)]
Fix check_ircd binding to wrong interface (#668778)

14 years agoUpdate RELEASING document with proper tag creation and push commands
Thomas Guyot-Sionnest [Sat, 19 Sep 2009 06:03:59 +0000 (02:03 -0400)]
Update RELEASING document with proper tag creation and push commands

14 years agoPrep for 1.4.14 release
Ton Voon [Wed, 16 Sep 2009 08:33:05 +0000 (09:33 +0100)]
Prep for 1.4.14 release

14 years agoEnsure dirhandle is closed (Duncan Ferguson)
Ton Voon [Mon, 14 Sep 2009 10:22:13 +0000 (11:22 +0100)]
Ensure dirhandle is closed (Duncan Ferguson)

14 years agoFix skip number
Ton Voon [Fri, 11 Sep 2009 22:58:41 +0000 (23:58 +0100)]
Fix skip number

14 years agoAdd a test that succeeds on check_snmp v1.4.13. Newer versions skip additional
Thomas Guyot-Sionnest [Sat, 5 Sep 2009 07:16:54 +0000 (03:16 -0400)]
Add a test that succeeds on check_snmp v1.4.13. Newer versions skip additional
lines so this new test fails on the current head.

Note: check_snmp v1.4.13 with multi-line strings return somewhat v3 output;
      it's not exactly what the specs say but it doesn't appears to break them
      either. The fix could eventually supports both v2 and v3 output formats.

14 years agoFix segfault in check_snmp (definitive fix is still in the works - see bug #2832451)
Thomas Guyot-Sionnest [Wed, 5 Aug 2009 07:12:05 +0000 (03:12 -0400)]
Fix segfault in check_snmp (definitive fix is still in the works - see bug #2832451)

14 years agoFix check_snmp passing single-quotes as -m argument when it should be empty
Thomas Guyot-Sionnest [Sat, 1 Aug 2009 03:35:50 +0000 (23:35 -0400)]
Fix check_snmp passing single-quotes as -m argument when it should be empty

14 years agocheck_snmp: Add some verbose output and tests
Thomas Guyot-Sionnest [Fri, 31 Jul 2009 07:50:42 +0000 (03:50 -0400)]
check_snmp: Add some verbose output and tests

14 years agoAdd tests using custom snmp agent
Thomas Guyot-Sionnest [Fri, 31 Jul 2009 06:45:30 +0000 (02:45 -0400)]
Add tests using custom snmp agent

Only multi-line string test for now (regression test), counter rollover
tests planed with my snmp_counters_new branch.

NB: 64bit counters are broken in NetSNMP::agent from NetSNMP version 5.4.1
    and lower, but might come in handy one day

14 years agoFix check_snmp Timetick test with <1 day uptime
Thomas Guyot-Sionnest [Fri, 31 Jul 2009 05:20:59 +0000 (01:20 -0400)]
Fix check_snmp Timetick test with <1 day uptime

14 years agoAdd accidentally removed line plus a note about the web copy
Thomas Guyot-Sionnest [Thu, 23 Jul 2009 12:52:08 +0000 (08:52 -0400)]
Add accidentally removed line plus a note about the web copy

14 years agoMerge changes from web
Thomas Guyot-Sionnest [Thu, 23 Jul 2009 12:48:02 +0000 (08:48 -0400)]
Merge changes from web

14 years agoUpdated links for exchange.nagios.org
Ton Voon [Fri, 17 Jul 2009 16:24:28 +0000 (17:24 +0100)]
Updated links for exchange.nagios.org

14 years agopst3 compile with Sun Studio Compiler
Ton Voon [Tue, 14 Jul 2009 22:20:21 +0000 (23:20 +0100)]
pst3 compile with Sun Studio Compiler

14 years agoAdded example for check_cluster to alert if more than X non-OK states
Ton Voon [Mon, 22 Jun 2009 19:48:57 +0000 (20:48 +0100)]
Added example for check_cluster to alert if more than X non-OK states

14 years agoSwitch back to "use Test" and plain prints instead of diag()
Matthias Eble [Tue, 16 Jun 2009 21:51:19 +0000 (23:51 +0200)]
Switch back to "use Test" and plain prints instead of diag()

14 years agoTinderbox output testing commit
Matthias Eble [Tue, 16 Jun 2009 17:31:25 +0000 (19:31 +0200)]
Tinderbox output testing commit

14 years agoMake output of "make test" more verbose
Matthias Eble [Mon, 15 Jun 2009 19:45:12 +0000 (21:45 +0200)]
Make output of "make test" more verbose

This is intended to make error fixing based on tinderbox output
easier.

14 years agoFixed error in rtt/rta calculation in case of system clock problems
Matthias Eble [Sun, 14 Jun 2009 21:31:29 +0000 (23:31 +0200)]
Fixed error in rtt/rta calculation in case of system clock problems

Time differences are now set to 0 in case of backward timejumps so there are no wrap-around problems any more.
The RTA calculation hopefully gets a more accurate value in these cases also.

14 years agoFixed testcases for check_snmp, check_ifstatus and check_ifoperstatus when no snmp...
Matthias Eble [Sat, 13 Jun 2009 16:13:49 +0000 (18:13 +0200)]
Fixed testcases for check_snmp, check_ifstatus and check_ifoperstatus when no snmp community is specified

The checks for invalid/unavailable hosts need a complete command line.
They failed on hosts where no community was specified. Now, an invalid community is used so
the tests can run on hosts w/o snmp host/community in NPTest.cache. Execution will fail anyway.

14 years agoFurther test parameters and skip blocks for check_ifoperstatus.t. getTestparam change...
Matthias Eble [Sat, 13 Jun 2009 09:10:32 +0000 (11:10 +0200)]
Further test parameters and skip blocks for check_ifoperstatus.t. getTestparam changes for check_ifstatus.t and ifoperstatus.t

Added snmp_interface and snmp_ifxtable test parameters to check_ifoperstatus.t.
Also getTestParameter calls for both plugins were converted to use three arguments
instead of undocumented >3 arg behaviour which led to redundant data in NPTest.cache.

14 years agoMerge branch 'master' of ssh://PsychoTrahe@repo.or.cz/srv/git/nagiosplugins
Matthias Eble [Thu, 11 Jun 2009 15:28:14 +0000 (17:28 +0200)]
Merge branch 'master' of ssh://PsychoTrahe@repo.or.cz/srv/git/nagiosplugins

14 years agorenamed check_ifoperstatus' newly introdced -x to -P so it fits check_ifstatus
Matthias Eble [Thu, 11 Jun 2009 15:24:52 +0000 (17:24 +0200)]
renamed check_ifoperstatus' newly introdced -x to -P so it fits check_ifstatus

check_ifstatus already used -x so both plugins can use same short option, now.
to specify privacy protocol.