NetXMS Support Forum

English Support => General Support => Topic started by: Bing Wen on July 22, 2014, 09:05:55 AM

Title: Couldn't get correct value of the SNMP OID "memTotalFree"
Post by: Bing Wen on July 22, 2014, 09:05:55 AM
Hi All,

I am a new guy using NetXMS and I met a issue as below. Would you please help to have a look? Thanks in advance.
I want to monitor the Memory usage of a server which runing Windows OS. I have enabled the SNMP server on the server and I could get the correct value of OID "hrMemorySize"(.1.3.6.1.2.1.25.2.2.0) by "Node" -> MIB explorer -> Walk -> Create data collection item.
But I couldn't get the correct value of the SNMP OID "memTotalFree"(.1.3.6.1.4.1.2021.4.11.0). Firstly I tried to Wlak it on "MIB explorer" but get nothing. Then I tried to create a "new parameter" on "Data Collection Configuration", I set the parameter as  "Internal" and "Dummy" , and set "transformation script" as "transport = CreateSNMPTransport($node); memTotalFree = SNMPGetValue(transport, ".1.3.6.1.4.1.2021.4.11.0"); ", and set all the other parameter as default value, and I get the latest value is just 0.
So if I missed something in understanding and configuration? How could I get the value I wanted, such as CPU usage, memory usage, disk usage and so on? Is there any other easier way to get these info by using NetXMS?

At last, The result of "Poll configuration" in my environment as below FYI.
[22.07.2014 13:43:16] **** Poll request sent to server ****
[22.07.2014 13:43:16] Poll request accepted
[22.07.2014 13:43:16] Starting configuration poll for node Localhost
[22.07.2014 13:43:16] Checking node's capabilities...
[22.07.2014 13:43:16]    Checking SNMP...
[22.07.2014 13:43:16]    SNMP agent is active (version 2c)
[22.07.2014 13:43:16]    System description changed to Hardware: Intel64 Family 6 Model 42 Stepping 7 AT/AT COMPATIBLE - Software: Windows Version 6.1 (Build 7601 Multiprocessor Free)
[22.07.2014 13:43:16]    System name changed to CNBNG-LT566.domain1.intra
[22.07.2014 13:43:16] Capability check finished
[22.07.2014 13:43:16] Checking interface configuration...
[22.07.2014 13:43:16] Checking node name
[22.07.2014 13:43:16] Interface configuration check finished
[22.07.2014 13:43:16] Node name is OK
[22.07.2014 13:43:16] Finished configuration poll for node Localhost
[22.07.2014 13:43:16] Node configuration was changed after poll
[22.07.2014 13:43:16] **** Poll completed successfully ****
Title: Re: Couldn't get correct value of the SNMP OID "memTotalFree"
Post by: Bing Wen on July 23, 2014, 01:38:07 PM
Hi All, I will very appreciate your kindly comments and answers.
Title: Re: Couldn't get correct value of the SNMP OID "memTotalFree"
Post by: Dani@M3T on July 23, 2014, 02:20:07 PM
Hi

I just tested on a Win2012R2 node. The same here. I don't think Windows supports .1.3.6.1.4.1.2021 (UCD-SNMP-MIB). Maybe installing the NetXMS agent on the Windows nodes would be the better solution for you.
Title: Re: Couldn't get correct value of the SNMP OID "memTotalFree"
Post by: Bing Wen on July 23, 2014, 03:19:58 PM
Quote from: Dani@M3T on July 23, 2014, 02:20:07 PM
Hi

I just tested on a Win2012R2 node. The same here. I don't think Windows supports .1.3.6.1.4.1.2021 (UCD-SNMP-MIB). Maybe installing the NetXMS agent on the Windows nodes would be the better solution for you.

Hi Dani@M3T,

:)Thank you for your kindly reply. But the target server with Windows server 2008 don't allow to be installed with any other agent, it only allow to install the SNMP feature and  enable SNMP service. So is there any other way to monitor the server for Memory/CPU/Disk usage based on SNMP? Like script? Like template?
Title: Re: Couldn't get correct value of the SNMP OID "memTotalFree"
Post by: Dani@M3T on July 23, 2014, 03:46:33 PM
hostmib is supported by Windows SNMP server (OID: .1.3.6.1.2.1.25). You can have a look there,maybe you found something usefull.
Try also .1.3.6.1.4.1.77 (but I don't have installed the mib)
In .1.3.6.1.2.1.2 you find network related things.

Try also DCI with Origin 'Windows Performance Counters', but no, this needs the agent  :(


Title: Re: Couldn't get correct value of the SNMP OID "memTotalFree"
Post by: Bing Wen on July 23, 2014, 04:27:36 PM
Quote from: Dani@M3T on July 23, 2014, 03:46:33 PM
hostmib is supported by Windows SNMP server (OID: .1.3.6.1.2.1.25). You can have a look there,maybe you found something usefull.
Try also .1.3.6.1.4.1.77 (but I don't have installed the mib)
In .1.3.6.1.2.1.2 you find network related things.

Try also DCI with Origin 'Windows Performance Counters', but no, this needs the agent  :(

Thank you very much. I will learn these OIDs.