Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
Works as before:
-w 1w -c 2w
New (as before, but also warn if uptime < 5m, and crit if uptime < 2m):
-w 5m:1w -c 2m:2w
(idea by @sni)
Also refactored the time calculation, if a suffix is present:
New sub calc_as_seconds($)
|
|
|
|
I've messed that up in the previous commit 554b702f9d65fdfe640f20633543e00cd79d64ac.
|
|
Otherwise, there's a warning about unitialized values:
Use of uninitialized value $hours in numeric gt (>) at ...
Use of uninitialized value $days in numeric gt (>) at ...
|
|
When called with --help, the following error was shown:
Use of uninitialized value $uptime_file in concatenation (.) or string at
|
|
|
|
|
|
All other check script also have the .pl ending
|
|
|
|
Derived from check_mailq
|
|
As it currently is, the regular expression does not match mailq command
output on a Debian Jessie setup.
Three erroneous behaviors fixed :
- Meaningful lines do not end with the "bytes" word
- There might be one or more space before the byte count, not 2
- Time match was completely broken, it only accounted for 0-29 minutes
and 0-29 seconds.
|
|
New variable, mailq_args, is appended for postfix mta mailq commands
Fixes #1489
|
|
Enable check_file_age to test for maximum file size
|
|
|
|
utils.pm uses relative include ".." but the path is relativ to the current folder, so it
does not work when running "perl t/utils.t". Just add another lib of "." fixes that. We could
use FindBin but we don't want to make it unnecessarily complicated.
Signed-off-by: Sven Nierlein <sven@nierlein.de>
|
|
check_disk_smb hangs if the smbclient is still running. So send a sigint to all
childs and exit cleanly.
Signed-off-by: Sven Nierlein <sven@nierlein.de>
|
|
|
|
|
|
|
|
|
|
This requires pgrep from the procps package.
|
|
|
|
|
|
check_mssql.pl: switched alarm timeout
|
|
|
|
patch by Marek Marczykowski <marmarek@staszic.waw.pl>
|
|
- alarm() now uses -t option
contributed by Bernd Arnold (wopfel@gmail.com)
closes #991
|
|
|
|
|
|
* pr/1364:
check_ntp.pl: Droping this superseded plugin
Conflicts:
NEWS
plugins-scripts/check_ntp.pl
|
|
* pr/1363:
use unknown exit code for help/version in plugins-root as well
use unknown exit code for help/version in plugins
change exit code to unknown on help and version info
use exit code 3 for version and help
|
|
|
|
|
|
Signed-off-by: Sven Nierlein <sven@nierlein.de>
|
|
|
|
|
|
|
|
utils.pm locate is already convered by FindBin
|
|
This addition is based on a patch contributed by Christopher Schultz.
Closes #1099.
Closes #1171.
|
|
Ignore interface if it's specified via "-n" OR "-u", not just when it's
specified via "-n" AND "-u".
|
|
|
|
Conflicts:
NEWS
THANKS.in
|
|
(Closes #1289)
|
|
Ignoring by index is not always an option, as the index can change on
chassis switches as blade configurations change.
|
|
|
|
while evaluating PROGNAME (Closes Debian Bug #758662)
|
|
Unknown (ex. debian 7)
%> ./check_disk_smb -H 1.1.1.1 -s np_foobar -vvv
/usr/bin/smbclient //1.1.1.1/np_foobar -U guest% -c du
No Answer from Client
Critical (ex. debian 8)
%> ./check_disk_smb -H 1.1.1.1 -s np_foobar -vvv
/usr/bin/smbclient //1.1.1.1/np_foobar -U guest% -c du
Connection to 1.1.1.1 failed
CRITICAL
Signed-off-by: Sven Nierlein <Sven.Nierlein@consol.de>
|
|
The perfdata output violates the current Nagios Plugin Development Guidelines
(http://nagiosplug.sourceforge.net/developer-guidelines.html#AEN202 :
"space separated list of label/value pairs").
Thus the Addon PNP did not read the perdata correctly.
The patch replaces the commas with spaces in the perfdata output.
Many thanks to Patric Wust.
---
Closes #1169 and #721.
|
|
check_oracle in the 1.4.15 release doesn't correctly parse the output gotten
from at least Oracle 11 (with german locales). I guess it's probably more.
Also it completely needlessly uses sed where basic bash string parsing actually
does more than suffice (and does not run into possible problems with locales
like sed ;)).
--
Just turning attached patch of github issue #1015 into a push request.
(Closes #1015 and #1191)
|