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

Directory Tree

VM-Ware ESX snapshot check

Rating
0 votes
Favoured:
0
Hits
99146
Files:
FileDescription
check_snmp_snapshot.shcheck_snmp_snapshot.sh
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 .1.3.6.1.4.1.6876.99999.2 find /usr/bin/find /vmfs/volumes/ -name *.vmsn"

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