Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Bing Wen

#1
General Support / Re: SNMP get free disk space
July 24, 2014, 05:11:08 AM
Quote from: ytrasse on March 13, 2014, 03:40:35 PM
Hello andrey--k

I tested your hdd-template. In general it seems to be ok. But there is no transforamtion script to display the values in GByte.
So I decided to merge your hdd-template with filter and instances with my working transformation script (see above).
But I had no real success, because it seems that {instance} is not allowed in transformation scripts.
e.g.
...
oid = ".1.3.6.1.2.1.25.2.3.1.5." . {instance};
disksize = SNMPGetValue(transport,  oid);  // get Disk size

I also created a template for getting the memory size/used/free/percent template similar to the disk templates.
My calculation of free memory here is also not working. (Other calculations are working)
transformation script:
sub main()
{
   memused = GetDCIValueByName($node,(".1.3.6.1.2.1.25.2.3.1.6.".$1));
   memsize = GetDCIValueByName($node,(".1.3.6.1.2.1.25.2.3.1.5.".$1));
   memfree = (memsize - memused) * 64 / 1024;
   return (memfree);
}

Attached there are my templates for Disk size/free/used/percent and Memory size/used/free/percent
It would be nice if somebody could check what is wrong with my templates.

Hi ytrasse,
I have tried your transformation script and it's not working. Is there any updates?
#2
General Support / Re: SNMP Get disk free space
July 24, 2014, 05:08:23 AM
Quote from: ytrasse on March 04, 2014, 01:09:28 PM
Hello

I already found the problem in my script.
It was no script problem, but a usage problem.
I tested it with the "Test" option, but I used it on the template instead of the applied server.
The transofrmation script itself seem's to be OK. It is working and returns the free disk space.

However I will also have a look to your hdd template andrey-k.

Attached there is my actual template.

Hi ytrasse,

I tried to add a new DCI based on your attached file. But i could only get 0 for the last value.
#3
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.
#4
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?
#5
Hi All, I will very appreciate your kindly comments and answers.
#6
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 ****