summaryrefslogtreecommitdiffstats
path: root/plugins
AgeCommit message (Collapse)AuthorFilesLines
2015-04-12fix snmp test for included thresholdSven Nierlein1-11/+11
since 6623a1 check_snmp prints the thresholds along the performance data. This adjust our test cases accordingly. Signed-off-by: Sven Nierlein <Sven.Nierlein@consol.de>
2014-12-27utils: remove unused variablerefs/pull/1315/headSebastian Herbszt1-2/+0
Remove unused variable. Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
2014-12-27check_ntp_time: remove unused variablesrefs/pull/1313/headSebastian Herbszt1-4/+2
Remove unused variables. Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
2014-12-27check_ntp: remove unused variablesrefs/pull/1311/headSebastian Herbszt1-4/+2
Remove unused variables. Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
2014-12-27check_disk: remove unused variablesrefs/pull/1312/headSebastian Herbszt1-7/+2
Remove unused variables. Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
2014-12-15negate: remove unused variablesrefs/pull/1309/headSebastian Herbszt1-2/+2
Remove unused variables. Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
2014-12-15check_dns: remove dead coderefs/pull/1307/headSebastian Herbszt1-6/+0
Remove code dead since commit 4efa917. Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
2014-12-02Merge branch 'handle-hanging-nfs'Holger Weiss2-1/+44
* handle-hanging-nfs: NEWS: Mention check_disk enhancement Cosmetic change: s/THRLIBS/THREADLIBS/ configure.ac: Don't let pthread check depend on OS check_disk: Seperate declarations from code check_disk: Remove unused status variable check_disk: Fix pthread start routine type Don't let check_disk hang on hanging file systems
2014-12-02Cosmetic change: s/THRLIBS/THREADLIBS/Holger Weiss1-1/+1
Use a more intuitive variable name.
2014-12-02Merge branch 'maint'Holger Weiss4-15/+16
* maint: NEWS: Modify list of changes for 2.1.1 release Prepare release THANKS.in: Add new authors NEWS: Updating all the fixes check_tcp: fix help description regarding escape option check_ntp: Nul-terminate jitter data Revert "plugins/check_ntp.c - Verify struct from response" check_real: fix null termination check_ntp: fix null termination check_apt: fix memset Conflicts: NEWS
2014-12-01check_tcp: fix help description regarding escape optionSebastian Herbszt1-1/+1
The help description should print '\\' for backslash not just '\'. Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
2014-12-01check_ntp: Nul-terminate jitter dataHolger Weiss1-1/+11
Make sure the jitter response is nul-terminated before parsing the data using string functions.
2014-11-30Revert "plugins/check_ntp.c - Verify struct from response"Holger Weiss1-11/+2
This reverts commit a04df3e1b67dc5eab3adc202cc89901f801cdeaa. The "fix" was bogus in many ways and broke jitter checking. Conflicts: plugins/check_ntp.c
2014-11-30check_disk: Seperate declarations from codeHolger Weiss1-0/+1
2014-11-30check_disk: Remove unused status variableHolger Weiss1-2/+1
We didn't actually use the exit status provided by pthread_join(3) for anything.
2014-11-28check_disk: Fix pthread start routine typeHolger Weiss1-3/+6
The function pointer passed as third argument to pthread_create(3) must be of type void *(*)(void *).
2014-11-28Don't let check_disk hang on hanging file systemsGerhard Lausser2-1/+41
2014-11-28Added missing CR in DESCRIBE request.Andrew Berglund1-4/+4
2014-11-28check_ssh: change warning to critical for protocal/version errorsSven Nierlein1-6/+6
It makes more sense to exit critical if a explicit version/protocol is requested. This would also be more consistent with other plugins. Other string matching plugins like check_snmp or check_http exit critical if the result does not match. Signed-off-by: Sven Nierlein <sven@nierlein.de> Closes #1268
2014-11-28Added perfdata to check_nt. New -l options - seconds|minutes|hours|days.Andy Brist1-14/+37
2014-11-28Introduce support for SNMPv3 context in check_snmpJohannes Engel1-11/+31
snmpget already supports using SNMPv3 contexts using the option "-n". Thus all we need to do is introduce a new argument to check_snmp and pass the argument on to snmpget using snmpget's option "-n". Since "-n" is already in use for check_snmp for a different purpose, we use "-N" instead.
2014-11-28check_snmp: Add thresholds to performance dataAndreas Seemueller1-0/+12
2014-11-26check_real: fix null terminationSebastian Herbszt1-1/+1
Fix null termination introduced by commit b61f51a ("plugins/check_real.c - recv string null terminate"). Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
2014-11-26check_ntp: fix null terminationSebastian Herbszt1-1/+1
Fix null termination introduced by commit a04df3e ("plugins/check_ntp.c - Verify struct from response"). Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
2014-11-26check_apt: fix memsetSebastian Herbszt1-1/+1
Fix memset introduced by commit 9ce7369 ("plugins/check_apt.c - Print uninitialized ereg"). Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
2014-11-03Fix perfdata to comply with perfdata UOM definitionAdrian Murphy1-7/+7
2014-10-19Improving output when swap space has zero sizeJan Wagner1-0/+1
2014-10-19check_swap - fix commentDavide Madrisan1-1/+1
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2014-10-06Merge branch 'maint'Jan Wagner1-1/+1
Conflicts: NEWS THANKS.in
2014-09-16Fix check_jabber to work with Openfire serversHolger Weiss1-1/+1
The plugin expected: <?xml version='1.0'?> But Openfire sends: <?xml version='1.0' encoding='UTF-8'?>
2014-08-06check_by_ssh: added --hostname supportSven Nierlein1-1/+2
just like the guidelines and the help already suggests. Signed-off-by: Sven Nierlein <sven@nierlein.de>
2014-07-31tests: skip extented snmp tests if snmpd has no perl supportSven Nierlein1-1/+10
solaris snmpd has no perl support by default, so this test will fail. Signed-off-by: Sven Nierlein <Sven.Nierlein@consol.de>
2014-07-31tests: negate test fails when not run from plugins folderSven Nierlein1-1/+1
Signed-off-by: Sven Nierlein <Sven.Nierlein@consol.de>
2014-07-31tests: get current directory the perl waySven Nierlein1-1/+2
instead of hoping to have it in the environment. This at least broke tests on solaris. Signed-off-by: Sven Nierlein <Sven.Nierlein@consol.de>
2014-07-31check_dns: unified check outputSven Nierlein1-1/+1
this also allows us to make tests against "critical" in the output. Signed-off-by: Sven Nierlein <Sven.Nierlein@consol.de>
2014-07-31check_ntp_peer: do not use uninitialized results for max stateSven Nierlein1-3/+6
s/t/jresult are not initialized if there is no corresponding threshold supplied. So we shouldn't use them for calculating our result. Signed-off-by: Sven Nierlein <sven@nierlein.de>
2014-07-30Merge pull request #1164 from waja/github981Jan Wagner1-0/+22
2014-07-30check_dns: Use strchr instead of indexJan Wagner1-1/+1
2014-07-30Merge pull request #1182 from waja/github984Jan Wagner1-5/+11
2014-07-30check_dig: takes into account the -4 and -6 switchAlexander Wittig1-1/+4
Fix automatic DNS server name detection to honor -4 and -6 switches (default to 127.0.0.1 or ::1 respectively, i.e. if -6 is given ::1 is used instead of 127.0.0.1)
2014-07-30check_dig: Fix to work with dig and drill toolAlexander Wittig1-2/+2
FreeBSD starting with version 10 is shipped with ldns instead of bind as resolver. Consequently the dig tool in base is replaced by drill. While dig can still be installed as a third party application, it would be nice to make do with the tools available in the system already. This patch rearranges the command line used to invoke dig slightly so that it can be used with both dig and drill (tested with dig 9.8.3-P1 and 9.9.4 as well as drill 1.6.16). It would be really neat if the configure script could be changed to automatically pick up drill when dig is not available (or the other way around), but my autotools-foo is not good enough for that. This part of the patch is an extended version of the locally maintained patch currently deployed in the FreeBSD ports tree by Dmitry Sivachenko.
2014-07-30check_dns: returns incorrect state when specifying serverJan Wagner1-0/+22
This patch verifies if the response is returned by the dns server we are trying to check --- Closes #981 Closes #982 Closes #1164
2014-07-30check_dns: added test for nonresponsive dns server (#982)Sven Nierlein1-1/+11
Signed-off-by: Sven Nierlein <sven@nierlein.de>
2014-07-29Merge remote-tracking branch 'upstream/master'refs/pull/1257/headGreg Cox34-146/+363
Conflicts: plugins/netutils.c
2014-07-29check_disk: show troubled partition in verbose modeJan Wagner1-5/+11
I'm submitting a small patch to check_disk that will show which partitions are actually causing the error state. This helps the human operator to quickly identify the exact issue. I made it so a single -v flag is required so it doesn't harm legacy code that may be parsing the original style of output. Thanks to Jason Benguerel. --- Closes #984 Closes #1182
2014-07-29check_ntp_time.c - Cleaned up usage and added a noteabrist1-1/+3
Closes #907 Closes #1184
2014-07-29check_ntp_time: adding offset optionJan Wagner1-3/+10
Not sure if this is of use or not - we have a strange requirement to run certain servers 5 minutes fast. I've added a switch to the check_ntp_time to allow for this offset. Thanks to Patrick McAndrew.
2014-07-29netutils.c - A few more changesabrist1-4/+3
Changed bool to short. Removed first instance of is_socket to avoid redeclaration error. Changed 'socket' to 'file socket' for verbosity.
2014-07-29This patch will add the IP and port, or socket name, to the error message andDavide Madrisan1-3/+13
thus simplify the problem debugging: no need to check for this information in the Nagios configuration. This function is only used by 'check_tcp.c'. Without the patch: $ ./plugins/check_tcp -H 127.0.0.1 -p 21 Connection refused $ ./plugins/check_tcp -H /var/spool/nagios/cmd/nagios.cmd Permission denied With the patch: $ ./plugins/check_tcp -H 127.0.0.1 -p 21 connect to address 127.0.0.1 and port 21: Connection refused $ ./plugins/check_tcp -H /var/spool/nagios/cmd/nagios.cmd connect to socket /var/spool/nagios/cmd/nagios.cmd: Permission denied Thanks to Davide Madrisan. --- Closes #1277
2014-07-28check_mysql: ignore authentication failureJan Wagner1-2/+20
This patch allows checking if MySQL server is running without providing valid username and password. Similar to check_ssh plugin it returns MySQL server version string and protocol number. Example: check_mysql -n -H aaa.bbb.ccc.ddd MySQL OK - Version: 5.0.51a-24+lenny5 (protocol 10) This is useful for monitoring servers where one does not have administrator privileges or does not want to grant any privileges for the monitoring station. To enable this functionality new option --ignore-auth (-n) is added to check_mysql plugin. Thanks to Julius Kriukas Closes #1020 Closes #1178