Check VMWare Snapshot sizes (Visit this link)

rating from 0 votes
This shell script uses the output of the "find" command (published via snmp to avoid check_by_ssh or NRPE) to locate all the existing snapshots. It checks the size of each snapshot and based on your criteria sends a CRITICAL or OK status. Helps find forgotten snapshots that are growing out of control before they become a problem.
Inspired by "jacob"'s script check_snmp_snapshot.sh.

Nagios check script for vmware snapshots sizes

add the following to your ESX server in the /etc/snmp/snmpd.conf and restart the snmpd deamon
exec .1.3.6.1.4.1.6876.99999.2 snapshots /etc/snmp/snapshots.sh

If that OID is in use, increment the last number and modify the 'snmpwalk' line accordingly

snapshot.sh should contains these lines.
#!/bin/sh
/usr/bin/find /vmfs/volumes/ -name '*delta*.vmdk' -printf %f' '%s'\n'

make sure it's executable by using the following command
chmod a+x /etc/snmp/snapshots.sh

Call this command as follows:
check_snmp_esx_snapshots.sh [devicename] [snmp read community] [crit]

So far the script doesn't support a WARNING level, only CRITICAL and OK.

Tested with ESX 3.5 and Nagios 3.0.3 running on OpenBSD 4.4

Submitted by: lahrcm
Hits: 1002
Overall downloads: 104
Added: 2009-03-04 00:00:00
Last Modified: 2009-12-10 18:05:16

Filename Preview Size Description DL
check_snmp_esx_snapshots.sh Preview 3 kb check_snmp_esx_snapshots 354

Comments


Be the first to comment this project.

Leave a reply

If you just want to rate the project leave the other field empty.
Even though it would be nice if you would drop a line.

Allowed tags: blockquote, strong, a, b, i, u, code

Captcha Reload Image


  • Check hardware running VMware ESXi

    rating3 from 3 votes
    Python script which permits you to check your hardware's health when it runs VMware (free) ESXi appliance.
  • check_esx

    rating2 from 4 votes
    Check CPU, Memory, Network, and VM Status on a VMWare ESX virtual server, via SNMP. Also support for MRTG querying, and listing VMs/interfaces. V2.3 fixes minor problems triggered by the Nagios 2 embedded perl compiler. Now superceeded by check_vmware which uses VC API instead of SNMP: http://www.steveshipway.org/forum/viewtopic.php?f=28&t=1648
  • check_esx3

    rating4 from 1 votes
    Nagios plugin made by www.op5.com which is compatible with ESX 3.5 which uses the VMWare API (via HTTPS) to do a wide variety of checks. You can check out the latest version with GIT from their repository at git://git.op5.org/nagios/op5plugins.git Requires the Nagios::Plugin CPAN module as well as the "VMware Infrastructure (VI) Perl Toolkit Packages" available from http://www.vmware.com/download/sdk/ See http://www.op5.com/support/documentation/how-to/400-monitoring-vmware-esx-3x-and-vmware-esxi for Nagios Command definitions, although the latest version of the script supports additional checks which aren't listed on that webpage yet, so you'll probably need to make a few more up.
  • check_vmware3.pl

    rating5 from 1 votes
    A nagios check plugin for VMware ESX Server based on the perl API.
    You need the VMware perl API to use it. (And you need to patch that API to get rid of a bug in it)
    Including the Netways NagiosGrapherV1 templates to get nice graphs.
    look at it on http://nagioswiki.org/wiki/Plugin:check_vmware3.pl
  • check_esxvm

    rating from 0 votes
    This perl script check the state of the Virtual Machines defined on an ESX server.
  • check_snmp_vmfs.sh

    rating4.5 from 2 votes
    This shell script uses the output of the "vdf" command (published via snmp to avoid check_by_ssh or NRPE) to determine the free space of a given vmfs volume as measured in GB.
  • VMWare ESX guest status checks

    rating1 from 1 votes
    Check some aspects of VMWare ESX guests (cpu, memorry, netio, kernel and status)
  • check_esx3

    rating1 from 1 votes
    This plugin allows you to check esx3/esx3i datastores, host and VMs cpu, host and VMs memory usage using the VMware Perl tool kit.
  • check esx datastores aka VMFS filesystems using Python and CIM

    rating from 0 votes
    Good Afternoon guys, here I created another Python Script. This script will check your DataStores aka VMFS. I built this script so that it can be used with Nagios and or Zenoss. The purpose of this script is so that you can monitor thresholds on a per DataStore/VMFS. You will need to download and install Pywbem in order to use this script. Script is available here http://www.linuxdynasty.org/check-esx-datastores-using-python-and-cim.html
  • check_vmware_server_1.x

    rating1 from 2 votes
    Used to list Vmvare Server 1.x
    1) Inventory
    2) HOST RAM (total, not assigned, not used by Guest Machine)
    3) GUEST RAM ( assigned and used by Guest Machine
    4) Path file of Guest Machine on the File System
    
Catalot 1.3.0 (appkit/v0.9.0-dev, Agavi/1.0.0) | www.netways.de | Legal
© 2009 NETWAYS GmbH. The Program is provided AS IS, without warranty. Licensed under GPLv3.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3.