Commit graph

2078 commits

Author SHA1 Message Date
Holger Weiss
a5fa304ce3 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).
2009-10-24 11:44:33 +02:00
Holger Weiss
709d238041 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.
2009-10-24 11:44:29 +02:00
Holger Weiss
e31d34fc90 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.
2009-10-24 11:44:25 +02:00
Holger Weiss
56c46014d0 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.
2009-10-24 11:44:21 +02:00
Holger Weiss
db63fbfa03 git-notify: Ignore "empty" commits
Omit notifications regarding commits which don't change the tree
whatsoever.
2009-10-24 11:44:16 +02:00
Holger Weiss
5445b9769f 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.
2009-10-24 11:44:10 +02:00
Holger Weiss
51771dc540 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.
2009-10-24 11:44:00 +02:00
Holger Weiss
7f1844835d 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.
2009-10-24 11:42:52 +02:00
Thomas Guyot-Sionnest
e7e9a99117 Fix usage of repeated -o options in check_snmp 2009-10-22 03:25:41 -04:00
Thomas Guyot-Sionnest
9c1aa029c0 Set proper network byte order for icmp_id and icmp_seq in icmp packets 2009-10-15 22:12:32 -04:00
Thomas Guyot-Sionnest
c2d9c59dc9 Increment per-host sequence in check_icmp 2009-10-15 21:52:18 -04:00
Thomas Guyot-Sionnest
c3150e6708 Change default for SFSNAP_DEST 2009-09-26 18:04:34 -04:00
Thomas Guyot-Sionnest
415d5f5bbe Correcting name and email address 2009-09-26 15:46:11 -04:00
Thomas Guyot-Sionnest
5b801b81a9 Enhancements to tools/sfsnapshotgit 2009-09-26 15:18:01 -04:00
Thomas Guyot-Sionnest
623047109a Using $srcdir is the proper way to go 2009-09-25 06:45:57 -04:00
nagiosplugins
9b550c5a96 Add sfsnapshotgit 2009-09-25 09:34:37 +00:00
nagiosplugins
43c187a944 Allow custom versions with the release file... 2009-09-25 09:31:04 +00:00
Ton Voon
53efa53d5d Updated documentation re: no equals sign and single quote 2009-09-24 10:33:23 +01:00
Ton Voon
1a18f4c775 Updated NEWS file with docs changes 2009-09-24 10:21:51 +01:00
Thomas Guyot-Sionnest
2abf2e214a Test, again 2009-09-23 03:17:05 -04:00
Thomas Guyot-Sionnest
b3b4cec3fc Test 2009-09-23 03:10:33 -04:00
Thomas Guyot-Sionnest
c6f2d9f673 Oops - wrong author/bug in last commit! 2009-09-21 21:22:44 -04:00
Thomas Guyot-Sionnest
08199792ba Add proxy-authorization option to check_http (Peter Doherty - #2863772, Bryan Irvine - #2863925) 2009-09-21 21:20:33 -04:00
Thomas Guyot-Sionnest
bc3c8c7cfb Fix check_ircd binding to wrong interface (#668778) 2009-09-19 02:08:51 -04:00
Thomas Guyot-Sionnest
e82b611840 Update RELEASING document with proper tag creation and push commands 2009-09-19 02:03:59 -04:00
Ton Voon
bc26fec6d6 Prep for 1.4.14 release 2009-09-16 09:33:05 +01:00
Ton Voon
bbadda8979 Ensure dirhandle is closed (Duncan Ferguson) 2009-09-14 11:22:13 +01:00
Ton Voon
aa6563c75c Fix skip number 2009-09-11 23:58:41 +01:00
Thomas Guyot-Sionnest
181ac1e018 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.
2009-09-05 03:16:54 -04:00
Thomas Guyot-Sionnest
b8a64210bd Fix segfault in check_snmp (definitive fix is still in the works - see bug #2832451) 2009-08-05 03:13:08 -04:00
Thomas Guyot-Sionnest
1295c93651 Fix check_snmp passing single-quotes as -m argument when it should be empty 2009-07-31 23:35:50 -04:00
Thomas Guyot-Sionnest
43571dba91 check_snmp: Add some verbose output and tests 2009-07-31 03:52:10 -04:00
Thomas Guyot-Sionnest
8a96ee4741 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
2009-07-31 03:07:38 -04:00
Thomas Guyot-Sionnest
e0be2e6094 Fix check_snmp Timetick test with <1 day uptime 2009-07-31 01:41:03 -04:00
Thomas Guyot-Sionnest
4aec8e28c3 Add accidentally removed line plus a note about the web copy 2009-07-23 08:52:08 -04:00
Thomas Guyot-Sionnest
1b7eeac5a0 Merge changes from web 2009-07-23 08:49:07 -04:00
Ton Voon
f17d7c0517 Updated links for exchange.nagios.org 2009-07-17 17:24:28 +01:00
Ton Voon
0dcd5e677e pst3 compile with Sun Studio Compiler 2009-07-14 23:20:21 +01:00
Ton Voon
9ff36ec7e3 Added example for check_cluster to alert if more than X non-OK states 2009-06-22 20:48:57 +01:00
Matthias Eble
013f0a187f Switch back to "use Test" and plain prints instead of diag() 2009-06-16 23:51:19 +02:00
Matthias Eble
3ea954933c Tinderbox output testing commit 2009-06-16 19:31:25 +02:00
Matthias Eble
2e7c3ac75a Make output of "make test" more verbose
This is intended to make error fixing based on tinderbox output
easier.
2009-06-15 21:45:12 +02:00
Matthias Eble
5f67308451 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.
2009-06-14 23:31:29 +02:00
Matthias Eble
38e20a1a33 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.
2009-06-13 18:13:49 +02:00
Matthias Eble
05b801284c 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.
2009-06-13 11:10:32 +02:00
Matthias Eble
5a6268f729 Merge branch 'master' of ssh://PsychoTrahe@repo.or.cz/srv/git/nagiosplugins 2009-06-11 17:28:14 +02:00
Matthias Eble
c66d2c6b3b 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.
2009-06-11 17:24:52 +02:00
Matthias Eble
edda2536e5 Fixed SNMPv3 behaviour of check_ifstatus. Added -P to define privprotocol (#2343438 - Robin Schroeder)
check_ifstatus didn't function correctly with SNMPv3. This is fixed now.
Created argument-hash for SNMP session creation. This removes redundant code.
Session creation was moved out of process_arguments() and now takes place
after setting the timeout handler.

Additionally the -P argument was added to specify the privprotocol.
2009-06-11 17:20:55 +02:00
Matthias Eble
e16b35b2ca Added testcases for check_ifoperstatus
Added testcases for check_ifoperstatus. No SNMPv3 testing
included for now.
2009-06-11 16:27:15 +02:00
Matthias Eble
0f8ef1f780 minor fixes to check_ifoperstatus
Minor output fixes for check_ifoperstatus.
Fixed typo so that -n now implies -I as documented.
2009-06-11 16:22:47 +02:00