Hi,
I have been trying to add a custom monitor for the Windows XP device type. The monitor is using a perl script to run a command and parse the out to extract the information wanted. The script is used like this and can a hostname or ip address as input:
C:\>perl teno.pl localhost
-4.917
C:\>
This script has been copied to the folder .../conf/application/scripts. Further I have added a section in the HostResource.xml under the Windows XP WMI monitor section:
<CATEGORY ID="TENO Test" command="perl teno.pl" parseAll="false" description="TENO test monitoring">
<ENTITY ID="TenoTest" applyThresholdOver="curValue" threshold="Th6" storeHistory="true" units="ms" storeValue="curValue" comparePreValue="false">
<PARSE line="2" token="1" name="curValue"/>
</ENTITY>
</CATEGORY>
I then added a bulk monitor referring to then category id and updated the database changing protocolid to WMI = 3.
I used this page as reference: How to add custom WMI monitors in OpManager 7
The problem is the no data is returned when testing the monitor.
I also tried to add the monitor as CLI type, but was then unsure how to add this in the HostResource.xml. This page shows how to do this for Linux: How to create a Custom CLI Monitor in OpManager Version 7 and above
Should it be added in the current Windows XP section(WMI) or do we have to create a new section for Windows XP CLI monitors?
Anyone have any idea how to add CLI monitors for Windows?
Best regards
Terje N.