Plugin VMWare Snapshots check

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
HaschkeD
Posts: 44
Joined: Tue Feb 02, 2016 8:35 am

Plugin VMWare Snapshots check

Post 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
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Plugin VMWare Snapshots check

Post 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
Former Nagios employee
https://www.mcapra.com/
HaschkeD
Posts: 44
Joined: Tue Feb 02, 2016 8:35 am

Re: Plugin VMWare Snapshots check

Post 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)
HaschkeD
Posts: 44
Joined: Tue Feb 02, 2016 8:35 am

Re: Plugin VMWare Snapshots check

Post 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…
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Plugin VMWare Snapshots check

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
HaschkeD
Posts: 44
Joined: Tue Feb 02, 2016 8:35 am

Re: Plugin VMWare Snapshots check

Post 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.
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Plugin VMWare Snapshots check

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
HaschkeD
Posts: 44
Joined: Tue Feb 02, 2016 8:35 am

Re: Plugin VMWare Snapshots check

Post by HaschkeD »

I try this script and fill in my vCenter data.
But i get the following:

Unknown script state…

:?
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Plugin VMWare Snapshots check

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
HaschkeD
Posts: 44
Joined: Tue Feb 02, 2016 8:35 am

Re: Plugin VMWare Snapshots check

Post by HaschkeD »

Yes. I fill the variables like vcenter, datacenter,Username and password.
I Start the Powercli Shell and Start the Script.
Locked