IBM BladeCenter temprature monitor
Hi All,
I'm trying to monitor the front panel temprature on a IBM bladecenter the OID is
.1.3.6.1.4.1.2.3.51.2.2.1.5 I can pull out the value but the problem is that it returns a string ie 22.5 centigrates.
I cant use this value to trigger any alarm.
so I had created the following VBScript
Set SnmpObj = CreateObject("SScripting.SNMPManager")
SnmpObj.Agent = Wscript.Arguments(0)
SnmpObj.Variables.Add ".1.3.6.1.4.1.2.3.51.2.2.1.5"
SnmpObj.GetNext()
SnmpValue=SnmpObj.Variables.Item(1).Value
RfSnmp = Left(SnmpValue,5)
Temprature = CDbl(Rfsnmp)
WScript.Echo "Value1" &vbTab & Temprature
WScript.Quit(0)
the script works great but I can't use it as a custom monitor since it's not using WMI.
I had followed the procedure in http://forums.manageengine.com/forumHome.do?forumGroupId=49000000002007&forumTopicId=49000002642569
but had no luck
Opmanager_graphinfo.xml
<DEFAULTGRAPH Name="IBMBladeTemperatureReading"> <YAXISTEXT>Temperature (centigrade)</YAXISTEXT> <DISPLAYNAME>IBMBlade Temperature Reading</DISPLAYNAME> <name>IBMBladeTemperatureReading</name> <Vendor>IBM Blade Center</Vendor> <Monitor>Vendor Specific</Monitor> <Description>Monitors the Current Reading of this Temperature Sensor</Description> <oid>IBMBladeTemperatureReading</oid> <type>node</type> <timeAvg>false</timeAvg> <interval>900</interval> <THRESHOLDENABLED>false</THRESHOLDENABLED> <Index>IBMBladeTemperatureReading</Index> <DisplayColumn>IBMBladeTemperatureReading</DisplayColumn> <FAILURETHRESHOLD>1</FAILURETHRESHOLD> </DEFAULTGRAPH>
Hostresource.xml
<CATEGORY ID="IBMBladeTemperatureReading" command="GetBladeTemp.vbs" parseAll="false" description="Monitors the Current Reading of this Temperature Sensor">
<ENTITY ID="IBMBladeTemperatureReading" storeHistory="true" storeValue="Value1" units="Degrees Centigrates" comparePreValue="false">
<PARSE line="3" name="Value1"/> </ENTITY>
</CATEGORY>
All I need is to convert the temprature value returned to a number instead of a string.
can anyone advice me
New to ADSelfService Plus?