summaryrefslogtreecommitdiffstats
path: root/plugins-scripts
AgeCommit message (Collapse)AuthorFilesLines
2013-10-22Just using the posix conform extended regular expression greprefs/pull/1211/headJan Wagner1-2/+1
2013-10-22check_oracle: --db +ASM bad string matchingJan Wagner1-0/+1
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)
2013-09-17check_disk_smb: fixed number of tests to skipSven Nierlein1-5/+5
2013-09-16check_disk_smb: verify path to smbclientSven Nierlein1-0/+2
2013-08-20Merge branch 'master' of https://github.com/rafaeldriutti/nagios-pluginsHolger Weiss1-3/+3
* '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 ↵refs/pull/63/headRafael1-3/+3
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 compilantrefs/pull/49/headGabriele Tozzi1-15/+18
2013-03-25Add option to perform real login in check_oracleBrian De Wolf1-0/+15
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 functionMarc Huffnagle1-1/+10
2012-06-23check_disk_smb: Add performance dataHolger Weiss1-12/+32
(Debian #654259 - Charles-Henri Larose)
2012-05-29Mention the check_range function in NEWS, etc.Holger Weiss1-3/+3
2012-05-29Added check_range shell function to utils.sh.inAlex Griffin1-0/+85
2011-09-07check_sensors: Use symbolic exit codesHolger Weiss1-10/+10
Specify the exit codes by using the constants from utils.sh.
2011-09-07check_sensors: Minor whitespace fixesHolger Weiss1-2/+2
2011-09-07check_sensors: Detect FAULT statusHolger Weiss1-4/+7
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_smbMatthias Eble1-0/+96
2010-11-28check_disk_smb now handles NT_STATUS_ACCESS_DENIED properly (Debian #601696)Matthias Eble1-1/+1
2010-11-28Make check_disk_smb accept spaces in share names (#990948, #1370031, Debian ↵Matthias Eble1-1/+1
#601699)
2010-07-07Allow check_ifstatus to accept version=2cTon Voon1-2/+5
2010-04-12Fix Debian bug #545940: Failure when run via ePNHolger Weiss1-4/+4
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 passingHolger Weiss1-25/+36
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 ePNHolger Weiss1-6/+6
| 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 workHolger Weiss1-0/+1
| 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-10check_disk_smb: Allow for specifying an IP addressHolger Weiss1-7/+23
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...nagiosplugins1-1/+1
2009-09-19Fix check_ircd binding to wrong interface (#668778)Thomas Guyot-Sionnest1-16/+5
2009-06-13Fixed testcases for check_snmp, check_ifstatus and check_ifoperstatus when ↵Matthias Eble2-6/+10
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. ↵Matthias Eble2-23/+43
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_ifstatusMatthias Eble1-2/+2
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 ↵Matthias Eble2-103/+130
(#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_ifoperstatusMatthias Eble1-0/+73
Added testcases for check_ifoperstatus. No SNMPv3 testing included for now.
2009-06-11minor fixes to check_ifoperstatusMatthias Eble1-3/+3
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 argumentsMatthias Eble1-29/+25
Added proper usage messages in case of missing arguments. Removed accidently committed Data::Dumper call. Minor whitespace fixes.
2009-06-10Whitespace and indent fixes for check_ifoperstatusMatthias Eble1-109/+103
2009-06-10Fixed SNMPv3 behaviour of check_ifoperstatus. Added -x to define ↵Matthias Eble1-71/+39
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)Thomas Guyot-Sionnest1-10/+11
2009-02-20Typo fixes (Jan Wagner - SF 1878971)Ton Voon1-1/+1
2008-11-27Fixing build breakages (I totally forgot this rule was there...)Thomas Guyot-Sionnest1-2/+0
2008-11-26Disable dynamic versionning for releases, and allow generating version out ↵Thomas Guyot-Sionnest1-5/+5
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 programsThomas Guyot-Sionnest1-1/+4
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 ↵Thomas Guyot-Sionnest1-4/+2
shell instead.
2008-11-23Avoid the use of .PHONY (target s created twice and I have no idea if it's ↵Thomas Guyot-Sionnest1-1/+2
right).
2008-11-23Removing CVS/SVN tags and replacing with git-based versioningThomas Guyot-Sionnest22-51/+48
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)Matthias Eble1-19/+29
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"Ton Voon1-0/+4
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1866 f882894a-f735-0410-b71e-b25c423dba1c
2007-07-24Removing all .cvsignore filesTon Voon1-19/+0
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.pmMatthias Eble1-1/+1
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 callMatthias Eble1-2/+2
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 outputMatthias Eble3-5/+5
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 ↵Matthias Eble1-3/+5
to Jason Martin (#1505551) git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1719 f882894a-f735-0410-b71e-b25c423dba1c