Extending the GLUE CE Schema

Introduction

The output of the Ganglia MDS Information Provider (IP) that gets published into MDS is determined by the GLUE CE Schema . Our goal is to modify the Ganglia IP and extend the Schema so that richer (additional) information from the Ganglia monitoring system makes it into MDS.

Ganglia Information that gets Published into MDS

The original Ganglia information that is published per host is:
Common NameAttribute
(OID)
objectclass
(OID)
Hostname GlueHostName
1.3.6.1.4.1.8005.100.3.2.3.1
GlueHost
1.3.6.1.4.1.8005.100.3.1.3
A Unique ID assigned to the host GlueHostUniqueID
1.3.6.1.4.1.8005.100.3.2.3.2
GlueHost
1.3.6.1.4.1.8005.100.3.1.3
Processor Load, 1 Min Average GlueHostProcessorLoadLast1Min
1.3.6.1.4.1.8005.100.3.2.10.1
GlueHostProcessorLoad
1.3.6.1.4.1.8005.100.3.1.10
Processor Load, 5 Min Average GlueHostProcessorLoadLast5Min
1.3.6.1.4.1.8005.100.3.2.10.2
GlueHostProcessorLoad
1.3.6.1.4.1.8005.100.3.1.10
Processor Load, 15 Min Average GlueHostProcessorLoadLast15Min
1.3.6.1.4.1.8005.100.3.2.10.3
GlueHostProcessorLoad
1.3.6.1.4.1.8005.100.3.1.10
SMP Load, 1 Min Average GlueHostSMPLoadLast1Min
1.3.6.1.4.1.8005.100.3.2.11.1
GlueHostSMPLoad
1.3.6.1.4.1.8005.100.3.1.11
SMP Load, 5 Min Average GlueHostSMPLoadLast5Min
1.3.6.1.4.1.8005.100.3.2.11.2
GlueHostSMPLoad
1.3.6.1.4.1.8005.100.3.1.11
SMP Load, 15 Min Average GlueHostSMPLoadLast15Min
1.3.6.1.4.1.8005.100.3.2.11.3
GlueHostSMPLoad
1.3.6.1.4.1.8005.100.3.1.11
Number of CPUs GlueHostArchitectureSMPSize
1.3.6.1.4.1.8005.100.3.2.4.2
GlueHostArchitecture
1.3.6.1.4.1.8005.100.3.1.4
Processor Clock Speed (MHz) GlueHostProcessorClockSpeed
1.3.6.1.4.1.8005.100.3.2.5.4
GlueHostProcessor
1.3.6.1.4.1.8005.100.3.1.5
The name of the Network Interface GlueHostNetworkAdapterName
1.3.6.1.4.1.8005.100.3.2.9.1
GlueHostNetworkAdapter
1.3.6.1.4.1.8005.100.3.1.9
Network Adapter IP address GlueHostNetworkAdapterIPAddress
1.3.6.1.4.1.8005.100.3.2.9.2
GlueHostNetworkAdapter
1.3.6.1.4.1.8005.100.3.1.9
The amount of RAM GlueHostMainMemoryRAMSize
1.3.6.1.4.1.8005.100.3.2.7.1
GlueHostMainMemory
1.3.6.1.4.1.8005.100.3.1.7
Free RAM (in KBytes) GlueHostMainMemoryRAMAvailable
1.3.6.1.4.1.8005.100.3.2.7.2
GlueHostMainMemory
1.3.6.1.4.1.8005.100.3.1.7

Extensions in the Original Glue-CE Schema

Publishing the time when the host information was reported to gmond

As you can see above in the Ganglia Information that gets published into MDS section, there is no time attribute associated with the host information. Ganglia, though, does report time. In its XML output the <HOST> element has a REPORTED attribute which provides the UNIX time when a particular host has last contacted the Ganglia Monitoring Daemon gmond. Here is a part of the XML output file:
<HOST NAME="blc010.bnl.gov" IP="130.199.74.188" REPORTED="1053638543" TN="4" TMAX="20" DMAX="0" LOCATION="unspecified" GMOND_STARTED="1047673040">
<METRIC NAME="load_one" VAL="2.00" TYPE="float" UNITS="" TN="2" TMAX="70" DMAX="0" SLOPE="both" SOURCE="gmond"/>
<METRIC NAME="load_fifteen" VAL="2.00" TYPE="float" UNITS="" TN="150" TMAX="950" DMAX="0" SLOPE="both" SOURCE="gmond"/>
..........................
</HOST>
To publish the time information, I have modified the original Glue-CE schema and added a GlueHostReportedTime attributetype in the GlueHost Objectclass:
    attributetype ( 1.3.6.1.4.1.8005.100.3.2.3.3
    NAME        'GlueHostReportedTime'
    DESC        'Time the Host has Last Reported to gmond '
    EQUALITY            integerMatch
    ORDERING            caseIgnoreOrderingMatch
    SYNTAX              1.3.6.1.4.1.1466.115.121.1.27
    SINGLE-VALUE)
     
The Ganglia Information Provider has been modified to supply the REPORTED attribute value of the HOST element.
Make sure you restart MDS after you implement the above changes in the original Glue-CE Schema.

Stratos Efstathiadis - page was last modified