Home Directory Plugins Backup and Recovery check hycu target usage

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 hycu target usage

Rating
0 votes
Favoured:
0
Current Version
1.0.2
Last Release Date
2023-01-24
Compatible With
  • Nagios 1.x
  • Nagios 2.x
  • Nagios 3.x
  • Nagios 4.x
License
GPL
Hits
1175
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 that use HYCUs REST API to get HYCU target storage usage and status
check_hycu_target

Nagios check that use HYCUs REST API to get HYCU target storage usage and status
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_hycu_target.pl 1.0.2

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 that uses HYCUs REST API to get target status and storage usage

Usage: check_hycu_target.pl -H -p -u -P [-w ] [-c ] [-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
HYCU API version
-u, --user=string
User name for api authentication
-P, --Password=string
User name for api authentication
-n, --name=STRING
target name
-S, --ssl
The hycu serveur use ssl
-w, --warning=threshold
See https://www.monitoring-plugins.org/doc/guidelines.html#THRESHOLDFORMAT for the threshold format.
-c, --critical=threshold
See https://www.monitoring-plugins.org/doc/guidelines.html#THRESHOLDFORMAT for the threshold format.
-t, --timeout=INTEGER
Seconds before plugin times out (default: 30)
-v, --verbose
Show details for command-line debugging (can repeat up to 3 times)

sample :

check_hycu_target.pl -H MyHYCUserver --ssl -p 8443 -a v1.0 -u user@domain -P Password -c :90 -w :80

check_hycu_target.pl -H MyHYCUserver --ssl -p 8443 -a v1.0 -u user@domain -P Password -c :90 -w :80 -n MyStorage

check_hycu_target.pl -H MyHYCUserver --ssl -p 8443 -a v1.0 -u user@domain -P Password -c :90 -w :80 -n wtf

you may get :

check_hycu_target OK - Targets ARCHIVE_HYCU, MyStorage, MyStorage1, S3-Scaleway are ok | ARCHIVE_HYCU=12.90%;:80;:90 MyStorage=21.66%;:80;:90 MyStorage1=21.57%;:80;:90 S3-Scaleway=58.27%;:80;:90

check_hycu_target OK - Target MyStorage is ok | MyStorage=21.65%;:80;:90

check_hycu_target UNKNOWN - Target not found. Available target(s) are : ARCHIVE_HYCU, MyStorage, MyStorage1, S3-Scaleway