summaryrefslogtreecommitdiffstats
path: root/plugins-scripts
AgeCommit message (Collapse)AuthorFilesLines
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
2007-03-16Fix bogus 'eq ( || )' constructions in check_ifoperstatus.pl.Gavin Carr1-3/+3
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 rotationThomas Guyot-Sionnest1-1/+1
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 fqdnTon Voon1-0/+2
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)Ton Voon1-1/+1
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1548 f882894a-f735-0410-b71e-b25c423dba1c
2006-10-27More edge testcases. Allow anything if ends with a . as long as correctTon Voon2-5/+27
characters git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1531 f882894a-f735-0410-b71e-b25c423dba1c
2006-10-26Fixed error if dba_free_space has no free segments (Florian Gleixner)Ton Voon1-3/+4
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1529 f882894a-f735-0410-b71e-b25c423dba1c
2006-10-26Fixed regression where hostnames with hyphens were rejected (1581402 - ↵Ton Voon3-27/+39
Holger Weiss) git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1528 f882894a-f735-0410-b71e-b25c423dba1c
2006-10-19Allow hostnames beginning with digits (O'Shaughnessy Evans - 1567390)Ton Voon1-1/+4
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1501 f882894a-f735-0410-b71e-b25c423dba1c