Commit graph

69 commits

Author SHA1 Message Date
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 2a9c069e9d naf: Fix copytright message
Signed-off-by: Sven Velt <sven@velt.de>
2011-08-30 11:44:09 +02:00
Sven Velt b3d826a515 Zypper: Check if zypper is executable
Signed-off-by: Sven Velt <sven@velt.de>
2011-08-30 11:30:10 +02:00
Sven Velt 48300110fd sensors: Bump timeout to 15 minutes
Signed-off-by: Sven Velt <sven@velt.de>
2011-07-25 17:59:25 +02:00
Sven Velt e877ec4127 Add "commands.cfg" as sample command definitions
Signed-off-by: Sven Velt <sven@velt.de>
2011-07-15 13:50:54 +02:00
Sven Velt 5c0c5fbb66 netconnections: Count IPv4 *and* IPv6 as default
Signed-off-by: Sven Velt <sven@velt.de>
2011-07-15 12:22:23 +02:00
Sven Velt c7bca97633 Add "check_iface-dns.py"
Check to get IP address from interface make sure that one or more DNS entries
point to this IP adress. Use it to check DynDNS services.

Signed-off-by: Sven Velt <sven@velt.de>
2011-07-15 11:58:21 +02:00
Sven Velt d715b13e03 sensors: Show file age if sensor file is too old
Signed-off-by: Sven Velt <sven@velt.de>
2011-07-15 11:55:58 +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 9f17c3c838 Added example PNP piechart template for check_naf. 2011-07-12 14:44:48 +02:00
Sven Velt 067257f04a check_zypper.sh: Initial commit 2011-07-11 14:59:17 +02:00
Sebastian Harl 6db7b3357f check_junos_vc: Added 'version' check.
… which checks the version of all physically connected members to be equal.
2011-07-06 11:46:34 +02:00
Sebastian Harl a2c2f4844e Added initial version of check_junos_vc.pl.
The plugin connect to a Juniper Switch and checks Virtual Chassis information.
It supports the following checks:

 * members_count: Number of Virtual Chassis members.

 * master, backup: Number and assignment of master resp. backup members.

 * interfaces: State and number of VCP interfaces.

Warning and critical ranges may be specified for each single check.

The format for specifying checks is:
checkname[,target[,warning[,critical]]]
2011-07-05 17:21:13 +02:00
Sebastian Harl 0aff58d0cc check_junos_bgp.pl: Suppress 'wide character in print' warnings. 2011-06-30 11:41:18 +02:00
Sebastian Harl ff970c8dc6 Added initial version of check_junos_bgp.pl.
The plugin connects to a Juniper Router and queries BGP routing information
using the 'show bgp neighbor' command. It then executes any of the following
checks:

 * peers_count: Total number of peers.
 * prefix_count: Number of active prefixes of single peers.

Each check may consider a subset of peers only. This is done by specifying a
"target" which may either be an IPv4/IPv6 address, a regex or a string. In the
latter two cases, the regex/string is compared with the peer description.

Warning and critical ranges may be specified for each single check.

The format for specifying checks is:
checkname[,target[,warning[,critical]]]
2011-06-30 11:28:28 +02:00
Sebastian Harl 2705a45384 check_naf PNP templ: Print nav* totals at bottom of the legend.
In the case of navi* (INodes), the total was not previously included in the
legend at all, making it easy to mix up the 'total' line with the 'used' value
in case a very small percentage was in use.

In general, printing the total at the bottom imho makes the graph easier to
read, as the legend now describes the graph from bottom to top.
2011-06-22 11:27:13 +02:00
Sven Velt 2121ccf5fc Added CIFS users and stats checks
Signed-off-by: Sven Velt <sven@velt.de>
2011-06-16 13:45:41 +02:00
Sven Velt 8148cfafaa Small change to fix encoding error on non-UTF-8 systems
Signed-off-by: Sven Velt <sven@velt.de>
2011-06-08 11:46:52 +02:00
Sebastian Harl 800c1ecf0b NAF: Output SV/SM lag and thresholds in H:MM:SS as well. 2011-05-04 14:08:36 +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 2904249055 naf: Fix lag calculation
Signed-off-by: Sven Velt <sven@velt.de>
2011-05-03 17:00:30 +02:00
Sven Velt f6dc072417 NAF: snapmirror,ALL[...] added, cleanup SM/SV
All common tasks (of SM and SV) are now in common_sm_sv_* functions.

Signed-off-by: Sven Velt <sven@velt.de>
2011-04-29 12:34:35 +02:00
Sven Velt 184aa70023 NAF: Add "ALL" to snapvault check
Also "ALLVERBOSE" and "ALLVERBDEBUG" are implemented. Be careful, not
much testing done.

Signed-off-by: Sven Velt <sven@velt.de>
2011-04-28 13:04:45 +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 4075e806f9 netconnections: Rename PerfData label
Signed-off-by: Sven Velt <sven@velt.de>
2011-03-16 16:06:56 +01:00
Sven Velt 1b4ac41953 NAF: Small fixes to PNP template
Signed-off-by: Sven Velt <sven@velt.de>
2011-03-16 12:53:15 +01:00
Sven Velt f232450fec Fix template for host overview - WIP
Signed-off-by: Sven Velt <sven@velt.de>
2011-03-14 19:16:30 +01:00
Sven Velt 5072d4cd20 PNP4Nagios template for check_naf - WIP!
Signed-off-by: Sven Velt <sven@velt.de>
2011-03-14 18:54:53 +01:00
Sven Velt bc429c89ee Still WIP: check_nagiostats
Signed-off-by: Sven Velt <sven@velt.de>
2011-02-18 15:35:38 +01:00
Sven Velt a2a3788f72 WIP: check_nagiostat
Signed-off-by: Sven Velt <sven@velt.de>
2011-02-18 11:37:46 +01:00
Sven Velt 1bf71dec01 check_naf: vol_snap now works with no snap reserve
Signed-off-by: Sven Velt <sven@velt.de>
2011-02-11 13:43:43 +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 d2d3d41b5a check_naf: Remove redundancy
Signed-off-by: Sven Velt <sven@velt.de>
2011-02-11 13:40:04 +01:00
Sven Velt 2d20d3ab55 check_netconnections: Count network connections on server
Counts network connection for a port, could use TCP and/or UDP and IPv4
and/or IPv6

Signed-off-by: Sven Velt <sven@velt.de>
2011-02-09 14:26:18 +01:00
Sven Velt 8e955a68bb check_naf: Added "--snmpwalk X" for debugging
Signed-off-by: Sven Velt <sven@velt.de>
2011-02-07 20:17:58 +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 bc11e7f665 check_sensors: Add support for multiple data lines per file
Signed-off-by: Sven Velt <sven@velt.de>
2011-01-28 19:16:49 +01:00
Sven Velt ff3b795663 check_sensors: Allow hex sensor ids
Signed-off-by: Sven Velt <sven@velt.de>
2011-01-28 18:59:23 +01:00
Sven Velt d76966cca8 check_sensors: Re-add timestamp to regexp, use it in output, accept "degC" as unit
Signed-off-by: Sven Velt <sven@velt.de>
2011-01-28 18:48:16 +01:00
Sven Velt d0516bfe43 check_sensors: Change base filename, make it cmdline option
Signed-off-by: Sven Velt <sven@velt.de>
2011-01-28 18:47:24 +01:00
Sven Velt f26d4c7975 check_sensors: Renamed from check_tl500
Signed-off-by: Sven Velt <sven@velt.de>
2011-01-28 18:25:04 +01:00
Sven Velt 844df48033 check_tl500: Change regexp and use file mtime instead of content
Signed-off-by: Sven Velt <sven@velt.de>
2011-01-28 18:24:14 +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 5be69abaf3 Add "snapmirror" and "snapvault" checks
Signed-off-by: Sven Velt <sven@velt.de>
2011-01-25 12:44:23 +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 b39a35b389 Added interfaces statistics
Signed-off-by: Sven Velt <sven@velt.de>
2011-01-25 11:16:36 +01:00