Testing SNMP for the QlikView ServicesArticle Number: 000006095 | Last Modified: 2019/02/26
How to enable SNMP and verify it works using the iReasoning MIB Browser
All ports and supported OID's are in the QlikView Server Reference Manual and will not be repeated here. The ports mentioned here are just the ones that are needed to make the example work.
To enable SNMP for the QlikView Services, edit the .config file of each service and change the "EnableSNMP" setting to "true". Make the configuration changes while the services are stopped so that the settings are picked up upon starting the services.
For example, to enable SNMP for the Distribution Service, open the "C:\Program Files\QlikView\Distribution Service\QVDistributionService.exe.config" and modify the following lines by changing false into true:
<!-- Set to true to enable snmp listener -->
<add key="EnableSNMP" value="true" />
This method is similar for the Management Service, Directory Service Connector and QlikView Web Server. But not for the QlikView Server, where SNMP is enabled by default.
When SNMP has been enabled, it can be tested using the iReasoning MIB Browser. This is a third party MIB Browser which can be downloaded from http://ireasoning.com/.
*** PLEASE NOTE: There seems to be a bug with the current version of iReasoning MIB Browser that won't make it work with the QlikView Distribution Service. See All SNMP queries fail when connecting to QlikView Distribution Service (QDS) for details ***
1) Enter the IP address into the Address field of the MIB Browser.
2) Go to Advanced, and enter the port number of the service you want to connect to.
In this example port 4721 for the Distribution Service:
3) Enter 126.96.36.199.188.8.131.52 (which is the OID for sysDescr) into the OID field, select a "Get" operation, and click "Go". You should now see a response similar to the below:
Use the QlikView Server Reference Manual to explore any other OID's you may be interested in.
Also, there is a sample MIB file supplied with QlikView, C:\Program Files\QlikView\Support Tools\qliktech.mib.
This MIB structure can be imported into the MIB Browser using using File -> Load MIBs. After importing the MIB file you can expand a list of available SNMP MIBs. When selecting one of them, for example qDSTaskName, the OID will be automatically inserted into the OID field for you:
In the above example, qDSTaskName was selected, which inserted .184.108.40.206.4.1.307220.127.116.11 into the OID field. To actually retrieve any tasks you need to insert an additional number at the end of this OID, specifying which task you are interested in. For task number 1, append ".0". For the next task ".1", etc.
The mechanism is the same for all MIB's of the distribution service.
So for example, to retrieve the qdsTaskExecuteStatus of the 4th task, select qdsTaskExecuteStatus, which adds .18.104.22.168.4.1.30722.214.171.124.1.1.3 into the OID field. Then add ".3" at the end, making the OID .126.96.36.199.4.1.307188.8.131.52.184.108.40.206. Then press Go:
Have a Question?
Search Qlik's Support Knowledge database or request assisted support for highly complex issues.Submit a case
Experiencing a serious issue, please contact us by phone. View phone numbers and hours by region.