NetBackup

Check Netbackup Media Volume Pool Size

Description:

Simple shell script to check how many tapes are in media volume pool. You may set thresholds to have warning and critical notifications.

Current Version

1.0

Last Release Date

2014-11-18

Compatible With

License

GPL


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!
Project Files
Project Photos
Project Notes
Description: Simple shell script to check how many tapes are in media volume pool. You may set thresholds to have warning and critical notifications. Usage: check_tape_pool -p|--pool media_pool_name [-l lower_threshold -u upper_threshold] [-r] [-v] [-h] Check how many tapes are in media volume pool you specify Options: -p or --pool media_pool_name, media volume pool to check -u or --upper upper_threshold -l or --lower lower_threshold -r or --reverse, to reverse notification alert -v or --version, to display version -h or --help, to display this help - option -p media_pool_name is mandatory - without thresholds, plugin returns number of tapes in media pool without sending notification - with thresholds, plugin notifies in following way: -- plugin returns warning if counted tapes in media_pool_name are between lower_threshold and upper_threshold -- plugin returns a critical if counted tapes in media_pool_name are below lower_threshold (default) -- with -r option, plugin returns a critical if counted tapes in media_pool_name are above upper_threshold Useful for: - monitoring when a volume pool is media oversizing - monitoring when scratch pool is media undersizing - monitoring number of tapes in a volume pool for statistics Plugin provides performance data output for parsing and for graphical use. Tested under RHEL, written using bash, good for linux. If running as nagios user - supposed nrpe - you need to configure sudo environment for using netbackup commands defined inside the plugin, i.e. - edit /etc/sudoers, running visudo - insert the following under "# Defaults specification" section # enabling nrpe user to execute sudo commands without a TTY Defaults:nrpe !requiretty - insert the following at end of file insert # enabling nrpe user to run netbackup commands needed nrpe ALL=(root) NOPASSWD: /usr/openv/volmgr/bin/vmquery nrpe ALL=(root) NOPASSWD: /usr/openv/volmgr/bin/vmpool Examples: [root@netbackup]# check_tape_pool -p Scratch OK - available tapes in Scratch : 35|availability=35; [root@netbackup]# check_tape_pool -p Scratch -l 10 -u 15 OK - available tapes in Scratch : 35|availability=35; root@netbackup]# check_tape_pool -p Scratch -l 20 -u 40 WARNING - available tapes in Scratch : 35|availability=35; [root@netbackup]# check_tape_pool -p Scratch -l 40 -u 50 CRITICAL - available tapes in Scratch : 35|availability=35; [root@netbackup]# check_tape_pool -p Scratch -r -l 10 -u 15 CRITICAL - available tapes in Scratch : 35|availability=35;
Reviews (0) Add a Review
Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
0 (0)
Favorites
0
Views
14,434