Giter VIP home page Giter VIP logo

check_vsphere's Introduction

About

This is a monitoring plugin for naemon, icinga, nagios like systems. It is meant as a successor of check_vmware_esx. check_vmware_esx is written Perl but VMWare™ has dropped support for the Perl SDK. So this plugin is written in Python using pyVmomi.

Features

The plugin has modes to check various aspects of these components:

  • datastores
  • host-runtime
  • host-service
  • host-storage
  • host-nic
  • snapshots
  • vsan

Check the Documentation for further details.

Installation

pip install checkvsphere

LICENSE

If not stated otherwise in a source file everything is licensed under GNU AFFERO GENERAL PUBLIC LICENSE Version 3.

See also the LICENSE file.

check_vsphere's People

Contributors

datamuc avatar hiasg avatar nook24 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

check_vsphere's Issues

implement vsan object health check

In the GUI we can see:

Cluster->Monitor->Skyline Health->vsan object health

We can access that stuff with a stupid addon to pyVmomi:

https://developer.vmware.com/web/sdk/8.0/vsan-python

  • get VsanObjectOverallHealth of the Cluster
  • analyze the objectHealthDetail property
  • create a check result based on vim.host.VsanObjectHealth.VsanObjectHealthState
    of the objectHealthDetails

Here is an in depth explanation of VsanObjectHealthState:

https://kb.vmware.com/s/article/2108319

Datastore Monitoring

A usage monitoring of datastores like the volumes on check_vmware_esx would be nice

host-nic help

Review host-nic help, seems --ignored and --unplugged-state have the same docuementation ...

Snapshot checks

  • check_vmware_health
  • check_vmware_snapshots.pl

with modes

  • -S snapshots -s age
  • -S snapshots -s count

black/whitelisting is important

net nic

implement check_\vmware_esx' -S net -s nic

Check services

i.e.:

check_vmware_esx -S service -s service -W DCUI,vpxa,ntpd

dc runtime

Implement replacements for:

check_vmware_esx -D vcenter -S runtime -s listhost --alertonly
check_vmware_esx -D vcenter -S runtime -s listhosts
check_vmware_esx -D vcenter -S runtime -s listvms

probably check_vsphere dc-runtime ....

host maintenance

implement a check that is critical when a host is in maintenance

Runtime Health mode

Mode in the old plugin: check_vmware_esx -S runtime -s health

Example output:

OK: All 93 health checks are GREEN: fan (13x), processor (3x), CPU (5x), battery (1x), voltage (4x), systemBoard (1x), memory (1x), other (1x), Memory (5x), Storage (10x), power (10x), temperature (39x)

WARNING: 1 health issue(s) found in 78 checks: 1) [Warning] [Type: battery] [Name: Battery 1 Megacell Status] [Label: Yellow] [Summary: Sensor is operating under conditions that are non-critical]

CRITICAL: 1 health issue(s) found in 110 checks: 1) [Critical] [Type: Storage] [Name: Disk or Disk Bay 0 HDD1_STATUS: Drive Fault - Assert] [Label: Red] [Summary: Sensor is operating under critical conditions]

storage adapter

implement check_vmware_esx' -S storage -s adapter -B vmhba0,vmhba64,vmhba65,vmhba66,vmhba67

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.