I am trying to add this custom monitor for VMFS

I am trying to add this custom monitor for VMFS

 
Hi,
 
I am trying to add this custom monitor I copied the text below from the host resource.xml file can you please fill in the mysql command that relates to my new entry. For ii iii and iv I just copied what was in the fields , can you please fill in what should be in the field for the datbase.Thanks:

i)update graphdetails set protocolid=2 where graphname like %Free Disk Space in GB VMFS%';

ii)delete from devicepackagetograph where graphid=<graphid value for the custom monitor in graphdetails table>;

iii)delete from vendorgraphdetails where graphid=<graphid value for the custom monitor in graphdetails table>;

iv)insert into standardgraphdetails values (3,<graphid value for the custom monitor in graphdetails table>);


 

<CATEGORY ID="Free Disk Space in GB VMFS" command="/bin/vdf -m" parseAll="true" ignoreLines="1" description="Percentage of space used in each partition on the disk VMFS.">

<ENTITY ID="DiskUtilization" applyThresholdOver="curValue" threshold="Th6" storeHistory="true" units="%" storeValue="curValue/1024" comparePreValue="false">

<PARSE token="6" name="partitionName" isEntityName="true"/>

<PARSE token="4" name="curValue">

<OPTIONS ignoreCharsFrom="%"/>

</PARSE>

</ENTITY>

</CATEGORY>

Question : How to Create a Custom Monitor in OpManager Version 7 and above ?

Solution :Follow the Steps


1)Edit the HostResource.XML file and create a custom category for the custom monitor. Add the custom category under the correct poll id, i.e Linux, solaris etc.

Check the link below to know more about the HostResource.XML file and to create the custom monitors.

http://support.opmanager.com/sd/AddSolution.sd?solID=8401


2) Goto the Device Template for the particular category and add a bulk monitor , where the SNMP OID is the Category ID (from HostResource.XML file) and save it and then modify the template, but do not apply the changes to the devices.


3) After following the above steps, connect to the Database and execute the queries below.


i)update graphdetails set protocolid=2 where graphname like %<Category id>%';

ii)delete from devicepackagetograph where graphid=<graphid value for the custom monitor in graphdetails table>;

iii)delete from vendorgraphdetails where graphid=<graphid value for the custom monitor in graphdetails table>;

iv)insert into standardgraphdetails values (3,<graphid value for the custom monitor in graphdetails table>);


4)Now go to the particular template and apply the monitor to all the devices.


                  New to ADSelfService Plus?