Hydra NAGIOS Plugin

Description

The Hydra NAGIS plugin is modified from the STS and Argus plugin. It is a python script that queries a Hydra service.

Installation

Prerequisites

The EGI Trust anchors .repo file is needed. You need to go here.

You also need to install the fetch-crl

yum install fetch-crl

From github

wget ---+ Hydra NAGIOS Plugin

Description

The Hydra NAGIS plugin is modified from the STS and Argus plugin. It is a python script that queries a Hydra service.

Installation

Prerequisites

The EGI Trust anchors .repo file is needed. You need to go here.

You also need to install the fetch-crl

yum install fetch-crl

From github

The RPM built by the following sequence of commands:

wget https://github.com/giovannibianco/Hydra_NAGIOS/blob/gh-pages/SRPMS/nagios-plugins-hydra-1.0.0-1.noarch.rpm?raw=true
mv nagios-plugins-hydra-1.0.0-1.noarch.rpm?raw=true  nagios-plugins-hydra-1.0.0-1.noarch.rpm

Then this RPM may be installed with:

rpm -ivh nagios-plugins-hydra-1.0.0-1.noarch.rpm

and will install the following:

/usr/libexec/grid-monitoring/probes/nagios-plugins-hydra
/usr/libexec/grid-monitoring/probes/nagios-plugins-hydra/framework
/usr/libexec/grid-monitoring/probes/nagios-plugins-hydra/framework/AbstractProbe.py
/usr/libexec/grid-monitoring/probes/nagios-plugins-hydra/framework/HTTPSHandler.py
/usr/libexec/grid-monitoring/probes/nagios-plugins-hydra/framework/Probe.py
/usr/libexec/grid-monitoring/probes/nagios-plugins-hydra/framework/StatusProbe.py
/usr/libexec/grid-monitoring/probes/nagios-plugins-hydra/framework/Version.py
/usr/libexec/grid-monitoring/probes/nagios-plugins-hydra/framework/__init__.py
/usr/libexec/grid-monitoring/probes/nagios-plugins-hydra/nagios-plugins-hydra.status
/usr/share/doc/nagios-plugins-hydra-1.0.0
/usr/share/doc/nagios-plugins-hydra-1.0.0/CHANGELOG
/usr/share/doc/nagios-plugins-hydra-1.0.0/COPYRIGHT
/usr/share/doc/nagios-plugins-hydra-1.0.0/LICENSE
/usr/share/doc/nagios-plugins-hydra-1.0.0/README.md
/var/lib/grid-monitoring/nagios-plugins-hydra

From EMI Repository

The Hydra NAGIOS probe can be installed from the EMI repository. Install the EMI release package.

 yum install yum-priorities yum-protectbase 

rpm -Uvh http://emisoft.web.cern.ch/emisoft/dist/EMI/3/sl5/x86_64/base/emi-release-2.0.0-1.sl6.noarch.rpm
or
rpm -Uvh http://emisoft.web.cern.ch/emisoft/dist/EMI/3/sl6/x86_64/base/emi-release-3.0.0-1.sl6.noarch.rpm

A host certificate should be installed on the machine that will make the NAGIOS calls.

Client Installation

The installation command is:
yum install nagios-plugins-hydra

Configuration

export PATH=$PATH:/usr/libexec/grid-monitoring/probes/nagios-plugins-hydra/

Operation

The operation of the probe is self-explanatory:

[jwhite@hip-paha-virt-12 src]$ ./nagios-plugins-hydra.status -h
Usage: nagios-plugins-hydra.status [options]

Options:
  --version             show program's version number and exit
  -h, --help            show this help message and exit
  -H HOSTNAME, --hostname=HOSTNAME The hostname of the service.
  -p PORT, --port=PORT  The port of the service. [default: 8443]
  -u URL, --url=URL     The status endpoint URL of the service. Example: https://hostname:port/status
  -t TIMEOUT, --timeout=TIMEOUT The TCP timeout for the HTTPS connection. [default: 20]
  -v, --verbose         verbose mode [default: False]

  SSL options:
    These options are used to set the SSL certificate to be used to
    authenticate with the PAP service.

    --cert=CERT         The SSL client certificate. [default: /etc/grid-security/hostcert.pem]
    --key=KEY           The private key (the key must be unencrypted). [default: /etc/grid-security/hostkey.pem]
    --capath=CAPATH     The directory where trust anchors are stored on the system. [default: /etc/grid-security/certificates]

If the -u URL option is used then the end-point is specified as eg.

[jwhite@hip-paha-virt-12 ~]$ nagios-plugins-hydra.status -u https://hip-paha-virt-14.cern.ch:8444/2/glite-data-hydra-service/services

If the -H host option is used then the probe will default to:

https://${fully qualified host name}:8443/glite-data-hydra-service/services

-- JohnWhite - 14-Sep-2012

Topic attachments
I Attachment History Action Size Date Who Comment
PDFpdf EMI_Hydra_NAGIOS_Guide.pdf r1 manage 264.7 K 2013-04-29 - 15:37 JohnWhite  
Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r6 - 2013-04-29 - JohnWhite
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    EMI All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback