Vss snapshot monitoring

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
boxy_25
Posts: 26
Joined: Tue Dec 02, 2003 3:49 am
Location: France
Contact:

Vss snapshot monitoring

Post by boxy_25 »

Hi Alex,

We saw that the recently cyberattacks starts by disabling the vss snapshots on all servers.
We use vss snapshot on our file servers because it is very usefull for restoring files and folders, especilally when a user get some files encrypted by ransomware...
We'd like HM to monitor if snapshots are available and renewed.
I've tried to monitor the snap files but it seems that its not accessible because it's system files.
The only command i found is "vssadmin list shadows" that list all the snaps, but i cannot use it in HM
any idea how i can do that??
Thanks.
boxy_25
Posts: 26
Joined: Tue Dec 02, 2003 3:49 am
Location: France
Contact:

Post by boxy_25 »

I found a way to count snapshots with powershell

Code: Select all

(Get-CimInstance win32_shadowcopy).count
So if the output is 0 there is a pb. else it's ok
I've try to put that in a shell test but it doesn't work. I'm not very familiar with shell test...
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Script result should look like
scriptres:Ok:5
or
scriptres:Bad:0
or
scriptres:Bad:snapshot missed

HostMonitor does not know what results are good, what results are bad so you should tell HostMonitor what status to set

https://www.ks-soft.net/hostmon.eng/mfr ... m#shellres

Regards
Alex
Post Reply