Commit graph

12 commits

Author SHA1 Message Date
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 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 0d4f3dab1a Nagios::Plugin::JUNOS: send_query: Support fallback to JUNOS::Device::command. 2012-01-03 11:56:14 +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 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 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