Commit graph

22 commits

Author SHA1 Message Date
Sven Velt e59b1a8c6e monitoringplugin.py: Enhance verbose output function
- one space per verbose level at the begining
- optional prefix (for list output)
- output lists one item per line
2016-11-11 17:38:43 +01:00
Sven Velt 925cbb2297 monitoringplugins.py: two multiline output fixes
- typo: saved with wrong key
- list may be a list of lists
2016-11-11 17:38:37 +01:00
Sven Velt 23ed549cce Hide plugin help when set to None 2016-09-13 14:42:09 +02:00
Sebastian Harl 0c44bdc599 monitoringplugin: Cache values as well when using cmdline tools.
This is even more important imho :-)
2012-07-13 12:45:58 +02:00
Sven Velt 1ad2c11b17 mp: Test if SNMP command line tools/paths are executable
fixes #6

Signed-off-by: Sven Velt <sven@velt.de>
2011-08-30 15:49:38 +02:00
Sven Velt 2ee9428885 mp/naf: Allow units for warn/crit thresholds and ranges
Signed-off-by: Sven Velt <sven@velt.de>
2011-08-30 12:13:17 +02:00
Sven Velt 1a7b38f6f6 monitoringplugin: Add seconds_to_timedelta()
Signed-off-by: Sven Velt <sven@velt.de>
2011-07-15 11:55:33 +02:00
Sebastian Harl 264b0f5f21 monitoringplugin: Added seconds_to_hms() method.
This method converts seconds to H:MM:SS representation (as a string).
2011-05-04 14:07:55 +02:00
Sven Velt 24ed140d4a monitoringplugin: Shorter output for 1 check in brain
Signed-off-by: Sven Velt <sven@velt.de>
2011-04-28 11:17:35 +02:00
Sven Velt 9b2009c2c8 *: Add GPL header, check_*: catch import error
Signed-off-by: Sven Velt <sven@velt.de>
2011-03-17 10:10:05 +01:00
Sven Velt 779250f8eb monitoringplugin: Return 0.0 as warn/crit at dehumanizing when total=0
check_naf vol_snap needs this for working flawlessly

Signed-off-by: Sven Velt <sven@velt.de>
2011-02-11 13:42:36 +01:00
Sven Velt fa6dc16dc4 monitoringplugin: Don't output warn/crit as 1.23e+45...
Signed-off-by: Sven Velt <sven@velt.de>
2011-02-11 13:42:06 +01:00
Sven Velt 5450ea1345 monitoringplugins: Fix verbose output with SNMP command line utils
Signed-off-by: Sven Velt <sven@velt.de>
2011-02-07 11:15:38 +01:00
Sven Velt de35c63ad8 Change help output
Signed-off-by: Sven Velt <sven@velt.de>
2011-01-28 15:07:42 +01:00
Sven Velt 619ce45d73 Refactor return code search, new function
Signed-off-by: Sven Velt <sven@velt.de>
2011-01-25 12:43:52 +01:00
Sven Velt e0a860273c Fix SNMPGET with idx
Signed-off-by: Sven Velt <sven@velt.de>
2011-01-25 12:43:32 +01:00
Sven Velt 96c8da392b Fix table finder - don't crash but return UNKNOWN
Signed-off-by: Sven Velt <sven@velt.de>
2011-01-25 10:52:57 +01:00
Sven Velt a03ed7df41 Small fix
Signed-off-by: Sven Velt <sven@velt.de>
2011-01-25 10:51:48 +01:00
Sven Velt b87107d163 naf: Added "ops"
Signed-off-by: Sven Velt <sven@velt.de>
2011-01-18 13:12:45 +01:00
Sven Velt 3714bd8fcd Don't crash if there are no thresolds
Signed-off-by: Sven Velt <sven@velt.de>
2011-01-13 16:42:35 +01:00
Sven Velt 634f1c5703 Small collected fixes and improvments
Signed-off-by: Sven Velt <sven@velt.de>
2011-01-12 13:51:36 +01:00
Sven Velt f1e35939eb Initial commit
Signed-off-by: Sven Velt <sven@velt.de>
2010-09-09 18:52:56 +02:00