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?