VMware Cloud Community
SirHaschke
Enthusiast
Enthusiast

Check Snapshots with Nagios

Hello,
with vSphere 6.0 we had a Plugin for Nagios  to check the snapshots in vCenter.
With vSphere 6.7 this Plugin doesn't work.
Have anyone a solution to watch the active snapshots with 6.7 with Nagios?

Regards
Dennis

0 Kudos
6 Replies
IRIX201110141
Champion
Champion

Moin Dennis,

we have created a POSH script for that job because lack of perl talent. The script just check against the snapshot database on the vCenter and ignore VM names with "_replica" or "_tmpl" in the name. We can blacklist VMs because if you have Horizon, AppVolume,... you will have VMs with regular long living snapshots. The warning and critical alert is based on how old the first snapshot of the VM is.

vm_snap.png

Within the extended information we list the effected VMs.

Regards,

Joerg

0 Kudos
SirHaschke
Enthusiast
Enthusiast

Such a script we need 🙂

But i don't understand POSH..... 😞

0 Kudos
IRIX201110141
Champion
Champion

PowerShell

Regards,

Joerg

0 Kudos
SirHaschke
Enthusiast
Enthusiast

OK. Powershell 🙂

But i'm not a PoSh specialist.

I'm Looking for sample scripts in the web but i found Nothing that i can use…….. 😞

0 Kudos
daphnissov
Immortal
Immortal

Isn't this a Nagios problem? If so, wouldn't it be better to ask them?

0 Kudos
sjesse
Leadership
Leadership

The actual script is powercli  you may want to ask this in the powercli sub forum. The format just needs to be formated to where nagios sees them, I have script I wrote, I just don't have this one yet. It might be Useful to ask someone in the nagios forums first though to get exactly what nagios is looking for. If I get time I may create this since we use nagios as well and I like idea of this monitor.

0 Kudos