Page 1 of 1
vmsnapshot count monitoring
Posted: Wed Dec 23, 2020 10:49 am
by mejokj
I have already configure snapshot age using vma, I need vmsnapshot count monitoring required for vmware.
Re: vmsnapshot count monitoring
Posted: Wed Dec 23, 2020 2:35 pm
by dchurch
The current plugin that ships with Nagios,
check_vmware_api.pl isn't capable of listing or counting the snapshots.
I'd look into this other third-party plugin,
check_vmware_esx.pl - It mentions in the source code listing snapshots, so that may work for you.
You can use this plugin
in addition to using
check_vmware_api.pl - you don't have to change over your existing services, but some consider the check_vmware_api.pl plugin abandonware.
Re: vmsnapshot count monitoring
Posted: Thu Dec 24, 2020 7:10 am
by mejokj
Hello,
We have already configure vm snapshot age using Vmware vma.
Please find the below link .
We want to know same as for Vmsnapshot count using Vmware Vma.
The below is the command to get the vmsnapshot age which we are using and getting valid data.
Command: /usr/local/nagios/libexec/check_by_ssh -E 1 -t 30 -l vi-admin -H VmaHost -C "~/box293_check_vmware.pl --timeout 30 –server Vcenter.informatica.com --check Guest_Snapshot --host $HOSTNAME$.informatica.com --warning snapshot_age:10 --critical snapshot_age:14 "
https://exchange.nagios.org/directory/P ... re/details
Re: vmsnapshot count monitoring
Posted: Mon Dec 28, 2020 1:06 pm
by dchurch
After looking through the source code for that plugin, it doesn't seem to support counting the snapshots. It supports scanning for "oldest snapshot" like you appear to already use, but not snapshot count.
Since this is a third-party plugin, if I were you, I'd get in touch with the developers to request this feature.
You could always try searching for or developing a different plugin.