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

VM-Ware ESX snapshot check

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 determine the existance of any snapshot files in a directory an its subdirectories within VM-Ware ESX servers.
Nagios check script for vmware - checks existance of snapshot files (*.vmsn)

please add the following to your ESX server in the /etc/snmp/snmpd.conf and restart the snmpd deamon
"exec . find /usr/bin/find /vmfs/volumes/ -name *.vmsn"

Call this command as follows: [devicename] [snmp read community] [warn] [crit]

[warn] should be smaller than [crit]
This script checks if there are any *.vmsn files existing in /vmfs/volumes/* which indicates that there are running snapshots.
[warn]/[crit] defines the maximum number of allowed snapshots before setting a WARN or CRIT state.

The script is tested with Nagios v. 3.0.1 and an ESX 3.5 installation with English language.
You might be able to use it with other versions of Nagios, too with small modifications (e.g. multi line output).
Use at your own risk.