{instance} is showing the actual value of the OID

Started by adimitrov, January 18, 2017, 12:42:35 PM

Previous topic - Next topic

adimitrov

Hello team,

I am creating template for ESXi and i am facing some troubles. I have simple Instance discovery for the CPU utilization using SNMP Walks - OID .1.3.6.1.2.1.25.3.3.1.2 which is successfully determining all of the CPU cores. For DCI name i am using CPU core {instance}. Which is just a digit/number for the CPU core and it is working fine.So far so good. On the other hand on performance tab i am using exactly the same logic for the name "Core  {instance} CPU  Utilization", but it gives me the actual value of the OID as a name (screenshot attached), which is strange. I don't have OID for the CPU core number or something (or i don't know about it ). is this some kind of bug or i am on the wrong logic ?

Another thing is that i want to bind all CPU graphics together, of course different color for each CPU. Is there a way to make this working in my case (using instance discovery and so on) ?

Best regards,
Adrian

Victor Kirhenshtein

Hi,

I'm not sure I understand the issue. On screenshots I see core numbers, not full OIDs. What do you expect there? Maybe also attach screenshots of DCi configuration.

Starting with version 2.1-M2 you can specify performance tab group ID (which can be any string) for DCIs. All DCIs with matching group ID will be shown on one chart.

Best regards,
Victor

adimitrov

Hello Victor ,

The issue is that for the name of the graphic i get the actual value of the OID, not the instance number.

If you look at the screenshot you will see <name> <instance> for the instance it is not 1,2,3,4, ..,8 for the number of the core. It is 12,11, 16 and so one for percentage of core usage.

P.S. i have not upgraded our server to 2.1-M2, but i will do it as soon as possible and check this feature for sure.

Best regards,
Adrian

Victor Kirhenshtein

Hi,

this is correct behavior - instance here is OID instance, which is determined by OID suffix (part after walk base). If you want to give other name to the instance, you can use instance filter to change it (and in DCI description you can use {instance-name} then). For example:

return %(true, $1, "New name for " . $1);

Best regards,
Victor