aboutsummaryrefslogtreecommitdiff
path: root/plugins/t
AgeCommit message (Collapse)Author
2014-01-29TypoGravatar Thomas Guyot-Sionnest
2014-01-28Clarify check_mysql test promptsGravatar Thomas Guyot-Sionnest
Also default to "-u test -ptest" which are default MySQL accounts only missing the prescribed privileges. The database is no longer specified as it is not used. If wanted is should be its own parameter/tests.
2014-01-21Merge branch 'maint'Gravatar Holger Weiss
* maint: check_ssh: Get rid of sshd: Read from socket failed: Connection reset by peer fixed tests when there is no direct internet connection NEWS: Mention fix for check_http's -S option Fix for SSL Versioning when multiple options are used. Fix #1217 spec file fails to build due to duplicate files and unused files check_http: Don't let "-N" expect an argument README: Change GitHub URL README: Clarify license notice Update URLs and mailing list addresses Just using the posix conform extended regular expression grep check_oracle: --db +ASM bad string matching check_oracle doesn't correctly check for pmon +ASM instance from at least Oracle 11 as the pmon proces was renamed from ora_pmon_.* to asm_pmon_.*. -- Just turning attached patch of github issue #1207 into a push request. (Closes #1207) Update web site URLs Conflicts: FAQ NEWS README SUPPORT configure.in monitoring-plugins.spec.in pkg/solaris/pkginfo.in plugins-root/check_dhcp.c plugins-root/check_icmp.c plugins-scripts/check_ifoperstatus.pl plugins-scripts/check_mssql.pl plugins/check_apt.c plugins/check_by_ssh.c plugins/check_cluster.c plugins/check_dbi.c plugins/check_dig.c plugins/check_disk.c plugins/check_dns.c plugins/check_dummy.c plugins/check_fping.c plugins/check_game.c plugins/check_hpjd.c plugins/check_http.c plugins/check_ide_smart.c plugins/check_ldap.c plugins/check_load.c plugins/check_mrtg.c plugins/check_mrtgtraf.c plugins/check_mysql.c plugins/check_mysql_query.c plugins/check_nagios.c plugins/check_nt.c plugins/check_ntp.c plugins/check_ntp_peer.c plugins/check_ntp_time.c plugins/check_nwstat.c plugins/check_overcr.c plugins/check_pgsql.c plugins/check_ping.c plugins/check_procs.c plugins/check_radius.c plugins/check_real.c plugins/check_smtp.c plugins/check_snmp.c plugins/check_ssh.c plugins/check_swap.c plugins/check_tcp.c plugins/check_time.c plugins/check_ups.c plugins/check_users.c plugins/negate.c plugins/urlize.c plugins/utils.h po/Makevars po/de.po po/fr.po po/monitoring-plugins.pot
2014-01-20Minor fixes to be amended into "rename" commitGravatar Holger Weiss
2014-01-19Project rename initial commit.Gravatar Monitoring Plugins Development Team
This is an initial take at renaming the project to Monitoring Plugins. It's not expected to be fully complete, and it is expected to break things (The perl module for instance). More testing will be required before this goes mainline.
2013-12-27fixed tests when there is no direct internet connectionGravatar Sven Nierlein
- check http had wrong number of skipped tests - check tcp did not use the 'no internet' flag at all
2013-11-20make testing check_proc not rely on bashGravatar Sven Nierlein
also grandparents make this test fail but is not a problem in real live. NPTest->testCmd uses "sh -c" already, so there is no need to do that twice.
2013-11-19check_procs: ignore plugin parent processGravatar Anton Lofgren
This fixes an issue that appears when running check_procs over NRPE, where the default shell is configured to (for example) dash, as is the case on Debian. dash (and tcsh, and mksh, and probably others), when invoked with -c forks an additional process to execute the argument string. Contrast this with bash, which does not do this, provided that the argument string simply can be exec()'d as-is. To demonstrate: $ bash -c pstree init─┬ .. ... ├─sshd─-─sshd───pstree versus $ dash -c pstree init─┬ .. ... ├─sshd─-─sshd───dash───pstree The consequence of this fork is that the following invocation: /opt/plugins/check_procs -a init will result in this output: PROCS OK: 2 processes with args 'init' | processes=2;;;0; because the check_procs, in addition to finding the actual init process, finds its parent shell as well. This example is a bit contrived, but I think it illustrates the point. This wouldn't really be a problem, and normally isn't, if it weren't for the fact that NRPE uses a call to popen() which does exactly the above (executes '/bin/sh -c ...'), causing inconsistent behaviour between distributions and much confusion for end users. The argument may be made that the dash process spawned by NRPE is just a process like any other, and should therefore be included in the process count just like any other. However, this is not very intuitive, because of the previously mentioned inconsistencies. The argument might also well be made that we're _never_ interested in the immediate ancestor of the plugin, and while it is unknown how many installations have already made the necessary modifications to their setups to make up for the fact that the plugin behaves the way it does, it is not deemed worthwhile to entertain such workarounds. Thus, this patch ignores the parent process. See also these bug reports: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=626913 http://sourceforge.net/p/nagiosplug/bugs/512/ https://github.com/nagios-plugins/nagios-plugins/issues/999 https://bugs.op5.com/view.php?id=4398
2013-09-29Change default host names for some testsGravatar Holger Weiss
Testing "nagiosplugins.org" will currently not work.
2013-09-17check_disk: die with a reasonable error message if one mount point hits ↵Gravatar Sven Nierlein
average value
2013-09-17check_ssh: added test caseGravatar Sven Nierlein
2013-09-17check_by_ssh: tests expand key and config pathGravatar Sven Nierlein
some systems do not expand the path automatically.
2013-09-17check_udp: skip tests which rely on udp listenGravatar Sven Nierlein
solaris netcat does not listen in udp mode due to http://sourceforge.net/p/netcat/bugs/27/
2013-09-16check_procs: fix test with sleeping processesGravatar Sven Nierlein
at least on freebsd, there are a processes with state 'S', they always use two character status.
2013-09-16check_http: tests use supplied value if possibleGravatar Sven Nierlein
2013-09-14check_ping: increase test timeoutGravatar Sven Nierlein
freebsds ping takes a few seconds till it returns, so a 1 second timeout does not work for the test.
2013-09-14check_udp: try nc.traditional tooGravatar Sven Nierlein
nc.traditional is available on (at least) ubuntu systems and uses traditional nc syntax
2013-09-14tests: move ipv6 detection into NPTest moduleGravatar Sven Nierlein
2013-09-13unified nc syntaxGravatar Sven Nierlein
older netcats do not understand -p, they expect host and port as additional argument. This is backwards compatibel to newer clients. Also support netcat instead of nc.
2013-09-12check_tcp: only test ipv6 if ping6 worksGravatar Sven Nierlein
2013-08-21fixed check_tcp testGravatar Sven Nierlein
A check with thresholds 9000,1 must exit with warning if the certificate expires in less than 9000 but more than one day.
2013-08-21check_snmp: added threshold testsGravatar Sven Nierlein
2013-08-17plugins/t/check_procs.t: Expect performance dataGravatar Holger Weiss
The check_procs plugin now emits performance data, fix the test(s) accordingly.
2013-08-17plugins/t/check_apt.t: Expect performance dataGravatar Holger Weiss
The check_apt plugin now emits performance data, fix the test(s) accordingly.
2013-08-15cleanup after check_http patch (fixes #50)Gravatar Sven Nierlein
- cleanup whitespace - added test cases - print time_ssl only if ssl is in use - updated news and thanks file
2013-08-15corrected http testGravatar Sven Nierlein
multiple headers have to be set by multiple -k switches. Seperating them by semicolons is not longer supported as semicolons are valid characters in http headers.
2013-02-10check_tcp: don't ignore trailing optionsGravatar Sven Nierlein
"./check_tcp -6 -p 80 host" leads to an error: TCP CRITICAL - Invalid hostname, address or socket: 127.0.0.1 because 127.0.0.1 is the fallback host, the tailing hostname was ignored.
2013-01-23Merge pull request #20 from abradley/aptcriticalGravatar Sven Nierlein
Fixes for check_apt handling of -i/-e/-c regexps and SECURITY_RE, plus tests
2013-01-23updated check dig testsGravatar Sven Nierlein
nagios.com seems to have changed their ip address. Also added tests about -4/-6 option.
2012-10-03Tests for check_aptGravatar Alex Bradley
Add a hidden "--input-file" option to check_apt (modelled on check_procs) so that it can take files with sample apt output as input. Add tests for my SECURITY_RE fix (debian3) and for the include, exclude and critical options.
2012-07-04Merge remote-tracking branch 'github/tokkee/sh/check_dbi'Gravatar Holger Weiss
2012-06-25check_http: added test for warning thresholdsGravatar Sven Nierlein
fixed typo in sslutils
2012-06-22Fix check_by_ssh test for non-Bash login shellsGravatar Holger Weiss
In the C shell and in the Z shell, the "?" character must be quoted or backslash-escaped in order to use it verbatim. Therefore, a command such as check_by_ssh -H test.example.com -l joe echo huh? might fail, depending on joe's login shell on test.example.com. Just to make sure, this commit removes most punctuation characters from our test strings.
2012-06-08t/check_dbi.t: Don't use 'INSERT … VALUES (a,b), (c,d)' with SQLite3.Gravatar Sebastian Harl
Older versions of SQLite3 don't seem to support that.
2012-06-08Added a few test cases for the check_dbi plugin.Gravatar Sebastian Harl
All tests use sqlite3. A temporary database is created for the purpose of the tests.
2012-04-09check_by_ssh: added -F config file to specify alternative ssh configGravatar Sven Nierlein
2011-02-04check_http: check for and print the certificate cnGravatar Thomas Guyot-Sionnest
This patch adds a check for the certificate cn (hostname) to normal certificate checks. It returns CRITICAL if th cn is missing, otherwise it prints it in the normal output. Patch by Stéphane Urbanovski
2011-01-05Test updates...Gravatar Thomas Guyot-Sionnest
1. Timetick test could fail with uptime > 115 days. Thresholds are double type, so it's safe to put a large number even for 32bit systems. 2. Add a test based on an invalid bug report, worthy anyway.
2010-11-30check_snmp: Remove that is_numeric madnessGravatar Thomas Guyot-Sionnest
Original patch to make Timeticks works as in check_snmp v1.4.14, it turns out is_numeric isn't so useful and treating all types as numeric works best for backwards-compatibility. This is how it used to work in 1.4.14. As a special case, I also make calculate_rate look up for numeric values as it would otherwise return the last value instead.
2010-03-18Let check_ntp_peer check the number of truechimersGravatar Holger Weiss
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.
2009-10-22Fix usage of repeated -o options in check_snmpGravatar Thomas Guyot-Sionnest
2009-09-11Fix skip numberGravatar Ton Voon
2009-07-31check_snmp: Add some verbose output and testsGravatar Thomas Guyot-Sionnest
2009-07-31Fix check_snmp Timetick test with <1 day uptimeGravatar Thomas Guyot-Sionnest
2009-06-13Fixed testcases for check_snmp, check_ifstatus and check_ifoperstatus when ↵Gravatar Matthias Eble
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-05-28check_snmp: Make use of standard threshold functionsGravatar Thomas Guyot-Sionnest
This patch makes use of standard threshold functions. This allows using doubles as thresholds. Since SNMP supports only integers, double precision numbers are only printed when parsed from a STRING type. In addition, support for printing properly Timeticks type has been added, and the code has been thoroughly cleaned.
2009-03-20negate: make timeouts configurableGravatar Thomas Guyot-Sionnest
2009-03-18Add suggested multi-oid test (John A. Barbuto)Gravatar Thomas Guyot-Sionnest
2009-03-17Check for existence of pre-instaleld pst3 for Solaris tests in t/check_procs.tGravatar Thomas Guyot-Sionnest
2009-03-16Fix check_snmp test on solarisGravatar Thomas Guyot-Sionnest