vmsnapshot count monitoring

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
mejokj
Posts: 353
Joined: Mon Jul 22, 2013 10:31 pm

vmsnapshot count monitoring

Post by mejokj »

I have already configure snapshot age using vma, I need vmsnapshot count monitoring required for vmware.
dchurch
Posts: 858
Joined: Wed Oct 07, 2020 12:46 pm
Location: Yo mama

Re: vmsnapshot count monitoring

Post 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.
If you didn't get an 8% raise over the course of the pandemic, you took a pay cut.

Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
mejokj
Posts: 353
Joined: Mon Jul 22, 2013 10:31 pm

Re: vmsnapshot count monitoring

Post 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
dchurch
Posts: 858
Joined: Wed Oct 07, 2020 12:46 pm
Location: Yo mama

Re: vmsnapshot count monitoring

Post 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.
If you didn't get an 8% raise over the course of the pandemic, you took a pay cut.

Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
Locked