Home Directory Plugins Backup and Recovery NetBackup Check Netbackup Media Volume Pool Size

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

Check Netbackup Media Volume Pool Size

Rating
0 votes
Favoured:
0
Current Version
1.0
Last Release Date
2014-11-18
License
GPL
Hits
10043
Files:
FileDescription
check_tape_poolcheck number of tapes in media volume pool
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
Check Netbackup Media Volume Pool Size
Simple shell script to check how many tapes are in media volume pool. You may set thresholds to have warning and critical notifications.
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;