Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

check_lenovo_storage

Rating
0 votes
Favoured:
0
Current Version
1.1.0
Last Release Date
2022-05-16
Compatible With
  • Nagios 1.x
  • Nagios 2.x
  • Nagios 3.x
  • Nagios 4.x
  • Nagios XI
License
GPL
Hits
1459
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
Nagios check for lenovo thinksystem storage hardware via REST API
check_lenovo_storage

check Hardware for lenovo thinksystem storage via REST API
prerequisites

This script uses theses libs : REST::Client, Data::Dumper, Monitoring::Plugin, MIME::Base64, JSON, LWP::UserAgent, Readonly

to install them type :

sudo cpan REST::Client Data::Dumper Monitoring::Plugin MIME::Base64 JSON LWP::UserAgent Readonly

Use case

check_lenovo_storage.pl 1.1.0

This nagios plugin is free software, and comes with ABSOLUTELY NO WARRANTY.
It may be used, redistributed and/or modified under the terms of the GNU
General Public Licence (see http://www.fsf.org/licensing/licenses/gpl.txt).

Nagios check for lenovo thinksystem storage hardware via REST API

Usage: check_lenovo_storage.pl -H -p -u -P [-t ] [-a ]

-?, --usage
Print usage information
-h, --help
Print detailed help screen
-V, --version
Print version information
--extra-opts=[section][@file]
Read options from an ini file. See https://www.monitoring-plugins.org/doc/extra-opts.html
for usage and examples.
-H, --host=STRING
Hostname
-p, --port=INTEGER
Port Number
-a, --apiversion=string
The thinksystem API version
-u, --user=string
User name for api authentication
-P, --Password=string
User password for api authentication
-S, --ssl
The thinksystem use ssl
-t, --timeout=INTEGER
Seconds before plugin times out (default: 30)
-v, --verbose
Show details for command-line debugging (can repeat up to 3 times)

Exemples de commande à exécuter à partir du poller Nagios/Shinken/centreon :

check_lenovo_storage.pl -H -S -p 443 -u monitor -P "password"

you may get :

check_lenovo_storage OK - 2 powerSupplies ares healthy 2 controllers ares healthy 2 batteries ares healthy 10 drives ares healthy 4 fans ares healthy 6 thermalSensors ares healthy