VMware snapshots

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
Prometheus
Posts: 60
Joined: Wed Mar 09, 2016 1:23 am

VMware snapshots

Post by Prometheus »

I there a way to monitor my VMguests for snapshots? I dont want my VM's to have active snapshots without me knowing about it. Is there a way to test this?

Greets,
Jeffrey
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

VMWare ESXi? Version?

If MOB enabled, setup URL test
URL https://vmware_host/mob/?moid=vmid
(replace vmware_host with real hostname or IP address, replace vmid with real ID)

Enable "Check content" test option
Should contain VirtualMachineSnapshotInfo</td><td>Unset</td>

Regards
Alex
Prometheus
Posts: 60
Joined: Wed Mar 09, 2016 1:23 am

Post by Prometheus »

Its a creative solution but it works :D Thnx
Ben
Posts: 27
Joined: Tue Dec 04, 2018 2:15 am

Post by Ben »

Hi,

I'm updating the topic as I'm trying to monitor my VM's snapshots too.

The solution seems good, but I can't get this test to work because (I think) the authentification required by the MOB web page is keeping the test from working.
Completing the authentification fields in the test options doesn't seem to do the trick.

Any help regarding vmware needed configuration or test tweaking would be appreciated.

Regards

Ben
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

HostMonitor version?
VMWare version?
Windows? Service Pack? IE version?
Your registration name?

What exactly means "can't get this test to work"?
test status Bad? Unknown? No answer?

Regards
Alex
Ben
Posts: 27
Joined: Tue Dec 04, 2018 2:15 am

Post by Ben »

Host monitor 11.74

HPE Customized Image ESXi 5.5.0 Update 3 version 550.9.6.5.9

The agent is running on a 2008R2 SP1 with IE 11

The test returns a no answer though I can manage to browse to the URL with IE after completing authentification.

Thanks for your answer,


Ben
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

By default TLS 1.0 should be enabled on such ESXi server.
This means HostMonitor 11.74 + Windows Server 2008 R2 with IE 11 should work..

Could you check what TLS protocols enabled on this ESXi server?
Also you may try to move HostMonitor to Windows Server 2012-2019
(or install RMA agent on Windows 2016 and use agent to perform test)

Regards
Alex
Ben
Posts: 27
Joined: Tue Dec 04, 2018 2:15 am

Post by Ben »

The agent performing the test is on a 2012R2 and honestly I can't get a newer for this customer.


I came to understand that the test is giving me a "no answer" anytime I try to check a https page with a certificate error.

No issues when I'm checking google.com for exemple, or even a local webpage.
I tried other webpages with a certificate warning and I always have a "no answer" frome the test. Even when enabling "ignore unkown certificate authority problem"

Now I can't find a way to get the appropriate certificate to avoid that warning when navigating from that server.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

The agent performing the test is on a 2012R2 and honestly I can't get a newer for this customer.
Result? What test status you see performing test using RMA?
I came to understand that the test is giving me a "no answer" anytime I try to check a https page with a certificate error.
Test performed by HostMonitor? or RMA?
HostMonitor and RMA shows the same "No answer" status?
Even when enabling "ignore unkown certificate authority problem"
There are 3 options related to "bad" certificates.
Are you sure all 3 enabled? These options have 3 states:
- not checked
- checked-grey (means test will use global options located in Options dialog so you should see "Settings for URL test" option on Misc page in Options dialog)
- check (test option will override global options)

You did not provide your registration name yet.

Regards
Alex
Ben
Posts: 27
Joined: Tue Dec 04, 2018 2:15 am

Post by Ben »

-Still a "no answer" status

-Test is always performed by an agent in this case because the ESXi page is only accessible on the local network.

-Other options are greyed
Image

I'm not testing the full mob URL because it requires an authentification and I first would like to be sure I can test an URL before completing all my parameters.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Other options are greyed
As I said this means test will use global options located in Options dialog so you should check/mark "Settings for URL test" options located on Misc page in Options dialog.
Or you may just mark these options, change from "gray" to "marked" state.

Regards
Alex
Last edited by KS-Soft on Mon Dec 10, 2018 9:18 am, edited 1 time in total.
Ben
Posts: 27
Joined: Tue Dec 04, 2018 2:15 am

Post by Ben »

I found the Option you were talking about, only available to an admin account.

I does the trick, effectively passig through certificate error.

Content check is working with the character string you provided.

I can't achieve to find info about the "Unset" value though, what does is really means?

Thanks a lot for your help in troubleshooting this test setup.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

I can't achieve to find info about the "Unset" value though, what does is really means?
This means there is no snapshot.
In such case test will set Ok status.

Regards
Alex
Kris
Posts: 375
Joined: Wed May 12, 2010 3:22 am

Post by Kris »

This is how I did it, using vCenter, Powershell and VMWare PowerCLI:

- Install VMWare PowerCLI on your HostMonitor machine
- Create 'external test', using the following command:

Code: Select all

C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe -c "Get-Module -Name VMware* -ListAvailable | Import-Module;connect-viserver <Your_vCenter_Server>;$res=(get-vm|get-snapshot).count;If($res -eq $null) {$res=0};Exit $res"
Replace <Your_vCenter_Server> with you vCenter server name.

The Powershell command exits with the number of running snapshots as errorlevel.
It also has a little error handling, returning '0' when the actual result is 'null'.

Good luck!
Post Reply