NetXMS Support Forum

English Support => General Support => Topic started by: tke on April 18, 2014, 12:12:19 PM

Title: Monitoring Windows Services with SNMP
Post by: tke on April 18, 2014, 12:12:19 PM
Hi,

can you help me get on the right track?

We want to monitor services running on Windows machines but we cant deploy NetXMS agents on them.
I know that you can get all running services using SNMP by looking at .1.3.6.1.4.1.77.1.2.3.1.1

The problem for me is that when I configure a DCI to check for some specific service and that service is stopped the DCI status changes to unsupported.
How should I create the DCI to check if OID exists on the server?
Title: Re: Monitoring Windows Services with SNMP
Post by: andrey--k on April 18, 2014, 03:08:53 PM
Maybe better to use DCI Table?
Title: Re: Monitoring Windows Services with SNMP
Post by: Victor Kirhenshtein on April 19, 2014, 08:43:18 AM
Hi!

You can create internal type DCI (with source set to "Internal") and Dummy parameter - it will just generate 0. Then in transformation script you can use SNMPGetValue (http://"http://wiki.netxms.org/wiki/NXSL:SNMPGetValue") function to get actual value of required OID. This function will return null if OID does not exist, so you can check it and return some meaningful value in that case.

Best regards,
Victor