Meinberg NTP Timeserver GPS170 – OpenNMS

Posted: 22nd März 2012 by Thorben Hemmler in OpenNMS

### datacollection.xml ###

<group name="lantime" ifType="ignore">        
  <mibObj oid=".1.3.6.1.4.1.5597.3.2.8" instance="0" alias="GpsSat" type="DisplayString" />
  <mibObj oid=".1.3.6.1.4.1.5597.3.2.9" instance="0" alias="GpsSatGood" type="Integer32" />
  <mibObj oid=".1.3.6.1.4.1.5597.3.2.10" instance="0" alias="GpsSatInView" type="Integer32" />
</group>

  <systemDef name="Meinberg-GPS170">
    <sysoid>.1.3.6.1.4.1.5597.3</sysoid>
    <collect>
      <includeGroup>lantime</includeGroup>  
    </collect>
  </systemDef>

### snmp-graph.properties ###

reports=meinberg.GpsSat, meinberg.GpsSatGood, meinberg.GpsSatInView

######
###### Reports for Meinberg
######

report.meinberg.GpsSat.name=Meinberg GPS Sat
report.meinberg.GpsSat.columns=GpsSat
report.meinberg.GpsSat.type=nodeSnmp
report.meinberg.GpsSat.command=--title="Meinberg GPS Sat" \
--vertical-label="Percent" \
DEF:mbgpssat={rrd1}:GpsSat:AVERAGE \
AREA:mbgpssat#ff0000:"GPS Sat " \
GPRINT:mbgpssat:AVERAGE:"Avg \\: %8.2lf %s" \
GPRINT:mbgpssat:MIN:"Min \\: %8.2lf %s" \
GPRINT:mbgpssat:MAX:"Max \\: %8.2lf %s\\n"

report.meinberg.GpsSatGood.name=Meinberg GPS Sat Good
report.meinberg.GpsSatGood.columns=GpsSatGood
report.meinberg.GpsSatGood.type=nodeSnmp
report.meinberg.GpsSatGood.command=--title="Meinberg GPS Sat Good" \
--vertical-label="Percent" \
DEF:mbgpssatg={rrd1}:GpsSatGood:AVERAGE \
AREA:mbgpssatg#ff0000:"GPS Sat Good " \
GPRINT:mbgpssatg:AVERAGE:"Avg \\: %8.2lf %s" \
GPRINT:mbgpssatg:MIN:"Min \\: %8.2lf %s" \
GPRINT:mbgpssatg:MAX:"Max \\: %8.2lf %s\\n"

report.meinberg.GpsSatInView.name=Meinberg GPS Sat in View
report.meinberg.GpsSatInView.columns=GpsSatGood
report.meinberg.GpsSatInView.type=nodeSnmp
report.meinberg.GpsSatInView.command=--title="Meinberg GPS Sat in View" \
--vertical-label="Percent" \
DEF:mbgpssativ={rrd1}:GpsSatInView:AVERAGE \
AREA:mbgpssativ#ff0000:"GPS Sat in View " \
GPRINT:mbgpssativ:AVERAGE:"Avg \\: %8.2lf %s" \
GPRINT:mbgpssativ:MIN:"Min \\: %8.2lf %s" \
GPRINT:mbgpssativ:MAX:"Max \\: %8.2lf %s\\n"

### Meinberg.events.xml ###

Download hier

Die Datei muss dann noch etsprechend umbenannt werden.