1
0
mirror of https://github.com/opinkerfi/nagios-plugins.git synced 2024-11-25 11:53:48 +01:00

disclaimer added

This commit is contained in:
Páll Guðjón Sigurðsson 2010-09-01 20:55:07 +00:00
parent 86290aa91a
commit 5f68c6b671

View File

@ -1,4 +1,32 @@
#!/usr/bin/python #!/usr/bin/python
#
# Copyright 2010, Pall Sigurdsson <palli@opensource.is>
#
# check_eva.py is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# check_eva.py is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# About this script
#
# This script will check the status of all EVA arrays via the sssu binary.
# You will need the sssu binary in path (/usr/bin/sssu is a good place)
# If you do not have sssu, check your commandview CD, it should have both
# binaries for Windows and Linux
# First some defaults # First some defaults
@ -38,19 +66,22 @@ import subprocess
def print_help(): def print_help():
print "check_eva version %s" % version print "check_eva version %s" % version
print "This plugin of HP EVA Array with the sssu command" print "This plugin checks HP EVA Array with the sssu command"
print "" print ""
print "Usage: %s [OPTIONS]" % argv[0] print "Usage: %s [OPTIONS]" % argv[0]
print "OPTIONS:" print "OPTIONS:"
print " [--host <host>]" print " [--host <host>]"
print " [--username <user>]" print " [--username <user>]"
print " [--password <password]" print " [--password <password]"
print " [--path </path/to/sssu>]"
print " [--mode <mode>] " print " [--mode <mode>] "
print " [--test]" print " [--test]"
print " [--debug]" print " [--debug]"
print " [--help]" print " [--help]"
print "" print ""
print " Valid modes are: %s" % ', '.join(valid_modes) print " Valid modes are: %s" % ', '.join(valid_modes)
print ""
print "Example: %s --host commandview.example.net --username eva --password myPassword --mode check_systems" % (argv[0])
def error(errortext): def error(errortext):