Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

check_sr.py

Current Version
1.1.3
Last Release Date
2013-08-09
Compatible With
  • Nagios 3.x
Owner
License
GPL
Hits
58520
Files:
FileDescription
check_sr.pycheck_sr.py v1.1.3, performance metrics output fixes for pnp4nagios
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
check_sr.py
check_sr.py is a Nagios check plugin for Citrix XenServer (also should work on XCP), it checks storage SR utilization %. It uses XenAPI.

Its compatible with Centreon's storage/disk graph template. You can choose performance metric output format: pnp4nagios or centreon.

v1.1.3 fixes pnp4nagios performance metrics output
check_sr.py is a Nagios plugin for Citrix XenServer (also should work on XCP), it checks storage SR utilization %. It uses XenAPI.

Usage: ./check_sr.py XenServer_IP username password sr_name warning_level critical_level

- Uses https to connect to XenServer, if you have a pool, use a poolmaster IP/FQDN
- is a case sensitive
- Uses (python) XenAPI, download it from Citrix, http://community.citrix.com/display/xs/Download+SDKs
- tested on CentOS 5.8 / python 2.x, should work on any modern distro/python AFAIK

nagios command defination:

define command{
command_name check_xenserver_sr
command_line $USER1$/check_sr.py $ARG1$ "$USER15$" "$USER16$" "$ARG2$" $ARG3$ $ARG4$
}

USER16 and USER15 are username and password in resource.cfg