Monitor how many (virtual) tapes are left available in Datadomain

Written by - 0 comments

Published on - Listed in Nagios Hardware Backup Monitoring


As of today there's only one Nagios plugin available to check a Datadomain storage (check_dd.pl, written by Pierre Gremaud back in January 2008). It allows to check the Datadomain host for used disk space and for triggered alerts.

This is good so far but backups can still fail, when there are no virtual tapes left/when all virtual tapes are 100% used (even when there is still a lot of disk space left).

It is actually quite easy to monitor the status for available tapes as well, the important SNMP OID is .1.3.6.1.4.1.19746.1.11.2.4.1.1.7:

# snmpwalk -v 1 -c public mydatadomainhost .1.3.6.1.4.1.19746.1.11.2.4.1.1.7
SNMPv2-SMI::enterprises.19746.1.11.2.4.1.1.7.0 = STRING: "100.0"
SNMPv2-SMI::enterprises.19746.1.11.2.4.1.1.7.1 = STRING: "100.0"
SNMPv2-SMI::enterprises.19746.1.11.2.4.1.1.7.2 = STRING: "100.0"
SNMPv2-SMI::enterprises.19746.1.11.2.4.1.1.7.3 = STRING: "100.0"
SNMPv2-SMI::enterprises.19746.1.11.2.4.1.1.7.4 = STRING: "100.0"
SNMPv2-SMI::enterprises.19746.1.11.2.4.1.1.7.5 = STRING: "100.0"
SNMPv2-SMI::enterprises.19746.1.11.2.4.1.1.7.6 = STRING: "100.0"
SNMPv2-SMI::enterprises.19746.1.11.2.4.1.1.7.7 = STRING: "100.0"
SNMPv2-SMI::enterprises.19746.1.11.2.4.1.1.7.8 = STRING: "100.0"
SNMPv2-SMI::enterprises.19746.1.11.2.4.1.1.7.9 = STRING: "100.0"
SNMPv2-SMI::enterprises.19746.1.11.2.4.1.1.7.10 = STRING: "100.0"
SNMPv2-SMI::enterprises.19746.1.11.2.4.1.1.7.11 = STRING: "100.0"
SNMPv2-SMI::enterprises.19746.1.11.2.4.1.1.7.12 = STRING: "100.0"
SNMPv2-SMI::enterprises.19746.1.11.2.4.1.1.7.13 = STRING: "1.6"
...

This OID shows the utilization in percent of all virtual tapes - yes, the list can be long! With this list one can calculate the amount of tapes left available for backups.

I quickly wrote a small plugin (check_dd_vtapes.sh) which checks for the virtual tapes left available for backups/usage:

# ./check_dd_vtapes.sh --help
check_dd_vtapes.sh (c) 2012 Claudio Kuenzler published under GPL license

Usage: ./check_dd_vtapes.sh -H host [-C community] -w warning -c critical

Requirements: snmpwalk, grep, awk, sed


Options:   -H hostname (name or IP address of your Datadomain)
           -C Name of SNMP community to be used (default is public)
           -w Warning Threshold (warning alert when only number of tapes are left available)
           -c Critical Threshold (critical alert when only number of tapes are left available)

Note: The plugin checks for the available virtual tapes left. So thresholds must be smaller than the actual available tapes.

Example: ./check_dd_vtapes.sh -H datadomain01 -C public -w 20 -c 5
This checks if at least 20 virtual tapes are available. If there are only 20 or less tapes left, a warning alert will be issued.



# ./check_dd_vtapes.sh -H mydatadomainhost -w 600 -c 550
DataDomain CRITICAL. 524 virtual tapes are available. 476 are 100% used.|ddtapes=524;476

As this is a very small plugin, I won't create a dedicated page for it.
You may DOWNLOAD THE PLUGIN check_dd_vtapes.sh HERE <- link. Enjoy.

In case you want to create graphs with Nagiosgraph, here's the map entry:

# Service Type: check_dd_vtapes.sh
# Regex by Claudio Kuenzler
# Output: 524 virtual tapes are available. 476 are 100% used.
# Perfdata: ddtapes=524;476
/perfdata:ddtapes=(\d+);(\d+)/
and push @s, [vtapes,
     ['available', GAUGE, $1 ],
     ['full', GAUGE, $2 ] ];


Add a comment

Show form to leave a comment

Comments (newest first)

No comments yet.

RSS feed

Blog Tags:

  AWS   Android   Ansible   Apache   Apple   Atlassian   BSD   Backup   Bash   Bluecoat   CMS   Chef   Cloud   Coding   Consul   Containers   CouchDB   DB   DNS   Database   Databases   Docker   ELK   Elasticsearch   Filebeat   FreeBSD   Galera   Git   GlusterFS   Grafana   Graphics   HAProxy   HTML   Hacks   Hardware   Icinga   Influx   Internet   Java   KVM   Kibana   Kodi   Kubernetes   LVM   LXC   Linux   Logstash   Mac   Macintosh   Mail   MariaDB   Minio   MongoDB   Monitoring   Multimedia   MySQL   NFS   Nagios   Network   Nginx   OSSEC   OTRS   Office   OpenSearch   PGSQL   PHP   Perl   Personal   PostgreSQL   Postgres   PowerDNS   Proxmox   Proxy   Python   Rancher   Rant   Redis   Roundcube   SSL   Samba   Seafile   Security   Shell   SmartOS   Solaris   Surveillance   Systemd   TLS   Tomcat   Ubuntu   Unix   VMWare   VMware   Varnish   Virtualization   Windows   Wireless   Wordpress   Wyse   ZFS   Zoneminder