summaryrefslogtreecommitdiffstats
path: root/plugins
AgeCommit message (Collapse)AuthorFilesLines
2008-01-07Support "[IPv6]" address syntax.Holger Weiss1-2/+13
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1893 f882894a-f735-0410-b71e-b25c423dba1c
2008-01-07My assumption that "-H example.com:80" didn't work (see my previousHolger Weiss1-0/+7
commit) was wrong, it worked if used together with "-I". So, here's support for "-H [IPv6]:port", "-H [IPv6]", "-H IPv6", "-H IPv4:port", "-H IPv4", and "-H host:port". git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1892 f882894a-f735-0410-b71e-b25c423dba1c
2008-01-06Remove support for specifying the port number using "-H example.com:80".Holger Weiss1-2/+0
Since this didn't work anyway (because ":80" wasn't stripped from the "host_name" after extracting the "server_port"), nobody can be using this syntax, and it prevents "-H" from accepting IPv6 addresses (neufeind - 1865082). IMO, fixing it to recognize both ":80" and IPv6 addresses isn't worth it, as the ":80" syntax doesn't seem very useful for Nagios plugins (given the way how they are usually called in Nagios command definitions). git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1891 f882894a-f735-0410-b71e-b25c423dba1c
2008-01-06If unspecified set LDAP_OPT_SUCCESS to LDAP_SUCCESS (Sergei Haramundanis - ↵Matthias Eble1-0/+3
#1498923) git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1888 f882894a-f735-0410-b71e-b25c423dba1c
2008-01-05Fix Bug #1862300: check_ntp_time segfault in 1.4.11 (Also apply to check_ntp)Thomas Guyot-Sionnest2-8/+16
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1887 f882894a-f735-0410-b71e-b25c423dba1c
2008-01-05check_dns now sorts addresses for -a support with multiple address replies ↵Matthias Eble1-8/+34
(Matthias Urlichs #1724052) git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1886 f882894a-f735-0410-b71e-b25c423dba1c
2008-01-04Cleaned check_procs usage output (Ferenc Wagner #1862218)Matthias Eble1-3/+3
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1885 f882894a-f735-0410-b71e-b25c423dba1c
2007-12-21Remove c formating from translated strings (makes translation easier)Thomas Guyot-Sionnest1-2/+2
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1881 f882894a-f735-0410-b71e-b25c423dba1c
2007-12-19Fix the "--help" output.Holger Weiss1-1/+1
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1880 f882894a-f735-0410-b71e-b25c423dba1c
2007-12-19check_tcp now returns UNKNOWN with an invalid hostname on command lineTon Voon1-1/+1
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1879 f882894a-f735-0410-b71e-b25c423dba1c
2007-12-17Add check_nt -v INSTANCES (Alessandro Ren)Ton Voon1-8/+39
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1877 f882894a-f735-0410-b71e-b25c423dba1c
2007-12-13Fixed help output (Christian Mies)Ton Voon1-1/+1
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1876 f882894a-f735-0410-b71e-b25c423dba1c
2007-12-12Run tinderbox builds in a test debug mode using "make test-debug"Ton Voon1-0/+3
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1866 f882894a-f735-0410-b71e-b25c423dba1c
2007-12-11D'oh! single escape will be handled by Perl....Thomas Guyot-Sionnest1-2/+2
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1865 f882894a-f735-0410-b71e-b25c423dba1c
2007-12-11- Fix check_ntp_peer returning misleading information when an ICMP message ↵Thomas Guyot-Sionnest2-3/+4
came back - Try to fix some servers apparently exanding the ~ in threshold ranges in t/check_ntp.t git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1864 f882894a-f735-0410-b71e-b25c423dba1c
2007-12-11Adding missing function calls needed for i18n (only for plugins already in ↵Thomas Guyot-Sionnest6-0/+24
POTFILES.in) git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1861 f882894a-f735-0410-b71e-b25c423dba1c
2007-12-10Plenty of french translations (and a few fixes BTW)Thomas Guyot-Sionnest6-10/+9
- No more fuzzy french translations - Only (!) 355 strings to translate git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1859 f882894a-f735-0410-b71e-b25c423dba1c
2007-12-10OOPS! Last commit should have included these files.Thomas Guyot-Sionnest3-15/+15
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1858 f882894a-f735-0410-b71e-b25c423dba1c
2007-12-10Some translationsThomas Guyot-Sionnest1-1/+1
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1854 f882894a-f735-0410-b71e-b25c423dba1c
2007-12-10Fix output when response time is critical. Thanks to Nobuhiro Ban (patch ↵Matthias Eble1-3/+3
#1817228) git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1852 f882894a-f735-0410-b71e-b25c423dba1c
2007-12-10Fixed check_load argument handling when passing non triplet thresholds. ↵Matthias Eble2-4/+13
Thanks to Jonathan Kamens (bug #1831890) git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1851 f882894a-f735-0410-b71e-b25c423dba1c
2007-12-08Fix check_disk reporting OK if disk usage grows over 100% (bug #1348746).Thomas Guyot-Sionnest1-1/+8
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1848 f882894a-f735-0410-b71e-b25c423dba1c
2007-12-04Interesting... For some reason it did not take this (patch barfed on it and ↵Thomas Guyot-Sionnest1-1/+1
I thought I had fixed it already)... git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1847 f882894a-f735-0410-b71e-b25c423dba1c
2007-12-04Merge changes from branches/dermoth_ntp_rework (check_ntp_peer/check_ntp_time)Thomas Guyot-Sionnest4-717/+334
NEWS | 13 plugins/Makefile.am | 8 plugins/check_ntp_peer.c | 628 ++++++++++++++++------------------------------- plugins/check_ntp_time.c | 323 ++---------------------- plugins/t/check_ntp.t | 92 +++++- git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1846 f882894a-f735-0410-b71e-b25c423dba1c
2007-12-04Add the new checks as check_ntp copies to keep full plug-in historyThomas Guyot-Sionnest2-0/+1754
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1843 f882894a-f735-0410-b71e-b25c423dba1c
2007-12-04missing word in comment block.Thomas Guyot-Sionnest1-1/+1
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1838 f882894a-f735-0410-b71e-b25c423dba1c
2007-11-23- Use max_state_alt in check_ntp to fix some issues with the latest commits.Thomas Guyot-Sionnest1-53/+10
- Roll back the stratum check as there were issues with it and a better one is already implemented in check_ntp_peer (about to be included) git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1830 f882894a-f735-0410-b71e-b25c423dba1c
2007-11-23Add a max_state_alt function that put UNKNOWN and DEPENDENT ahead of OK.Thomas Guyot-Sionnest2-0/+28
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1829 f882894a-f735-0410-b71e-b25c423dba1c
2007-11-11Fix broken usage2 in check_snmp and check_clusterThomas Guyot-Sionnest2-6/+2
Fix check_cluster blocking some special characters for thresholds ("-", "@", "~") git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1827 f882894a-f735-0410-b71e-b25c423dba1c
2007-11-10Fix newly added stratum check (has to be decreased by one when using normal ↵Thomas Guyot-Sionnest1-1/+3
NTP packets versus control packets) git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1822 f882894a-f735-0410-b71e-b25c423dba1c
2007-11-09Moved base64 function to /lib.Thomas Guyot-Sionnest2-84/+3
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1817 f882894a-f735-0410-b71e-b25c423dba1c
2007-11-09Fix check_snmp buffer overflow (CVE-2007-5623)Thomas Guyot-Sionnest1-6/+10
This patch comes from the Gentoo Portage tree but I couldn't find the author. I sent an email and will give credits when I get an answer. git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1814 f882894a-f735-0410-b71e-b25c423dba1c
2007-11-09Close the socket on all exits (not just the OK one)Thomas Guyot-Sionnest1-0/+2
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1813 f882894a-f735-0410-b71e-b25c423dba1c
2007-11-09Fix missing \n in --help outputThomas Guyot-Sionnest1-2/+2
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1812 f882894a-f735-0410-b71e-b25c423dba1c
2007-10-25check_ntp now return UNKNOWN instead of WARNING if jitter isThomas Guyot-Sionnest1-6/+25
unavailable. If no offset threshold is specified and the offset is unavailable, will return UNKNOWN as well. git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1811 f882894a-f735-0410-b71e-b25c423dba1c
2007-10-25Automatically update website with --help output. CosmeticTon Voon2-2/+2
fixes for some help output git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1810 f882894a-f735-0410-b71e-b25c423dba1c
2007-10-24Hide the SNMP community string (and v3 passwords) from error messagesHolger Weiss1-3/+10
(Bernhard Fischer on nagiosplug-devel@) git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1809 f882894a-f735-0410-b71e-b25c423dba1c
2007-10-14Fix a possible segfault if using "-f follow" and the server sends aHolger Weiss1-2/+1
forged "LLLLocation" header prefixed with multiple "L"s (fabiodds - 1813346) git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1807 f882894a-f735-0410-b71e-b25c423dba1c
2007-10-11Add stratum thresholds support for check_ntp (feature request #1703823)Thomas Guyot-Sionnest1-15/+56
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1806 f882894a-f735-0410-b71e-b25c423dba1c
2007-10-11Use provided threshold functions (no functionnal change apart the check for ↵Thomas Guyot-Sionnest1-38/+26
overlaping thresholds) git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1805 f882894a-f735-0410-b71e-b25c423dba1c
2007-10-02Fix regression in 1.4.10 where following redirects to relative URLs onHolger Weiss1-4/+4
virtual hosts failed if both "-H" and "-I" were specified (noted by Rodrigo A. G. Schichaschwili on nagiosplug-devel@) git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1804 f882894a-f735-0410-b71e-b25c423dba1c
2007-09-26Drop the weird and undocumented behaviour of using positional argumentHolger Weiss1-24/+10
parsing instead of getopt(3) if 8 command line arguments were given (as suggested by Matthias) and check whether all required arguments have been specified in order to spit out proper error messages and to avoid a possible segfault (as suggested by Thomas). git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1800 f882894a-f735-0410-b71e-b25c423dba1c
2007-09-26Patch #1798774: check_ntp: honor ntp flagsThomas Guyot-Sionnest1-0/+9
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1799 f882894a-f735-0410-b71e-b25c423dba1c
2007-09-24Let ./configure --without-ipv6 suppress non-IPv4 DNS lookups (noted byHolger Weiss1-0/+4
Mark Frost on nagios-users@) git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1794 f882894a-f735-0410-b71e-b25c423dba1c
2007-09-23Removed some c99 style commentsMatthias Eble2-2/+2
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1793 f882894a-f735-0410-b71e-b25c423dba1c
2007-09-23Added multiline output capability to check_by_ssh. Thanks to Matthias Flacke ↵Matthias Eble1-1/+2
(#1769653) git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1792 f882894a-f735-0410-b71e-b25c423dba1c
2007-09-23Fixed bug: stat was called on remote fs even if -l was givenMatthias Eble1-9/+32
Added -L option to call stat on remote fs but without threshold comparison git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1789 f882894a-f735-0410-b71e-b25c423dba1c
2007-09-23Added radiusclient-ng support for check_radius. Thanks to Sebastien Guay ↵Matthias Eble1-10/+45
(#1218438) git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1788 f882894a-f735-0410-b71e-b25c423dba1c
2007-09-22substituted bool/true/false with int/TRUE/FALSE (discussed on np-devel)Matthias Eble1-9/+9
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1787 f882894a-f735-0410-b71e-b25c423dba1c
2007-09-22Added -i/-I to ignore pathes/partitions based on regular expressionsMatthias Eble2-16/+96
Added check_disk -A selecting all filesystems -E option must now be passed before -p or -r/-R Passing -E after -p or -r results in UNKNOWN state Fixed bug when mixing case sensitive and insensitive regexes git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1786 f882894a-f735-0410-b71e-b25c423dba1c