Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. Couldn't get correct value of the SNMP OID "memTotalFree"

Couldn't get correct value of the SNMP OID "memTotalFree"

Scheduled Pinned Locked Moved Support
6 Posts 2 Posters 20.8k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B
    B
    Bing Wen
    wrote on last edited by
    #1

    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 ****

    1 Reply Last reply
    0
    • B
      B
      Bing Wen
      wrote on last edited by
      #2

      Hi All, I will very appreciate your kindly comments and answers.

      1 Reply Last reply
      0
      • Dani@M3TU
        Dani@M3TU
        Dani@M3T
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        • B
          B
          Bing Wen
          wrote on last edited by
          #4

          @user54119 said in Couldn't get correct value of the SNMP OID "memTotalFree":

          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?

          1 Reply Last reply
          0
          • Dani@M3TU
            Dani@M3TU
            Dani@M3T
            wrote on last edited by
            #5

            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  😞

            1 Reply Last reply
            0
            • B
              B
              Bing Wen
              wrote on last edited by
              #6

              @user54119 said in Couldn't get correct value of the SNMP OID "memTotalFree":

              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.

              1 Reply Last reply
              0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              Powered by NodeBB Contributors
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups