KS-Soft. Network Management Solutions
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister    ProfileProfile    Log inLog in 

VMware snapshots

 
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting
View previous topic :: View next topic  
Author Message
Prometheus



Joined: 09 Mar 2016
Posts: 60

PostPosted: Thu May 19, 2016 7:20 am    Post subject: VMware snapshots Reply with quote

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
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12792
Location: USA

PostPosted: Thu May 19, 2016 3:06 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
Prometheus



Joined: 09 Mar 2016
Posts: 60

PostPosted: Fri May 20, 2016 2:57 am    Post subject: Reply with quote

Its a creative solution but it works Thnx
Back to top
View user's profile Send private message
Ben



Joined: 04 Dec 2018
Posts: 18

PostPosted: Tue Dec 04, 2018 3:45 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12792
Location: USA

PostPosted: Tue Dec 04, 2018 6:13 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
Ben



Joined: 04 Dec 2018
Posts: 18

PostPosted: Tue Dec 04, 2018 7:55 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12792
Location: USA

PostPosted: Tue Dec 04, 2018 8:23 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
Ben



Joined: 04 Dec 2018
Posts: 18

PostPosted: Wed Dec 05, 2018 9:32 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12792
Location: USA

PostPosted: Wed Dec 05, 2018 11:10 am    Post subject: Reply with quote

Quote:
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?

Quote:
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?

Quote:
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
Back to top
View user's profile Send private message Visit poster's website
Ben



Joined: 04 Dec 2018
Posts: 18

PostPosted: Thu Dec 06, 2018 8:44 am    Post subject: Reply with quote

-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


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.
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12792
Location: USA

PostPosted: Thu Dec 06, 2018 9:08 am    Post subject: Reply with quote

Quote:
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
Back to top
View user's profile Send private message Visit poster's website
Ben



Joined: 04 Dec 2018
Posts: 18

PostPosted: Mon Dec 10, 2018 3:53 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12792
Location: USA

PostPosted: Mon Dec 10, 2018 9:17 am    Post subject: Reply with quote

Quote:
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
Back to top
View user's profile Send private message Visit poster's website
Kris



Joined: 12 May 2010
Posts: 375

PostPosted: Fri Dec 14, 2018 5:13 am    Post subject: Reply with quote

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:
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!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

KS-Soft Forum Index