Page 1 of 2

Plugin VMWare Snapshots check

Posted: Tue Feb 05, 2019 10:08 am
by HaschkeD
Hello,
i'm searching for a Nagios Plugin that checks if snapshots exists on my vSphere 6.7 vCenter.
I'm using Nagios 3.x with NSClient on my Windows machines.
After upgrade to 6.7 the existing Plugin doesn't work.
With 6.0 my Plugin works fine.
Does anyone have a Plugin that works with 6.7?

Regards
Dennis

Re: Plugin VMWare Snapshots check

Posted: Tue Feb 05, 2019 10:47 am
by mcapra
HaschkeD wrote: After upgrade to 6.7 the existing Plugin doesn't work.
Can you provide a full copy of this "existing plugin"? Also, any error output this "existing plugin" is currently producing -- preferably with "verbose" output enabled if available.

box293_check_vmware is the go-to for most vmware things, and includes functionality for checking guest snapshots. I do not know if it is compatible with ESXi 6.7:
https://exchange.nagios.org/directory/P ... re/details

Re: Plugin VMWare Snapshots check

Posted: Tue Feb 05, 2019 11:03 am
by HaschkeD
This is the Plugin we used in the past:
https://labs.consol.de/nagios/check_vmware_snapshots/

This is the error:
Check VMware vCenter Snapshots
WARNING 05-02-2019 17:03:02 0d 0h 0m 28s 1/6 (null)

Re: Plugin VMWare Snapshots check

Posted: Wed Feb 06, 2019 3:57 am
by HaschkeD
I ask my Nagios admin and he said that the Plugin still works but the Problem is that the VMware vSphere CLI for Linux is too old and he can't upgrade to a new version…

Re: Plugin VMWare Snapshots check

Posted: Wed Feb 06, 2019 4:37 pm
by tgriep
Can you try and use version 6.5 of the VMWare Perl SDK instead of 6.7?
I have heard there are issues with 6.7 causing issues with VMWare plugins and 6.5 seems to work.

Re: Plugin VMWare Snapshots check

Posted: Thu Feb 07, 2019 1:38 am
by HaschkeD
Thats my Problem. The Nagios Admin have Problems to Upgrade the sdk to 6.5.
i Need a poweshell Skript for that. That Can i put on a Windows machine and Nagios can Check this via nsclient.

Re: Plugin VMWare Snapshots check

Posted: Thu Feb 07, 2019 1:57 pm
by tgriep
I found this plugin on the Exchange site. Are you looking for something like this?
https://exchange.nagios.org/directory/P ... 2E/details

Re: Plugin VMWare Snapshots check

Posted: Fri Feb 08, 2019 4:45 am
by HaschkeD
I try this script and fill in my vCenter data.
But i get the following:

Unknown script state…

:?

Re: Plugin VMWare Snapshots check

Posted: Fri Feb 08, 2019 10:52 am
by tgriep
Can you show us how you ran the script?
Did you update the Server, username and password in the script?
Did you use a username with sufficient permissions to poll the server and gather the data?

Re: Plugin VMWare Snapshots check

Posted: Fri Feb 08, 2019 11:10 am
by HaschkeD
Yes. I fill the variables like vcenter, datacenter,Username and password.
I Start the Powercli Shell and Start the Script.