aboutsummaryrefslogtreecommitdiff
path: root/plugins-scripts
AgeCommit message (Collapse)Author
2013-08-20Merge branch 'master' of https://github.com/rafaeldriutti/nagios-pluginsGravatar Holger Weiss
* 'master' of https://github.com/rafaeldriutti/nagios-plugins: Changed the smbclient command used to fetch the free space available on the samba shares. Using du instead of ls, since it's much faster, specially with shares that have a lot of files. Closes #63.
2013-08-12Changed the smbclient command used to fetch the free space available on the ↵Gravatar Rafael
samba shares. Using du instead of ls, since it's much faster, specially with shares that have a lot of files.
2013-05-19Made verbose output of check_sensors compilantGravatar Gabriele Tozzi
2013-03-25Add option to perform real login in check_oracleGravatar Brian De Wolf
The Oracle plugin has no option for testing for a successful login. The closest option to this is --login, which uses a fixed set of credentials and expects to receive the logon failure error code. This patch adds an option called --connect. This option takes a full SID and returns success if it doesn't detect any error codes. With this, we can check that a database is allowing logins from valid credentials (and avoid filling up DB logs with failed authentications).
2012-10-09Added additional documentation to the check_range functionGravatar Marc Huffnagle
2012-06-23check_disk_smb: Add performance dataGravatar Holger Weiss
(Debian #654259 - Charles-Henri Larose)
2012-05-29Mention the check_range function in NEWS, etc.Gravatar Holger Weiss
2012-05-29Added check_range shell function to utils.sh.inGravatar Alex Griffin
2011-09-07check_sensors: Use symbolic exit codesGravatar Holger Weiss
Specify the exit codes by using the constants from utils.sh.
2011-09-07check_sensors: Minor whitespace fixesGravatar Holger Weiss
2011-09-07check_sensors: Detect FAULT statusGravatar Holger Weiss
Return an UNKNOWN status if a faulty sensor is detected. This can be suppressed with the new "--ignore-fault" option. (Fixes Debian bug #615133, patch suggested by Jan Wagner.)
2010-11-28add test cases for check_disk_smbGravatar Matthias Eble
2010-11-28check_disk_smb now handles NT_STATUS_ACCESS_DENIED properly (Debian #601696)Gravatar Matthias Eble
2010-11-28Make check_disk_smb accept spaces in share names (#990948, #1370031, Debian ↵Gravatar Matthias Eble
#601699)
2010-07-07Allow check_ifstatus to accept version=2cGravatar Ton Voon
2010-04-12Fix Debian bug #545940: Failure when run via ePNGravatar Holger Weiss
If Perl's "shift" function is called outside of a subroutine and without any argument, it usually shifts @ARGV. However, if a plugin is executed via ePN, such a call will shift @_ instead, so we must explicitly specify @ARGV for this to work as expected. This fixes Debian bug #545940, see: http://bugs.debian.org/545940 Commit de7191e3424e02ba278a39b86e8b1906a25d0362 fixed the same issue for check_disk_smb. (Reported by Hendrik Jaeger, forwarded by Jan Wagner.)
2010-04-11Fix Debian bug #478942: Fragile argument passingGravatar Holger Weiss
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.)
2010-04-11Fix Debian bug #478906: Failure when run via ePNGravatar Holger Weiss
| 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.)
2010-04-11Fix Debian bug #425129: SMB guest mode won't workGravatar Holger Weiss
| 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.)
2010-04-11check_disk_smb: Allow for specifying an IP addressGravatar Holger Weiss
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.)
2009-09-25Allow custom versions with the release file...Gravatar nagiosplugins
2009-09-19Fix check_ircd binding to wrong interface (#668778)Gravatar 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-06-13Further test parameters and skip blocks for check_ifoperstatus.t. ↵Gravatar Matthias Eble
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-11renamed check_ifoperstatus' newly introdced -x to -P so it fits check_ifstatusGravatar Matthias Eble
check_ifstatus already used -x so both plugins can use same short option, now. to specify privacy protocol.
2009-06-11Fixed SNMPv3 behaviour of check_ifstatus. Added -P to define privprotocol ↵Gravatar Matthias Eble
(#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-11Added testcases for check_ifoperstatusGravatar Matthias Eble
Added testcases for check_ifoperstatus. No SNMPv3 testing included for now.
2009-06-11minor fixes to check_ifoperstatusGravatar Matthias Eble
Minor output fixes for check_ifoperstatus. Fixed typo so that -n now implies -I as documented.
2009-06-11check_ifoperstatus is now more user friendly in case of missing argumentsGravatar Matthias Eble
Added proper usage messages in case of missing arguments. Removed accidently committed Data::Dumper call. Minor whitespace fixes.
2009-06-11Whitespace and indent fixes for check_ifoperstatusGravatar Matthias Eble
2009-06-11Fixed SNMPv3 behaviour of check_ifoperstatus. Added -x to define ↵Gravatar Matthias Eble
privprotocol (#2343438 - Robin Schroeder) check_ifoperstatus 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 -x argument was added to specify the privprotocol.
2009-05-20Fix awk subst.in/subst script path error (#2722832 - Martin Foster)Gravatar Thomas Guyot-Sionnest
2009-02-20Typo fixes (Jan Wagner - SF 1878971)Gravatar Ton Voon
2008-11-26Fixing build breakages (I totally forgot this rule was there...)Gravatar Thomas Guyot-Sionnest
2008-11-26Disable dynamic versionning for releases, and allow generating version out ↵Gravatar Thomas Guyot-Sionnest
of subversion. This should be a definitive fix for systems with non-compilant make programs as the version will be taken from $(PACKAGE_VERSION) instead. At the same time I added code for generating svn-based version strings.
2008-11-25Workaround to support more make programsGravatar Thomas Guyot-Sionnest
Avoid the use of "-include". Since "include" is interpreted by Automake, we have to use a special macro instead.
2008-11-25Exporting ENV vars from Makefile is supported only with GNU Make. Use the ↵Gravatar Thomas Guyot-Sionnest
shell instead.
2008-11-23Avoid the use of .PHONY (target s created twice and I have no idea if it's ↵Gravatar Thomas Guyot-Sionnest
right).
2008-11-23Removing CVS/SVN tags and replacing with git-based versioningGravatar Thomas Guyot-Sionnest
For contrib/, full tags have been imported from subversion git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2091 f882894a-f735-0410-b71e-b25c423dba1c
2008-10-22check_ifoperstatus -n flag now works as expected (sf.net #1569488)Gravatar Matthias Eble
check_ifoperstatus now supports ifType based lookup for ifIndex git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2061 f882894a-f735-0410-b71e-b25c423dba1c
2007-12-12Run tinderbox builds in a test debug mode using "make test-debug"Gravatar Ton Voon
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1866 f882894a-f735-0410-b71e-b25c423dba1c
2007-07-24Removing all .cvsignore filesGravatar Ton Voon
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1761 f882894a-f735-0410-b71e-b25c423dba1c
2007-07-07Changed print_revision output order in utils.pmGravatar Matthias Eble
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1751 f882894a-f735-0410-b71e-b25c423dba1c
2007-07-07substituted $ID$ through $Revision$ in print_revision callGravatar Matthias Eble
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1750 f882894a-f735-0410-b71e-b25c423dba1c
2007-07-07Changed order in -V/--version outputGravatar Matthias Eble
Fixed -V output for check_log and check_oracle git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1749 f882894a-f735-0410-b71e-b25c423dba1c
2007-05-27check_oracle does not need a valid ORACLE_HOME if called with --db. Thanks ↵Gravatar Matthias Eble
to Jason Martin (#1505551) git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1719 f882894a-f735-0410-b71e-b25c423dba1c
2007-03-16Fix bogus 'eq ( || )' constructions in check_ifoperstatus.pl.Gravatar Gavin Carr
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1642 f882894a-f735-0410-b71e-b25c423dba1c
2007-02-01Fix bug #1593073 Check_Log problem with log rotationGravatar Thomas Guyot-Sionnest
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1602 f882894a-f735-0410-b71e-b25c423dba1c
2006-12-12Enhanced test for single letters in fqdnGravatar Ton Voon
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1549 f882894a-f735-0410-b71e-b25c423dba1c
2006-12-12Allow single characters in fqdn (Dave Alden)Gravatar Ton Voon
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1548 f882894a-f735-0410-b71e-b25c423dba1c