Custom Monitors - Testing Failed
Hi,
I'm relatively new to OpManager and have been trying to add a custom monitor that uses a WMI visual basic script to monitor whether a server is attached to its cluster. I have followed multiple guidelines found on these forums until i have:
1. Copied the Script to the correct Folder (I have tested the code in cmd and it works fine)
2. Edited the 2 necessary .xml files
3. Added the monitor to a test server
The test server isn't load balanced so the usual script will not work, however i have created a test script that gives the following output when run in CMD:
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved
1
(The 1 is hardcoded to return that value all the time)
So, the script works fine. and so i added the custom monitor from within OpManager and applied it to the test server only to find that on the testing page, all i get is "The Monitor did not respond to the test request" with the following possible reasons:
1. Check if SNMP is enabled on this device.
2. The SNMP request might have timed out
3. The OID may not have been implemented in the MIB.
4. The device might be down
I'm afraid i lack the experience with the OpManager system to be able to effectively find why since none of the reasons checked out. The best i can tell is i've messed up on the xml editing somewhere.
This may be a complete mess to you, but i have been trying for ages to get it to work. This is what i inserted in the HostResource.xml document under the Windows 2003 poll:
<CATEGORY ID="ClusterStatus" command="ClusterStatus.vbs" parseAll="false" ignoreLines="2" description="This Checks to see if the server is attached to the cluster or not">
<ENTITY ID="ClusterStatus" storeValue="ClusterStatus" storeHistory="true" units="%" >
<PARSE line="3" token="1" name="ClusterStatus"/>
</ENTITY>
</CATEGORY>
My thoughts in this are i may have misunderstood the "ingoreLines" and "PARSE line" concept.
And this is what i put in the opmanager_graphInfo.xml file:
<CUSTOMGRAPH Name="ClusterStatus">
<YAXISTEXT>Percentage</YAXISTEXT>
<DISPLAYNAME>Cluster Status</DISPLAYNAME>
<name>ClusterStatus</name>
<Vendor>WMI</Vendor>
<Description>multiple</Description>
<oid>ClusterStatus</oid>
<Provider>WMI</Provider>
<type>multiple</type>
<interval>30</interval>
<GROUPNAME>WMI</GROUPNAME>
<THRESHOLDENABLED>false</THRESHOLDENABLED>
<FAILURETHRESHOLD>1</FAILURETHRESHOLD>
</CUSTOMGRAPH>
As you can see, the script's name is ClusterStatus.vbs.
Any help is well appreciated.
thanks in advance
New to ADSelfService Plus?