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


Remember Me

Directory Tree

Check VMWare Snapshot sizes

0 votes
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
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

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 . snapshots /etc/snmp/

If that OID is in use, increment the last number and modify the 'snmpwalk' line accordingly should contains these lines.
/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/

Call this command as follows: [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