Accepting request 962015 from server:monitoring

- increase version to 1.4
- fix POD errors shown in 'check_qlogic_sanbox -h' output
- general POD cleanup
- Renamed package to monitoring-plugins-qlogic_sanbox
- update to 1.3 (thanks to Christian Fertig):
  + added configurable warning and critical options for sensor 4
    (the CPU sensor)
  + added explanation for --filename option in help text
- license update following SPDX format
- increase the temperature warnings for sensor 4 to 70/75 - looks 
  more useful (and shown in manual, too)
- temp sensor 4 (only with firmware 8.x) seems to be
  cpu-temperature, use special warn and crit levels
- specify timeout also for snmp-session 
- add maxmsgsize, more useful error output 
- initial version

OBS-URL: https://build.opensuse.org/request/show/962015
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/monitoring-plugins-qlogic_sanbox?expand=0&rev=2
This commit is contained in:
Dominique Leuenberger 2022-03-16 19:20:39 +00:00 committed by Git OBS Bridge
commit 12878ce100
3 changed files with 57 additions and 48 deletions

View File

@ -47,7 +47,7 @@ $ENV{'BASH_ENV'} = '';
$ENV{'ENV'} = '';
our $conf = {
'VERSION' => '1.3',
'VERSION' => '1.4',
'PROGNAME' => 'check_qlogic_sanbox',
'timeout' => '60',
'critical' => '45',
@ -373,45 +373,25 @@ exit $exitcode;
__END__
=head1 check_qlogic_sanbox
=head1 NAME
check_qlogic_sanbox is a Nagios plugin, allowing to check QLogic FC Sanboxes.
This plugin has been tested with the following QLogic switches:
=over 4
=item SANbox 5200 FC Switch
=item SANbox 5202 FC Switch
=item SANbox 5600 FC Switch
=item SANbox 5602 FC Switch
=item SANbox 5800 FC Switch
=back
check_qlogic_sanbox - check health of QLogic SANbox FC switch
=head1 SYNOPSIS
./check_qlogic_sanbox -H $HOSTNAME$ --community public
check_qlogic_sanbox -H $HOSTNAME$ [ options ]
Options:
-H <HOSTNAME> | --hostname <HOSTNAME>
-w <int> | --warning <int>
-c <int> | --critical <int>
-t <int> | --timeout <int>
-C <string> | --community <string>
-V <string> | --snmp-version <string>
-p <int> | --port <int>
-f <file> | --filename <file>
-f <file> | --filename <file>
--sensor4_warn <int>
--sensor4_crit <int>
-h | --help
-d | --debug
@ -419,35 +399,35 @@ This plugin has been tested with the following QLogic switches:
=over 8
=item B<--hostname> F<hostname>
=item B<--hostname> I<hostname>
The name of the Sanbox. Default: localhost (which makes no sense).
The hostname/IP of the SANbox. Default: localhost (which makes no sense).
=item B<--critical> F<int>
=item B<--critical> I<int>
Critical temperature level. Default is 45 degrees Celsius.
Critical temperature level. Default: 45 degrees Celsius.
=item B<--warning> F<int>
=item B<--warning> I<int>
Warning temperature level. Default is 35 degrees Celsius.
Warning temperature level. Default: 35 C
=item B<--timeout> F<int>
=item B<--timeout> I<int>
Timeout until the plugin times out with result UNKNOWN.
=item B<--community> F<string>
=item B<--community> I<string>
SNMP community string to use. Default: public.
=item B<--port> F<int>
=item B<--port> I<int>
SNMP port to use. Default: 161.
=item B<--snmp-version> F<string>
=item B<--snmp-version> I<string>
SNMP version to use. Default: 2c.
=item B<--filename F<path_to_file>
=item B<--filename> F<path_to_file>
You can put the configuration in a file with ini-file syntax (using the hostname as section separator) using the long format of the available options.
@ -468,15 +448,15 @@ Example:
sensor4_crit=65
The script should be called with the hostname/IP and the filename option like:
B<$USER1$/check_qlogic_sanbox -H 192.168.0.1 --filename /etc/nagios-plugins/sanboxes.ini>
C<$USER1$/check_qlogic_sanbox -H 192.168.0.1 --filename /etc/nagios-plugins/sanboxes.ini>
=item B<--sensor4_warn F<int>
=item B<--sensor4_warn> I<int>
Warning temperature level for the CPU sensor (Sensor 4). Default is 70 degrees Celsius.
Warning temperature level for the CPU sensor (Sensor 4). Default: 70 C
=item B<--sensor4_crit F<int>
=item B<--sensor4_crit> I<int>
Critical temperature level for the CPU sensor (Sensor 4). Default is 75 degrees Celsius.
Critical temperature level for the CPU sensor (Sensor 4). Default: 75 C
=item B<--help>
@ -490,13 +470,32 @@ Print debug output on STDERR.
=head1 DESCRIPTION
check_qlogic_sanbox is a Nagios plugin which checks QLogic SANbox Fibre Channel
switches via SNMP.
This plugin has been tested with the following QLogic switches:
=over 4
=item SANbox 5200 FC Switch
=item SANbox 5202 FC Switch
=item SANbox 5600 FC Switch
=item SANbox 5602 FC Switch
=item SANbox 5800 FC Switch
=back
=head1 AUTHORS
Written by Lars Vogdt <lrupp@suse.de>
=head1 SUPPORT
Please use https://bugzilla.novell.com to submit patches or suggest improvements.
Please use https://bugzilla.opensuse.org to submit patches or suggest improvements.
Include version information with all correspondence (when possible use output from
the --version option of the plugin itself).

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Tue Mar 15 21:00:26 UTC 2022 - Dirk Stoecker <opensuse@dstoecker.de>
- increase version to 1.4
-------------------------------------------------------------------
Fri Mar 4 20:52:36 UTC 2022 - Andrew Daugherity <adaugherity@tamu.edu>
- fix POD errors shown in 'check_qlogic_sanbox -h' output
- general POD cleanup
-------------------------------------------------------------------
Wed Jul 30 19:20:22 UTC 2014 - lars@linux-schulserver.de
@ -42,4 +53,3 @@ Tue Jun 5 01:33:11 CEST 2012 - ro@suse.de
Sat May 5 17:11:23 UTC 2012 - lars@linux-schulserver.de
- initial version

View File

@ -1,7 +1,7 @@
#
# spec file for package monitoring-plugins-qlogic_sanbox
#
# Copyright (c) 2013-2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2022 SUSE LLC
# Author: Lars Vogdt
#
# All modifications and additions to the file contributed by third parties
@ -13,7 +13,7 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
@ -21,9 +21,9 @@ Name: monitoring-plugins-qlogic_sanbox
Summary: Check QLogic FC Sanboxes
License: BSD-3-Clause
Group: System/Monitoring
Version: 1.3
Release: 100
Url: http://en.opensuse.org/Monitoring-plugins-qlogic_sanbox
Version: 1.4
Release: 0
URL: https://en.opensuse.org/Monitoring-plugins-qlogic_sanbox
Source0: check_qlogic_sanbox
Requires: perl(Getopt::Long)
Requires: perl(Net::Ping)