Commit graph

124 commits

Author SHA1 Message Date
Sebastian Harl bc30719a44 JUNOS plugins: Dump response if verbose >= 5. 2012-10-01 09:41:03 +02:00
Sebastian Harl ed573d90a4 Merged branch 'master'. 2012-09-07 13:24:06 +02:00
Sebastian Harl 9f4663fefa check_junos: Enabled JUNOS tracing if verbose > 3. 2012-09-07 13:18:34 +02:00
Sebastian Harl 9a4955d2e2 Added notify_{host,service}_by_email.sh.
These scripts are similar to, but a bit more flexible than, the original
notify-*-by-email commands shipped with Nagios.
2012-09-03 17:34:22 +02:00
Sebastian Harl a7195e27ce check_junos: Provide debugging output about interfaces in forward check. 2012-08-31 14:47:08 +02:00
Sebastian Harl c559d48491 check_junos: Added support for the exclude feature to all checks. 2012-08-31 13:22:57 +02:00
Sebastian Harl 864a0e6dcd Nagios::Plugin::JUNOS, check_junos: Added basic support for excluding targets.
This may be done by prefixing the target name with '~' rather than '+'. For
example, this may be combined with @with_description when checking interfaces
to exclude some specific interface(s): interfaces,@with_description~ge-0/0/0.
2012-08-31 12:09:32 +02:00
Sebastian Harl a14dae1e62 check_junos: Include description of down interfaces in output. 2012-08-22 08:38:53 +02:00
Sebastian Harl f4d9395adc Ensure that the terminal is reset correctly after prompting for a password.
Thanks to Jonathan for reporting this!
Fixes #84
2012-07-19 08:54:47 +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
Sebastian Harl ba0184341f check_naf: Teach all vol_* checks target 'ALL'.
This target may be used to check all volumes against the specified thresholds.
This currently involves a lot of SNMP queries, so it's rather slow.
2012-07-13 11:52:32 +02:00
Sebastian Harl 3b0fa1b3d4 plugin_wrapper: Change return codes lt 0 or gt 3 to 3.
Else, Nagios will replace the plugin output with an hardcoded built-in value
to tell the user that the RC is out of range. However, when using the wrapper,
we're interested in the actual output.
2012-07-13 09:53:12 +02:00
Sebastian Harl 42f40c7c2b Added plugin_wrapper.pl.
This is a small wrapper to execute plugins, catching any errors, signals, etc.
returned by the script. This is primarily meant for Perl, Python, etc. scripts
to catch execution errors.
2012-04-30 10:39:42 +02:00
Sebastian Harl 1cfdcd3667 check_junos: Added -C option to cache interface information.
If used, this option will let the interfaces check query *all* interface
information on the first API call. This will then be used when further
querying interfaces (e.g. physical interfaces of aggregates).
2012-04-03 16:35:27 +02:00
Sebastian Harl e1da92dff9 check_naf_exports: Added check to compare /etc/exports to exportfs info. 2012-01-24 16:27:34 +01:00
Sebastian Harl 3f885a1a2b Added Nagios::Plugin::NetApp perl module.
This module is a subclass of Nagios::Plugin providing additional functions
common to NetApp related plugins.
2012-01-24 15:44:46 +01:00
Sven Velt fe13698167 naf: Retry to find volume with(out) ending slash
Signed-off-by: Sven Velt <sven@velt.de>
2012-01-10 10:46:55 +01:00
Sebastian Harl cf0603afc5 check_junos: Documented '@with_description'. 2012-01-05 10:37:08 +01:00
Sebastian Harl 7bbfea41ca check_junos: Added 'interface_forwarding' check.
Check the forwarding state of interfaces as provided by 'show
ethernet-switching interfaces'. Storm control, MAC limit and BPDUs will be
considered CRITICAL states. If a target is specified, only the specified
interface(s) will be taken into account. Targets may be specified as
<interface_name>:<forwarding_state> in which case a CRITICAL state is assumed
if the specified interface is not in the specified state.
2012-01-03 12:00:14 +01:00
Sebastian Harl 0d4f3dab1a Nagios::Plugin::JUNOS: send_query: Support fallback to JUNOS::Device::command. 2012-01-03 11:56:14 +01:00
Sebastian Harl 2700d4d4c8 check_junos: Improved description in help output. 2012-01-03 10:54:48 +01:00
Sebastian Harl 279c4bca47 check_junos: Use plural only when necessary ;-) 2012-01-03 10:41:59 +01:00
Sebastian Harl f53f346797 check_junos: 'chassis_environment' check: Use WARNING if no components found. 2012-01-03 10:35:28 +01:00
Sebastian Harl 6676d2b6d8 check_junos: Added OK message for the 'system_storage' check. 2012-01-03 10:28:00 +01:00
Sebastian Harl c001002a1f check_junos: Improved OK output for interfaces,@with_description+<iface>. 2012-01-03 10:24:51 +01:00
Sebastian Harl d051c32019 Nagios::Plugin::JUNOS: Added add_common_args(). 2012-01-03 10:21:38 +01:00
Sebastian Harl 75c3337376 Nagios::Plugin::JUNOS: Overwrite nagios_exit and call $junos->disconnect().
(Then call SUPER::nagios_exit.)
2012-01-03 10:16:31 +01:00
Sebastian Harl 09bbfe7c82 check_junos, Nagios::Plugin::JUNOS: Moved get_query_object{,_value} to JUNOS.pm. 2012-01-03 10:11:12 +01:00
Sebastian Harl 7cdc9390aa check_junos: Use get_object{,_value}_by_spec() wherever possible.
… rather than using dozens of specific functions.
2012-01-03 09:58:09 +01:00
Sebastian Harl e0e3fea452 check_junos, Nagios::Plugin::JUNOS: Moved send_query() to the plugin. 2012-01-03 09:24:25 +01:00
Sebastian Harl 85c8c6d28f check_junos, Nagios::Plugin::JUNOS: Pass $plugin and $junos to check subs. 2012-01-03 09:19:57 +01:00
Sebastian Harl 8e12d7e44c check_junos, Nagios::Plugin::JUNOS: Call checks from the plugin. 2012-01-03 09:16:15 +01:00
Sebastian Harl 1ef30b92b6 check_junos: Moved all checks into a new sub for each. 2012-01-03 08:40:41 +01:00
Sebastian Harl f4fdf36e4e Nagios::Plugin::JUNOS: Check, if configure() has been called. 2012-01-03 08:05:21 +01:00
Sebastian Harl 39111edfe3 Nagios::Plugin::JUNOS: Renamed add_checks() to set_checks().
The former will be used for a different purpose later.
2012-01-03 07:58:05 +01:00
Sebastian Harl 121c2fbe64 Added Nagios::Plugin::JUNOS perl module.
This module is a subclass of Nagios::Plugin providing additional functions
common to all JUNOS plugins.

For now, check_junos.pl has been "ported" to use the new plugin.
2012-01-02 17:08:19 +01:00
Sebastian Harl a99a7fb062 check_junos: Added 'system_storage' check.
This check may be used to check the amount of used space of any/all system
filesystems.
2012-01-02 15:04:35 +01:00
Sebastian Harl cfa7416676 check_junos: chassis_environment: Include threshold in perf-data. 2012-01-02 14:22:49 +01:00
Sebastian Harl 25d39b821b check_junos: chassis_environment: Check thresholds against temp of components. 2012-01-02 14:20:50 +01:00
Sebastian Harl 2614e18db7 check_junos: chassis_environment: Add temp values to perf-data. 2012-01-02 14:15:24 +01:00
Sebastian Harl 90915aa6a8 check_junos: chassis_environment: Support targets.
If a target has been specified, which is absent, this is treated as status
CRITICAL.
2012-01-02 14:08:47 +01:00
Sebastian Harl 0b0be0f9ea check_junos: Initial version of the 'chassis_environment' check.
This is similar to the check_snmp_environment juniper check.
2012-01-02 14:01:50 +01:00
Sebastian Harl c161956f0a junos_dump.pl: Added -s command line option.
This option may be used to specify a subelement of the query result.
2012-01-02 11:59:36 +01:00
Sebastian Harl cd2196ed75 junos_dump.pl: Initialize $outfile. 2012-01-02 11:40:19 +01:00
Sebastian Harl fbefc782d3 Added tools/junos_dump.pl.
This is a small helper script to dump the output of a JUNOScript query.
2012-01-02 11:02:13 +01:00
Sebastian Harl 172b20ca43 check_junos: Include information about LAG interface status in all OK cases. 2011-12-23 14:22:50 +01:00
Sebastian Harl fbfa6fa915 check_junos: Added special target '@with_description' to 'interfaces' check.
This target selects all interfaces with a non-empty description.
2011-12-23 14:15:40 +01:00
Sebastian Harl 46f1cbe20f check_junos: Include query arguments in debug output as well. 2011-12-23 14:15:22 +01:00
Sebastian Harl 49a8f26d7d check_junos: When encountering ae interfaces check their members as well. 2011-12-23 13:28:16 +01:00
Sebastian Harl da6d311326 check_junos: Improved description. 2011-12-22 09:17:12 +01:00